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

From WikiTI
Jump to: navigation, search
({{wikify}} i might get to it later)
(wiki'd and corrected)
Line 1: Line 1:
{{wikify}}
+
[[Category:83Plus:BCALLs:By_Name:Variable|DelVar]] [[Category:83Plus:BCALLs:By_Name|DelVar]] [[Category:83Plus:BCALLs:By Address|4351 - DelVar]]
 +
== Synopsis ==
 +
'''Official Name:''' DelVar
  
[[Category:83Plus:BCALLs:By Address|4351 - DelVar]]
+
'''BCALL Address:''' 4351h
Synopsis
+
  
Official Name: DelVar
+
Delete a variable.
  
BCALL Address: 4351h Use "Call Address" for regular 83.
+
=== Inputs ===
 +
* HL points to the VAT entry
 +
* BDE points to the start of the data
  
Inputs
+
=== Outputs ===
 +
''None''
  
* OP1: Name of variable
+
=== Destroys ===
 +
* All registers
  
Outputs
+
== Comments ==
 +
This routine will refuse to delete archived variables, throwing an error instead.
  
* none known
+
== Example ==
 
+
    ld  hl,name
Destroys
+
    ld  de,[[83Plus:RAM:8478|OP1]]
 
+
    ld  bc,6     ; type (1) + name (4) + zero (1)
* Nil
+
    ldir
 
+
    B_CALL [[83Plus:BCALLs:42F1|ChkFindSym]]
Comments
+
    ret c
 
+
    B_CALL DelVar
Still uncertain as to how this B_CALL works, don't take this information to heart!
+
;...
 
+
   
Example
+
 
+
ld  hl,Op1
+
ld  de,name
+
ld  bc,5     ;4 for the length of the name and 1 for the type
+
  ldir
+
 
  name:
 
  name:
.db ProgObj,"name",0
+
    .db ProgObj,"name",0
 
+
Credits and Contributions
+
 
+
Nil
+

Revision as of 18:13, 7 December 2005

Synopsis

Official Name: DelVar

BCALL Address: 4351h

Delete a variable.

Inputs

  • HL points to the VAT entry
  • BDE points to the start of the data

Outputs

None

Destroys

  • All registers

Comments

This routine will refuse to delete archived variables, throwing an error instead.

Example

    ld  hl,name
    ld  de,OP1
    ld  bc,6     ; type (1) + name (4) + zero (1)
    ldir
    B_CALL ChkFindSym
    ret c
    B_CALL DelVar
;...

name:
    .db ProgObj,"name",0