diff options
author | 2015-12-06 01:32:55 -0200 | |
---|---|---|
committer | 2015-12-06 13:32:06 -0200 | |
commit | ae26812a4917ddc43f3952f07181fa7cebe92ab5 (patch) | |
tree | 77d6afc64fa990fc6093febae571c64dc03882d7 | |
parent | c0a2483edb192d3b3eca92919effac3b2a8232f7 (diff) |
[patinho] print IDX instead of /000 in the CAR and ARM instructions disasm
-rw-r--r-- | src/devices/cpu/patinhofeio/patinho_feio_dasm.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/devices/cpu/patinhofeio/patinho_feio_dasm.cpp b/src/devices/cpu/patinhofeio/patinho_feio_dasm.cpp index f6fca99eb58..ac78ef4be73 100644 --- a/src/devices/cpu/patinhofeio/patinho_feio_dasm.cpp +++ b/src/devices/cpu/patinhofeio/patinho_feio_dasm.cpp @@ -23,7 +23,11 @@ CPU_DISASSEMBLE( patinho_feio ) //ARM = "Armazena": Stores the contents of the // accumulator in the given 12bit address addr = (oprom[0] & 0x0F) << 8 | oprom[1]; - sprintf (buffer, "ARM /%03X", addr); + if (addr==0){ + sprintf (buffer, "ARM (IDX)"); + }else{ + sprintf (buffer, "ARM /%03X", addr); + } return 2; case 0x30: //ARMX = "Armazenamento indexado": Stores the contents of the accumulator in the @@ -35,7 +39,11 @@ CPU_DISASSEMBLE( patinho_feio ) //CAR = "Carrega": Loads the contents of the given 12bit address // into the accumulator addr = (oprom[0] & 0x0F) << 8 | oprom[1]; - sprintf (buffer, "CAR /%03X", addr); + if (addr==0){ + sprintf (buffer, "CAR (IDX)"); + }else{ + sprintf (buffer, "CAR /%03X", addr); + } return 2; case 0x50: //CARX = "Carga indexada": Loads the contents of the given 12bit address |