Difference between revisions of "84PCE:Syscalls:021DC0"

From WikiTI
Jump to: navigation, search
(Created page with "SetHLtoLH 021DC0 - SetHLtoLH == Synopsis == '''Hypothesized Official Name:''' SetHLtoLH '''Syscall...")
 
(Synopsis)
Line 2: Line 2:
 
[[Category:84PCE:Syscalls:By Address|021DC0 - SetHLtoLH]]
 
[[Category:84PCE:Syscalls:By Address|021DC0 - SetHLtoLH]]
 
== Synopsis ==
 
== Synopsis ==
'''Hypothesized Official Name:''' SetHLtoLH
+
'''Hypothesized Official Name:''' SwapHLEndian
  
 
'''Syscall Address:''' 021DC0h
 
'''Syscall Address:''' 021DC0h
Line 8: Line 8:
 
Sets HL to LH. In other words, it loads the value in H to L, and the value in L to H.
 
Sets HL to LH. In other words, it loads the value in H to L, and the value in L to H.
  
Useful for converting between little-endian and big-endian, perhaps.
+
Useful for converting between little-endian and big-endian.
  
 
=== Inputs ===
 
=== Inputs ===

Revision as of 09:57, 26 May 2015

Synopsis

Hypothesized Official Name: SwapHLEndian

Syscall Address: 021DC0h

Sets HL to LH. In other words, it loads the value in H to L, and the value in L to H.

Useful for converting between little-endian and big-endian.

Inputs

HL - value

Outputs

HL = LH

Destroys

  • None