;
#if EM_Z80
- #define OPC_TABSTART 0x1900
+ #define OPC_TABSTART 0x1B00
#else
#define OPC_TABSTART 0x1200
#endif
;
do_op_out: ; out (c),opl
+.if PORT_DEBUG
+ printnewline
+ printstring "Port write: "
+ mov temp,opl
+ lcall printhex
+ printstring " -> ("
+ ldd temp,y+oz_c
+ lcall printhex
+ printstring ") "
+.endif
mov temp,opl
ldd temp2,y+oz_c
lcall portWrite
; temp = destreg, xh = memaddrh, xl = memaddrl
.macro mem_read
- rcall dram_read
+ lcall dram_read
.endm
;----------------------------------------------
.macro mem_read_s
movw xl,@0l
- rcall dram_read
+ lcall dram_read
.endm
;----------------------------------------------
.macro mem_write_d
movw x,@0l
- rcall dram_write
+ lcall dram_write
.endm
;----------------------------------------------
lcall dram_write
.endm
-
#if RAMDISKCNT
-#ifdef DRAM_8BIT
+#if DRAM_8BIT
; -------------- RAM disk (8-bit DRAM) --------------