Difference between revisions of "83Plus:BCALLs:4351"
From WikiTI
({{wikify}} i might get to it later) |
(→Comments: Added DelVarArc info) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:83Plus:BCALLs:By_Name:Variable|DelVar]] [[Category:83Plus:BCALLs:By_Name|DelVar]] [[Category:83Plus:BCALLs:By Address|4351 - DelVar]] | |
+ | == 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. Use [[83Plus:BCALLs:4FC6|DelVarArc]] to delete archived variables. | ||
− | + | == Example == | |
− | + | ld hl,name | |
− | + | ld de,[[83Plus:RAM:8478|OP1]] | |
− | + | ld bc,6 ; type (1) + name (4) + zero (1) | |
− | + | ldir | |
− | + | B_CALL [[83Plus:BCALLs:42F1|ChkFindSym]] | |
− | + | ret c | |
− | + | B_CALL DelVar | |
− | + | ;... | |
− | + | ||
− | Example | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
name: | name: | ||
− | + | .db ProgObj,"name",0 | |
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 11:40, 11 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. Use DelVarArc to delete archived variables.
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