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

From WikiTI
Jump to: navigation, search
 
m (indenting)
 
Line 25: Line 25:
  
 
== Example ==
 
== Example ==
  <nowiki>ld hl,sAns
+
  <nowiki> ld hl,sAns
rst 20h
+
rst 20h
B_CALL ChkFindSym
+
B_CALL ChkFindSym
ret c
+
ret c
B_CALL IsFixedName
+
B_CALL IsFixedName
jr nz,ansIsFixed
+
jr nz,ansIsFixed
 
sAns:
 
sAns:
 
  DB tVarLst,tAns,0</nowiki>
 
  DB tVarLst,tAns,0</nowiki>

Latest revision as of 18:09, 5 November 2006

Synopsis

Unofficial Name: IsFixedName

BCALL Address: 4363

This BCALL determines whether a variable's name has a fixed size or is of varying length.

Inputs

  • HL points to VAT entry's type byte

Outputs

  • NZ set if fixed name

Destroys

  • A

Comments

Protected and unprotected programs, groups, and appvars have variable length names, while matrices, strings, pictures, GDBs, etc. have fixed names.

Some lists have fixed names while some do not, and this BCALL handles this by checking the first character of the name. Fixed lists have the byte 24h, 3Ah, or 72h (the tAns token).

This BCALL is used somewhere within DelVar.

Example

 ld hl,sAns
 rst 20h
 B_CALL ChkFindSym
 ret c
 B_CALL IsFixedName
 jr nz,ansIsFixed
sAns:
 DB tVarLst,tAns,0