Difference between revisions of "84PCE:Syscalls:020138"

From WikiTI
Jump to: navigation, search
(Created page with "ldhlind_s 020138 - ldhlind_s == Synopsis == '''Hypothesized Official Name:''' ldhlind_s '''Syscall...")
 
Line 7: Line 7:
  
  
This indirectly loads the 16-bit value located at hl into hl, and post increments twice.
+
This indirectly loads the 16-bit value located at hl into hl, and post increments once.
  
Basically, it is a 16-bit version of:
+
Basically, it is:
  <nowiki>ld hl,(hl)
+
  <nowiki> ld hl,(hl)
inc hl
+
 
  inc hl</nowiki>
 
  inc hl</nowiki>
 +
But then clears HLU.
  
 
=== Inputs ===
 
=== Inputs ===

Revision as of 19:16, 4 May 2015

Synopsis

Hypothesized Official Name: ldhlind_s

Syscall Address: 020138h


This indirectly loads the 16-bit value located at hl into hl, and post increments once.

Basically, it is:

 ld hl,(hl)
 inc hl

But then clears HLU.

Inputs

HL - address

Outputs

HL = value at address

Destroys

  • A