]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - dram-4bit.asm
* New macros sbiw and INTERRUPT:
[avrcpm.git] / dram-4bit.asm
index e0d088a87ee8ad9f6a00a45d80730128ccf9423e..d8852262d14b309aa40eb2c6e559a22e6f3c0f27 100644 (file)
@@ -88,5 +88,35 @@ dram_write:
 ;      sei
        ret
 
+; -------------------------------------------------------------------
+
+dram_readw_pp:
+       rcall   dram_read
+       adiw    x,1
+       push    temp
+       rcall   dram_read
+       adiw    x,1
+       mov     temp2,temp
+       pop     temp
+       ret
+       
+dram_read_pp:
+       rcall   dram_read
+       adiw    x,1
+       ret
+
+; -------------------------------------------------------------------
+
+dram_writew_pp:
+       push    temp2
+       rcall   dram_write
+       adiw    x,1
+       pop     temp
+dram_write_pp:
+       rcall   dram_write
+       adiw    x,1
+       ret
+
+; -------------------------------------------------------------------
 ; vim:set ts=8 noet nowrap