Because 6809 assembly is not a C dialect or something :p
Alternatively we could do it in steps of 2 by using D instead
of A but then we must change the check for zero Y.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
ldy 9,s ; count
orcc #0x10
ugetl:
- lda ,x++
+ lda ,x+
SAM_USER
- sta ,u++
+ sta ,u+
SAM_KERNEL
leay -1,y
cmpy #0
orcc #0x10
ugetsl:
SAM_USER
- lda ,x++
+ lda ,x+
beq ugetse
SAM_KERNEL
- sta ,u++
+ sta ,u+
leay -1,y
cmpy #0
bne ugetsl
ldu 7,s ; user address
ldy 9,s ; count
uputl:
- lda ,x++
+ lda ,x+
SAM_USER
- sta ,u++
+ sta ,u+
SAM_KERNEL
leay -1,y
cmpy #0