]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - dram-8bit.asm
* New macros sbiw and INTERRUPT:
[avrcpm.git] / dram-8bit.asm
index b335894007b07a03194042391c74d38113e89e20..466f9bb4660d6adb63380cf28ec99cc367d263a8 100644 (file)
@@ -61,4 +61,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:
+       rcall   dram_write
+       adiw    x,1
+       mov     temp,temp2
+dram_write_pp:
+       rcall   dram_write
+       adiw    x,1
+       ret
+
+
+; -------------------------------------------------------------------
+; vim:set ts=8 noet nowrap