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

From WikiTI
Jump to: navigation, search
(Created page with "VarNameToOP1HL 020AE8 - VarNameToOP1HL == Synopsis == '''Hypothesized Official Name:''' VarNameToOP1...")
 
m
Line 6: Line 6:
 
'''Syscall Address:''' 020AE8h
 
'''Syscall Address:''' 020AE8h
  
This routine places the name of a variable into OP1 by using a pointer to the VAT entry for the variable.
+
This routine places the name of a variable into [[84PCE:RAM:D005F8|OP1]] by using a pointer to the VAT entry for the variable.
  
 
=== Inputs ===
 
=== Inputs ===
 
* 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 =
* OP1 contains the name of the variable
+
* [[84PCE:RAM:D005F8|OP1]] contains the name of the variable
  
 
=== Destroys ===
 
=== Destroys ===

Revision as of 11:16, 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