]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avr/utils.asm
* I2C Support added
[avrcpm.git] / avr / utils.asm
index af62efd41408e3aa35d5688022cc818cc9f6d070..155c0274130b7c331a1a48adb37b0fa63c339fe8 100644 (file)
@@ -205,8 +205,6 @@ printstr_end:
 ; --------------- Debugging stuff ---------------
 ; Print a line with the 8080/Z80 registers
 
-; TODO: y:
-
 printregs:
        mov     temp,z_flags
        rcall   printflags
@@ -233,33 +231,31 @@ printregs:
        rcall   printhexw
        printstring "       "
        movw    xl,z_pcl
-       mem_read
+       lcall   dram_read_pp
        rcall   printhex
        printstring " "
-       adiw    x,1
-       mem_read
+       lcall   dram_read_pp
        rcall   printhex
        printstring " "
-       adiw    x,1
-       mem_read
+       lcall   dram_read
        rcall   printhex
        printstring " "
 
 #if EM_Z80
        ldd     temp,y+oz_f2
        rcall   printflags
-       printstring "  A'="
+       printstring "  a'="
        ldd     temp,y+oz_a2
        rcall   printhex        
-       printstring " BC'="
+       printstring " bc'="
        ldd     temp2,y+oz_b2
        ldd     temp,y+oz_c2
        rcall   printhexw
-       printstring " DE'="
+       printstring " de'="
        ldd     temp2,y+oz_d2
        ldd     temp,y+oz_e2
        rcall   printhexw
-       printstring " HL'="
+       printstring " hl'="
        ldd     temp2,y+oz_h2
        ldd     temp,y+oz_l2
        rcall   printhexw