83:ROMCalls:4000: Difference between revisions

From WikiTI
Jump to navigationJump to search
Timendus (talk | contribs)
No edit summary
 
m Added categories
Line 1: Line 1:
[[Category:83:ROMCalls:By_Address|4000 - LdHLInd]]
[[Category:83:ROMCalls:By_Name|LdHLInd]]
== Synopsis ==
== Synopsis ==
'''Official Name:''' LdHLInd
'''Official Name:''' LdHLInd

Revision as of 18:38, 28 March 2005

Synopsis

Official Name: LdHLInd

BCALL 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