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

From WikiTI
Jump to: navigation, search
(Undo revision 11135 by MateoConLechuga (talk))
 
Line 1: Line 1:
 
[[Category:84PCE:Syscalls:By Name|SwapHLEndian]]
 
[[Category:84PCE:Syscalls:By Name|SwapHLEndian]]
[[Category:84PCE:Syscalls:By Address|021914 - SwapHLEndian]]
+
[[Category:84PCE:Syscalls:By Address|021DC0 - SwapHLEndian]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Hypothesized Official Name:''' SwapHLEndian
 
'''Hypothesized Official Name:''' SwapHLEndian
  
'''Syscall Address:''' 021914h
+
'''Syscall Address:''' 021DC0h
  
Deletes a particular entry in the user entry stack. Starts at 1; '#' represents the current entry. So if input was like this:
+
Sets HL to LH. In other words, it loads the value in H to L, and the value in L to H.
  
1
+
Useful for converting between little-endian and big-endian.
---
+
2
+
---
+
Asm(prgmDEL
+
 
+
And prgmDEL called this routine with a = 1, the new history would look like this:
+
 
+
1
+
---
+
Asm(prgmDEL
+
 
+
And prgmDEL called this routine with a = 2, the new history would look like this:
+
 
+
2
+
---
+
Asm(prgmDEL
+
  
 
=== Inputs ===
 
=== Inputs ===
A = Entry to delete
+
HL - value
  
 
=== Outputs ===
 
=== Outputs ===
Selected entry is deleted
+
HL = LH
  
 
=== Destroys ===
 
=== Destroys ===
* All
+
* None

Latest revision as of 14:20, 25 May 2016

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