NAME=bug 3788 #1: search in virtual address
FILE=bins/vsf/c64-rambo2-norom.vsf
CMDS=<<EOF
s 0
/x ac6c6c68
EOF
EXPECT=<<EOF
0x0000008a 4 hit.bytes.0
EOF
RUN

NAME=bug 3788 #2: search with multiple sections
FILE=bins/vsf/c64-rambo2-rom.vsf
CMDS=<<EOF
s 0
e search.in=bin.sections
/x ac686b6d
EOF
EXPECT=<<EOF
0x0000008a 4 hit.bytes.0
EOF
RUN

NAME=bug 3788 #3: cmd.hit
FILE=bins/vsf/c64-rambo2-norom.vsf
CMDS=<<EOF
s 0
e cmd.hit="px 16"
/x ac6c6c68
EOF
EXPECT=<<EOF
- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
0x0000008a  ac6c 6c68 6700 1200 0000 0000 0000 4b0f  .llhg.........K.
EOF
RUN

NAME=bug 3788 #4: no collision in VA
FILE=bins/nes/Pong.nes
CMDS=<<EOF
/x 8512a9208520
EOF
EXPECT=<<EOF
0x00008020 6 hit.bytes.0
0x0000c020 6 hit.bytes.1
EOF
RUN
