83Plus:BCALLs:4B0D

From WikiTI
Jump to: navigation, search

Synopsis

Official Name: CreatePair

BCALL Address: 4B0D

Creates an equation pair (parametric).

Inputs

  • HL = Length in bytes
  • OP1 = Name of equation

Outputs

  • HL points to symbol table entry
  • DE points to data section
  • OP4 contains the name of the member not specified.
  • OP1 contains the name specified

Registers Destroyed

Comments

The specified equations is created with size HL. The other member of the pair is created with zero-length. If there isn't enough RAM a memory error will be generated. (OP1) doesn't have to be 03h. (OP1+3) and (OP1+4) have to be zero. Contents of the equations are random.

Example

ld hl,equName
RST rMov9ToOP1
ld hl,10
B_CALL CreatePair

equName: db EquObj,tVarEqu,tX1T,0,0