Difference between revisions of "84PCE:Syscalls:0002D8"

From WikiTI
Jump to: navigation, search
(Created page with "EraseFlash 0002D8 - EraseFlash == Synopsis == '''Hypothesized Official Name:''' EraseFlash '''Sysca...")
 
Line 6: Line 6:
 
'''Syscall Address:''' 0002D8h
 
'''Syscall Address:''' 0002D8h
  
The same routine as [[84PCE:Syscalls:By Name|EraseFlashSector]], except the real address of the sector is in HL.
+
The same routine as [[Category:84PCE:Syscalls:By Name|EraseFlashSector]], except the real address of the sector is in HL.
  
 
=== Inputs ===
 
=== Inputs ===

Revision as of 22:55, 25 May 2016

Synopsis

Hypothesized Official Name: EraseFlash

Syscall Address: 0002D8h

The same routine as, except the real address of the sector is in HL.

Inputs

  • HL = Address of sector to clear

Outputs

  • Sector erased

Destroys

  • All

Notes

This routine actually checks the caller PC address to ensure it was called from a suitable location. A workaround is as follows using the fact that 0000F8 consists of a jump to a ret instruction.

EraseFlash:
	ld	bc,0000F8h
	push	bc
	jp	_EraseFlash