410
|
1 tb main
|
|
2 # run -s test/arg.c
|
|
3 # run -s mc-parse.c
|
|
4 # run -s mc-codegen.c
|
|
5 # run -s nkf203/nkf.c
|
|
6 # run -s -ob01.s mc-switch.c
|
|
7 # run -s l.c
|
|
8 run -s test/bitfield.c
|
|
9 # run -s test/basic.c
|
|
10 # run -s test/code-gen-all.c
|
|
11 define regs
|
|
12 printf "pc=%08x lr=%08x r0=%08x r1=%08x r2=%08x r3=%08x r4=%08x\n",$pc,$lr,$r0,$r1,$r2,$r3,$r4
|
|
13 printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9
|
|
14 end
|
|
15 define fregs
|
|
16 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6
|
|
17 printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15
|
|
18 end
|
|
19 define allreg
|
|
20 printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
|
|
21 printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9
|
|
22 printf "sl=%08x lr=%08x ip=%08x fp=%08x sp=%08x pc=%08x\n",$sl,$lr,$ip,$fp,$sp,$pc
|
|
23 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g f7=%g\n",$f1,$f2,$f3,$f4,$f5,$f6,$f7
|
|
24 end
|
|
25 define sh
|
|
26 regs
|
|
27 x/20i $pc-36
|
|
28 end
|
|
29 define si
|
|
30 stepi
|
|
31 regs
|
|
32 x/1i $pc
|
|
33 end
|
|
34 define ni
|
|
35 nexti
|
|
36 regs
|
|
37 x/1i $pc
|
|
38 end
|
|
39 b errmsg
|