Changes

Programming:Filling memory with a byte

No change in size, 01:02, 14 December 2012
/* Using the stack */ DErp
; Fill the memory
PUSHLOOP:
push hl ; Writes DE HL to (SP-2) and DECs SP by 2.
; For even more speed, use multiple PUSH HLs in a row (I like 8, = &10 bytes) and adjust counters to match
djnz PUSHLOOP
25
edits