dos33fsprogs/asm_routines/memset.s

17 lines
191 B
ArmAsm
Raw Normal View History

;======================
; memset
;======================
; a=value
; x=length
; MEMPTRL/MEMPTRH is address
memset:
ldy #0
memset_loop:
sta MEMPTRL,Y
iny
dex
bne memset_loop
rts