Difference between revisions of "83Plus:BCALLs:4009"

From WikiTI
Jump to: navigation, search
(Created LdHLInd)
 
m (Comments)
Line 16: Line 16:
  
 
== Comments ==
 
== Comments ==
Useful utility call.  Equivilant code located in example.
+
Useful utility call.  Equivalent code located in example.
  
 
== Example ==
 
== Example ==

Revision as of 19:32, 27 March 2005

Synopsis

Official Name: LdHLInd

BCALL Address: 4009

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. Equivalent code located in example.

Example

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