Difference between revisions of "84PCE:Syscalls:020AE8"

From WikiTI
Jump to: navigation, search
m
 
Line 11: Line 11:
 
* HL = points to the start of the VAT entry for a particular variable
 
* HL = points to the start of the VAT entry for a particular variable
  
=== Outputs =
+
=== Outputs ===
 
* [[84PCE:RAM:D005F8|OP1]] contains the name of the variable
 
* [[84PCE:RAM:D005F8|OP1]] contains the name of the variable
  

Latest revision as of 10:17, 31 May 2016

Synopsis

Hypothesized Official Name: VarNameToOP1HL

Syscall Address: 020AE8h

This routine places the name of a variable into OP1 by using a pointer to the VAT entry for the variable.

Inputs

  • HL = points to the start of the VAT entry for a particular variable

Outputs

  • OP1 contains the name of the variable

Destroys

  • All

Example

	ld	hl,(editSym)
	call	_VarNameToOP1HL		; lookup the temporary input symbol
	call	_ChkFindSym
	ret	c
					; Do something with the varaible data here
	ret