ec2-3-236-112-101.compute-1.amazonaws.com , 53574th | 2008/09/18 UPDATED |
if flag equal zero, length is 16bit. flag equal 1, length is 8bit.
we must disassemble target code with condition of X-flag and M-flag.
dasm77.exe can disassembling with easy flag trace.
addressing mode example ------------------------------------------------------------------ immediate lda al, #0x0000 direct lda al, dp + 0x10 direct bit seb #0x01, dp + 0x10 direct indexed X lda al, dp + 0x10 + ix direct indirect lda al, [dp + 0x10] direct indexed X indirect lda al, [dp + 0x10 + ix] direct indirect indexed Y lda al, [dp + 0x10] + iy absolute lda al, 0x1234 absolute indexed X lda al, 0x1234 + ix absolute long ldal al, 0x123456 absolute long indexed X ldal al, 0x123456 + ix absolute indirect jmp [0x1234] absolute direct long jmpl [0x1234] absolute indexed X indirect jmp [0x1234 + ix] direct bit relative bbs #0x5a, dp + 0x04, 0x1234 absolute bit relative bbs #0x5a, 0x1234, 0x4567 stackpointer relative lda al, sp + 0x02 stackpointer relative- indirect indexed Y lda al, [sp + 0x1e] + iy block transfer mvn 0x00:iy, 0x00:ix, ax
al, bl 8bit access at accumrator ax, bx 16bit access at accumrator ix, iy index register ix8, iy8 8bit access at index registor sp stack pointer dp direct page register pg program bank register dt data bank register ps processor status register
but, the easy trace is can not trace correctly such a this pattern.
clm cmp ax, #0x1234 bcc pass1 sem rts pass1: lda #0x3456 sem rts
C> dasm77 rom.bin 8000 8fff 0 1
C> dasm77 rom.bin MELPS7700 disasembler Version 1.0 Copyright(C)1996 By H.Kashima >command lists:
u [start] [end] disassemble >u disassemble 16 lines from current address >u 8000 disassemble 16 lines from 0x8000 >u 8000 8fff disassemble from 0x8000 to 0x8fff d [start] [end] dump memory >d dump 128 byte from current address >d 8000 dump 128 byte from 0x8000 >d 8000 8fff dump from 0x8000 to 0x8fff x [value] manual operation for X-flag >x print current condition in X-flag >x 0 clear X-flag >x 1 set X-flag m [value] manual operation for M-flag >m print current condition in M-flag >m 0 clear M-flag >m 1 set M-flag q quit program
how to pay: paypal: kashima@kaele.com 3,150yen please e-mail notify to me when you sent a money via paypal.
-- LINK FREE -- |
||
HOME | LAST |