diff test/test1.c @ 748:c2c709727221

i64 continue... basic.s assembled.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 13 Nov 2010 22:39:40 +0900
parents 07dce42b67af
children 5313ed059cee
line wrap: on
line diff
--- a/test/test1.c	Sat Nov 13 10:47:47 2010 +0900
+++ b/test/test1.c	Sat Nov 13 22:39:40 2010 +0900
@@ -45,13 +45,13 @@
 __code f(int i,void *sp) {
     int k,j;
     struct f_g0_save *c;
-printf("#0042:f 0 sp: %x\n",sp-stack0);
+printf("#0047:f 0 sp: %x\n",sp-stack0);
 
     k = 3+i;
 
-printf("#0046:f 1 sp: %x\n",sp-stack0);
+printf("#0051:f 1 sp: %x\n",sp-stack0);
     sp -= sizeof(struct f_g0_save);
-printf("#0048:f 2 sp: %x\n",sp-stack0);
+printf("#0053:f 2 sp: %x\n",sp-stack0);
     c = sp;
     c->kk = k;
     c->ii = i;
@@ -73,15 +73,15 @@
 __code f0(int i,int j,__code(*exit2)(), void *exit2env,void *sp)
 {
 	struct f0_save *c;
-    printf("#0070:f0 1 sp: %x\n",sp-stack0);
+    printf("#0075:f0 1 sp: %x\n",sp-stack0);
 	sp -= sizeof(struct f0_save);
-    printf("#0072:f0 2 sp: %x\n",sp-stack0);
+    printf("#0077:f0 2 sp: %x\n",sp-stack0);
 	c = sp;
 	c->jj = j;
         c->exit1 = exit2;
         c->exit1env = exit2env;
 	c->ret = f1;
-    printf("#0078:f0 3 sp: %x\n",sp-stack0);
+    printf("#0083:f0 3 sp: %x\n",sp-stack0);
 	goto f(i,sp);
 }
 
@@ -113,13 +113,13 @@
     sp = stack0;
     j = i;
     
-    printf("#0108:sp: %x %x\n",sp-(int*)stack0,sizeof(*stack0));
+    printf("#0115:sp: %x %x\n",sp-(int*)stack0,sizeof(*stack0));
     goto f0(i,j,__return,__environment,sp);
 }
 
 __code print(int i,int j,__code (*exit1)(),void*exit1env)
 {
-    printf("#0114:%d %d\n",i,j);
+    printf("#0121:%d %d\n",i,j);
     goto (*exit1)(0,exit1env);
 }