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

From WikiTI
Jump to: navigation, search
(Undo revision 11143 by MateoConLechuga (talk))
 
Line 1: Line 1:
[[Category:84PCE:Syscalls:By Name|WriteFlashA]]
+
[[Category:84PCE:Syscalls:By Name|ClrHeap]]
[[Category:84PCE:Syscalls:By Address|0002E8 - WriteFlashA]]
+
[[Category:84PCE:Syscalls:By Address|0002F0 - ClrHeap]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Hypothesized Official Name:''' ClrHeap
 
'''Hypothesized Official Name:''' ClrHeap
  
'''Syscall Address:''' 0002E8h
+
'''Syscall Address:''' 0002F0h
  
Writes a byte in register A to flash (This is equivalent to an 'and' with the current byte in flash). Flash must be unlocked in order to use this routine, and locked sectors should not be written to.
+
This routine zeros out the heap area used by applications located at D1887C. It then writes a pointer to the current end of the heap to D1887C, which happens to be the value D18C7C. (aka ramCode)
  
 
=== Inputs ===
 
=== Inputs ===
A = Byte to write
+
None
DE = Address to write to
+
  
 
=== Outputs ===
 
=== Outputs ===

Latest revision as of 22:34, 25 May 2016

Synopsis

Hypothesized Official Name: ClrHeap

Syscall Address: 0002F0h

This routine zeros out the heap area used by applications located at D1887C. It then writes a pointer to the current end of the heap to D1887C, which happens to be the value D18C7C. (aka ramCode)

Inputs

None

Outputs

Heap cleared

Destroys

  • All