83Plus:BCALLs:4315

From WikiTI
Jump to: navigation, search

Synopsis

Official Name: CreateRList

BCALL Address: 4315

Creates a real list.

Inputs

  • HL = Number of elements
  • OP1 = Name of list

Outputs

  • HL points to symbol table entry
  • DE points to data section
  • OP4 contains the name as inputted in OP1.

Registers Destroyed

Comments

If there isn't enough RAM a memory error will be generated. (OP1) doesn't have to be 01h. Contents of the list are random.

Example

ld hl,listName
RST rMov9ToOP1
ld hl,4
B_CALL CreateRList

listName: db ListObj,"RAND",0