Difference between revisions of "83:ROMCalls:4000"

From WikiTI
Jump to: navigation, search
m (Added categories)
m (edited for 83 format)
Line 4: Line 4:
 
'''Official Name:''' LdHLInd
 
'''Official Name:''' LdHLInd
  
'''BCALL Address:''' 4000
+
'''Call Address:''' 4000
  
 
Stores the value at (HL) to register HL.
 
Stores the value at (HL) to register HL.

Revision as of 12:03, 28 March 2005

Synopsis

Official Name: LdHLInd

Call Address: 4000

Stores the value at (HL) to register HL.

Inputs

  • HL: pointer to bytes to load

Outputs

  • HL: value located at input (HL)

Registers Destroyed

  • AF

Comments

Useful utility call. Equivilant code located in example.

Example

LdHLInd:
 ld a,(hl)
 inc hl
 ld h,(hl)
 ld l,a
 ret