mirror of
https://github.com/irmen/prog8.git
synced 2025-01-12 04:30:03 +00:00
cx16: added cx16.vaddr_autoincr() and cx16.vaddr_autodecr()
This commit is contained in:
parent
4575a8fffe
commit
0e781d18fa
@ -567,6 +567,7 @@ asmsub vaddr(ubyte bank @A, uword address @R0, ubyte addrsel @R1, byte autoIncrO
|
|||||||
asmsub vaddr_autoincr(ubyte bank @A, uword address @R0, ubyte addrsel @R1, uword autoIncrAmount @R2) clobbers(A,Y) {
|
asmsub vaddr_autoincr(ubyte bank @A, uword address @R0, ubyte addrsel @R1, uword autoIncrAmount @R2) clobbers(A,Y) {
|
||||||
; -- setup the VERA's data address register 0 or 1
|
; -- setup the VERA's data address register 0 or 1
|
||||||
; including setting up optional auto increment amount.
|
; including setting up optional auto increment amount.
|
||||||
|
; Specifiying an unsupported amount results in amount of zero. See the Vera docs about what amounts are possible.
|
||||||
%asm {{
|
%asm {{
|
||||||
jsr _setup
|
jsr _setup
|
||||||
lda cx16.r2H
|
lda cx16.r2H
|
||||||
@ -629,6 +630,7 @@ _strides_lsb .byte 0,1,2,4,8,16,32,64,128,255,255,40,80,160,255,255
|
|||||||
asmsub vaddr_autodecr(ubyte bank @A, uword address @R0, ubyte addrsel @R1, uword autoDecrAmount @R2) clobbers(A,Y) {
|
asmsub vaddr_autodecr(ubyte bank @A, uword address @R0, ubyte addrsel @R1, uword autoDecrAmount @R2) clobbers(A,Y) {
|
||||||
; -- setup the VERA's data address register 0 or 1
|
; -- setup the VERA's data address register 0 or 1
|
||||||
; including setting up optional auto decrement amount.
|
; including setting up optional auto decrement amount.
|
||||||
|
; Specifiying an unsupported amount results in amount of zero. See the Vera docs about what amounts are possible.
|
||||||
%asm {{
|
%asm {{
|
||||||
jsr vaddr_autoincr._setup
|
jsr vaddr_autoincr._setup
|
||||||
lda cx16.r2H
|
lda cx16.r2H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user