83Plus:BCALLs:4315: Difference between revisions

From WikiTI
Jump to navigationJump to search
No edit summary
 
mNo edit summary
 
Line 20: Line 20:


== Comments ==
== Comments ==
If there isn't enough RAM a memory error will be generated.
If there isn't enough RAM a memory error will be generated. ([[83Plus:RAM:8478|OP1]]) doesn't have to be 01h. Contents of the list are random.
Contents of the list are random.


== Example ==
== Example ==

Latest revision as of 09:39, 3 May 2005

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