Difference between revisions of "84PCE:Syscalls:0210DC"
From WikiTI
(Created page with "MemClear MemClear 4C30 - MemClear == Synopsis == '''Offi...") |
|||
Line 1: | Line 1: | ||
[[Category:84PCE:Syscalls:By_Name:Memory|MemClear]] | [[Category:84PCE:Syscalls:By_Name:Memory|MemClear]] | ||
[[Category:84PCE:Syscalls:By_Name|MemClear]] | [[Category:84PCE:Syscalls:By_Name|MemClear]] | ||
− | [[Category:84PCE:Syscalls:By_Address| | + | [[Category:84PCE:Syscalls:By_Address|0210DC - MemClear]] |
== Synopsis == | == Synopsis == |
Revision as of 10:14, 26 May 2015
Synopsis
Official Name: MemClear
Syscall Address: 0210DCh
Sets a block of memory to zero.
Inputs
- HL: Address of memory block.
- BC: Number of bytes to zero.
Outputs
- DE: Points to byte after memory block.
Destroys
- AF, BC, HL
Comments
This routine uses an LDIR instruction to clear the memory block, so do not pass it a block length of 0 or 1 or it will erase 65536 bytes.
Example
;Clear out pixelShadow ld hl,pixelShadow ld bc,8400 call _MemClear