2020-01-15 09:58:30 +00:00
|
|
|
NAME=af localflag
|
|
|
|
FILE=../bins/mach0/mac-ls2
|
|
|
|
CMDS=<<EOF
|
|
|
|
aaa
|
|
|
|
afi~?
|
|
|
|
afi.
|
|
|
|
afb.
|
|
|
|
EOF
|
|
|
|
EXPECT=<<EOF
|
2020-03-27 05:15:47 +00:00
|
|
|
33
|
2020-01-15 09:58:30 +00:00
|
|
|
main
|
2020-01-20 12:35:48 +00:00
|
|
|
0x1000011e8 0x100001211 01:0899 41 j 0x100001216 f 0x100001211
|
2020-01-15 09:58:30 +00:00
|
|
|
EOF
|
|
|
|
RUN
|
2020-03-27 17:10:52 +00:00
|
|
|
|
|
|
|
NAME=ab opaddr
|
|
|
|
FILE=../bins/mach0/mac-ls2
|
|
|
|
CMDS=<<EOF
|
|
|
|
af
|
|
|
|
ab
|
|
|
|
s+1
|
|
|
|
ab~opaddr
|
|
|
|
s+1
|
|
|
|
ab~opaddr
|
|
|
|
s+1
|
|
|
|
ab~opaddr
|
|
|
|
s+1
|
|
|
|
ab~opaddr
|
|
|
|
EOF
|
|
|
|
EXPECT=<<EOF
|
|
|
|
jump: 0x100001216
|
|
|
|
fail: 0x100001211
|
|
|
|
opaddr: 0x1000011e8
|
|
|
|
addr: 0x1000011e8
|
|
|
|
size: 41
|
|
|
|
inputs: 0
|
|
|
|
outputs: 2
|
|
|
|
ninstr: 14
|
|
|
|
traced: false
|
|
|
|
opaddr: 0x1000011e9
|
|
|
|
opaddr: 0x1000011e9
|
|
|
|
opaddr: 0x1000011e9
|
|
|
|
opaddr: 0x1000011ec
|
|
|
|
EOF
|
|
|
|
RUN
|