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

From WikiTI
Jump to: navigation, search
(Created page with "ClrHeap 0002F0 - ClrHeap == Synopsis == '''Hypothesized Official Name:''' ClrHeap '''Syscall Addres...")
 
Line 1: Line 1:
[[Category:84PCE:Syscalls:By Name|ClrHeap]]
+
[[Category:84PCE:Syscalls:By Name|WriteFlashA]]
[[Category:84PCE:Syscalls:By Address|0002F0 - ClrHeap]]
+
[[Category:84PCE:Syscalls:By Address|0002E8 - WriteFlashA]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Hypothesized Official Name:''' ClrHeap
 
'''Hypothesized Official Name:''' ClrHeap
  
'''Syscall Address:''' 0002F0h
+
'''Syscall Address:''' 0002E8h
  
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)
+
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.
  
 
=== Inputs ===
 
=== Inputs ===
None
+
A = Byte to write
 +
DE = Address to write to
  
 
=== Outputs ===
 
=== Outputs ===

Revision as of 22:34, 25 May 2016

Synopsis

Hypothesized Official Name: ClrHeap

Syscall Address: 0002E8h

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.

Inputs

A = Byte to write DE = Address to write to

Outputs

Heap cleared

Destroys

  • All