83Plus:BCALLs:4E6A
From WikiTI
Revision as of 02:12, 3 May 2005 by 84plusfreak (Talk | contribs)
Synopsis
Official Name: CreateAppVar
BCALL Address: 4E6A
Creates an appvar.
Inputs
- HL = Length in bytes
- OP1 = Name of appvar
Outputs
Registers Destroyed
Comments
If the length of name is shorter than 8 characters it must be zero-terminated. If there isn't enough RAM a memory error will be generated. (OP1) doesn't have to be 15h. Contents of the appvar are random.
Example
ld hl,appvarName RST rMov9ToOP1 ld hl,10 B_CALL CreateAppVar appvarName: db AppVarObj,"VARNAME",0