I like to use grep to find strings in the disassembly.
./unidasm roms/ap2k.ic3c -arch upd7810 >ap2k_disasm
cat ap2k_disasm | grep '9911'
00002023: 34 11 99 LXI HL,$9911
000020AC: 70 2F 11 99 LDED $9911
000020B3: 70 2E 11 99 SDED $9911
000020DE: 70 2F 11 99 LDED $9911
000020E4: 70 2E 11 99 SDED $9911
cat ap2k_disasm | grep 'C004'
00000125: 70 79 04 C0 MOV ($C004),A
00000C3F: 70 79 04 C0 MOV ($C004),A
00000FB3: 34 04 C0 LXI HL,$C004
0000109B: 34 04 C0 LXI HL,$C004
000010A1: 34 04 C0 LXI HL,$C004
00002FBD: 70 69 04 C0 MOV A,($C004)
00002FC3: 70 79 04 C0 MOV ($C004),A
00002FFC: 70 69 04 C0 MOV A,($C004)
00003002: 70 79 04 C0 MOV ($C004),A
Fun fun fun...I'll figure out how this code works eventually.
No comments:
Post a Comment