84PCE:Syscalls:021DB4: Difference between revisions

From WikiTI
Jump to navigationJump to search
No edit summary
Undo revision 11260 by MateoConLechuga (talk)
 
Line 1: Line 1:
[[Category:84PCE:Syscalls:By Name|ArcChk]] [[Category:84PCE:Syscalls:By Address|022040 - ArcChk]]
[[Category:84PCE:Syscalls:By Name|AddHLandA]]
[[Category:84PCE:Syscalls:By Address|021DB4 - AddHLandA]]
== Synopsis ==
== Synopsis ==
'''Hypothesized Official Name:''' ArcChk
'''Hypothesized Official Name:''' AddHLandA


'''Syscall Address:''' 022040h
'''Syscall Address:''' 021DB4h


Stores the amount of free archive space into [[84PCE:RAM:D02655|tempFreeArc]].
Adds the 8-bit value in A to the 24-bit value in HL.
 
Basically an "add hl,a".


=== Inputs ===
=== Inputs ===
* None
* HL - addend
 
* A - addend


=== Outputs ===
=== Outputs ===
* [[84PCE:RAM:D02655|tempFreeArc]] holds the size of the available archive space
* HL = HL + A


=== Registers Destroyed ===
=== Registers Destroyed ===
* All
* HL

Latest revision as of 01:03, 1 June 2016

Synopsis

Hypothesized Official Name: AddHLandA

Syscall Address: 021DB4h

Adds the 8-bit value in A to the 24-bit value in HL.

Basically an "add hl,a".

Inputs

  • HL - addend
  • A - addend

Outputs

  • HL = HL + A

Registers Destroyed

  • HL