]> cloudbase.mooo.com Git - avrcpm.git/commitdiff
* minor corrections/enhancements
authorLeo <erbl259-lmu@yahoo.de>
Mon, 11 Feb 2013 18:58:59 +0000 (18:58 +0000)
committerLeo <erbl259-lmu@yahoo.de>
Mon, 11 Feb 2013 18:58:59 +0000 (18:58 +0000)
git-svn-id: svn://cu.loc/avr-cpm/avrcpm/trunk@194 57430480-672e-4586-8877-bcf8adbbf3b7

avr/Z80int-jmp.asm
avr/dram-4bit.inc
avr/dsk_ram.asm

index 8214156978608665555d3f9b2e422bc848dc62dc..7b17fa47b365218574604fc436e2d6581a96e44e 100644 (file)
@@ -25,7 +25,7 @@
 ;
 
 #if EM_Z80
-  #define OPC_TABSTART 0x1900
+  #define OPC_TABSTART 0x1B00
 #else
   #define OPC_TABSTART 0x1200
 #endif
@@ -2354,6 +2354,16 @@ dbg_op_in_2:
 ;
 
 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
index 2deba3da5d75ecd1734fb2693897afce1bef85fa..fb80d0ac38e251a4324058f7bac2514fb3ad8c68 100644 (file)
@@ -66,7 +66,7 @@
 ;      temp = destreg, xh = memaddrh, xl = memaddrl
 
 .macro mem_read
-       rcall   dram_read
+       lcall   dram_read
 .endm
 
 ;----------------------------------------------
@@ -76,7 +76,7 @@
 
 .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
 
-
index 8a212c7a32c1ad61dd1cb0f78112dd127dc35c3c..5c8c876646ea6ca17d5d936b04d57c83380f95b3 100644 (file)
@@ -26,7 +26,7 @@
 
 #if RAMDISKCNT
 
-#ifdef DRAM_8BIT
+#if DRAM_8BIT
 
 ; -------------- RAM disk (8-bit DRAM) --------------