Difference between revisions of "83:ROMCalls:4036"

From WikiTI
Jump to: navigation, search
 
m (spelling)
 
Line 5: Line 5:
 
'''BCALL Address:''' 4036
 
'''BCALL Address:''' 4036
  
This routine adds two times A two HL and then jumps to [[83:ROMCalls:4000|LdHLind]]. It can be used to get an address from a pointer table.
+
This routine adds two times A to HL and then jumps to [[83:ROMCalls:4000|LdHLind]]. It can be used to get an address from a pointer table.
  
 
=== Inputs ===
 
=== Inputs ===

Latest revision as of 13:11, 13 April 2005

Synopsis

Official Name: A2PointHLind

BCALL Address: 4036

This routine adds two times A to HL and then jumps to LdHLind. It can be used to get an address from a pointer table.

Inputs

  • hl = pointer table base
  • a = entry in table to grab

Outputs

  • hl = (hl+2a)
  • a = (hl+2a)
  • de = 2a
  • bc preserved
  • f destroyed