83Plus:BCALLs:49D2

From WikiTI
Revision as of 23:18, 1 April 2005 by CalcKing (Talk | contribs)

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

Synopsis

Official Name: GetEndVar

BCALL Address: 49D2

Executes FindSym and calculates the end address of the variable.

Inputs

  • OP1: Variable name

Outputs

  • HL: Points to end of variable
  • DE: Points to start of variable data
  • Other outputs are the same as FindSym

Destroys

  • All

Comments

This B_CALL can be useful if you want to access the end of a variable. Equivalent code located in example.

Example

 rst 10h ; FindSym
 ex	de,hl
 ld	e,(hl)
 inc	hl
 ld	d,(hl)
 inc	hl
 ex	de,hl
 add	hl,de

Credits and Contributions