mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 03:11:28 +00:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
NAME=pic18c
|
|
FILE=ihex://bins/pic18c/FreeRTOS-pic18c.hex
|
|
CMDS=<<EOF
|
|
e asm.arch=pic
|
|
e asm.cpu=pic18
|
|
pi 2
|
|
EOF
|
|
EXPECT=<<EOF
|
|
goto 0x246e
|
|
return 0
|
|
EOF
|
|
RUN
|
|
|
|
NAME=IHEX: simple test
|
|
FILE=ihex://bins/other/test.ihex
|
|
CMDS=<<EOF
|
|
o
|
|
p8 16
|
|
s 0x8000
|
|
px 64*3
|
|
EOF
|
|
EXPECT=<<EOF
|
|
3 * r-x 0x0000808c ihex://bins/other/test.ihex
|
|
ffffffffffffffffffffffffffffffff
|
|
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
|
|
0x00008000 8200 8135 8200 9daf 8200 9daf 8200 9daf ...5............
|
|
0x00008010 8200 9daf 8200 9daf 8200 9daf 8200 9daf ................
|
|
0x00008020 8200 9daf 8200 9daf 8200 9daf 8200 9daf ................
|
|
0x00008030 8200 9daf 8200 9daf 8200 9daf 8200 9daf ................
|
|
0x00008040 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
0x00008050 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
0x00008060 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
0x00008070 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
0x00008080 6865 6c6c 6f20 776f 726c 6400 ffff ffff hello world.....
|
|
0x00008090 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
0x000080a0 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
0x000080b0 ffff ffff ffff ffff ffff ffff ffff ffff ................
|
|
EOF
|
|
RUN
|
|
|
|
NAME=IHEX: segment boundaries
|
|
FILE=ihex://bins/other/td.hex
|
|
CMDS=<<EOF
|
|
px 0x20 @ 0x70000
|
|
EOF
|
|
EXPECT=<<EOF
|
|
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
|
|
0x00070000 5d1b 4153 2000 1d40 1007 75a0 103c ead2 ].AS ..@..u..<..
|
|
0x00070010 2000 0000 1007 0040 1007 7594 0000 0000 ......@..u.....
|
|
EOF
|
|
RUN
|