Home
Random
Watchlist
Settings
Log in
About CPCWiki - THE Amstrad CPC encyclopedia!
Disclaimers
Open main menu
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
← Older edit
Newer edit →
Db6128
25
edits