83Plus:BCALLs:4009

From WikiTI
Revision as of 18:16, 9 October 2005 by 198.37.19.193 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Official Name: LdHLInd

BCALL Address: 4009

Loads the value at (HL) into register HL.

Inputs

  • HL: pointer to bytes to load

Outputs

  • HL: value located at input (HL)

Registers Destroyed

  • AF

Comments

Useful utility call. Equivalent code located in example.

Example

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

There is also an equivalent version which uses DE instead of A:

LdHLInd:
 ld e,(hl)
 inc hl
 ld d,(hl)
 ex de,hl
 ret