Difference between revisions of "83Plus:BCALLs:4336"

From WikiTI
Jump to: navigation, search
 
m
 
Line 20: Line 20:
  
 
== Comments ==
 
== Comments ==
If there isn't enough RAM a memory error will be generated. ([[83Plus:RAM:8478|OP1]]) doesn't have to be 08h. ([[83Plus:RAM:8478|OP1]]+3) and ([[83Plus:RAM:8478|OP1]]+4) have to be zero. Contents of the equation are random.
+
If there isn't enough RAM a memory error will be generated. ([[83Plus:RAM:8478|OP1]]) doesn't have to be 08h. ([[83Plus:RAM:8478|OP1]]+3) and ([[83Plus:RAM:8478|OP1]]+4) have to be zero. Contents of the GDB are random.
  
 
== Example ==
 
== Example ==

Latest revision as of 02:08, 3 May 2005

Synopsis

(Un)Official Name: CreateGDB

BCALL Address: 4336

Creates a GDB.

Inputs

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

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 08h. (OP1+3) and (OP1+4) have to be zero. Contents of the GDB are random.

Example

ld hl,gdbName
RST rMov9ToOP1
ld hl,10
B_CALL CreateGDB

gdbName: db GDBObj,tVarGDB,tGDB1,0,0