83Plus:BCALLs:4333

From WikiTI
Revision as of 02:04, 3 May 2005 by 84plusfreak (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Official Name: CreatePict

BCALL Address: 4333

Creates a picture.

Inputs

  • OP1 = Name of picture

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. A picture is always 756 (02F4h) bytes in length. (OP1) doesn't have to be 07h. (OP1+3) and (OP1+4) have to be zero. Contents of the picture are random.

Example

ld hl,pictName
RST rMov9ToOP1
ld hl,10
B_CALL CreatePict

pictName: db PictObj,tVarPict,tPic1,0,0