SHOW:
|
|
- or go back to the newest paste.
| 1 | DeleteAndCreate | |
| 2 | ;expects pointer to variable name in hl | |
| 3 | ;destroys all | |
| 4 | ;returns pointer to variable data in de | |
| 5 | rst 20h ;load op1 with variable name | |
| 6 | rst 18h ; save op 1 to the FPS | |
| 7 | ; Only need to save it if we are calling a delete as it survives chkfindsym | |
| 8 | bcall(_chkfindsym) | |
| 9 | - | rst 18h ; save op 1 to the FPS |
| 9 | + | |
| 10 | ; ld hl,op1 ; I belive i need to do this for delvararc. | |
| 11 | push af | |
| 12 | - | bcall(_DelVarArc) ;delete if since it exists |
| 12 | + | bcall(_DelVarArc) ;delete if since it exists |
| 13 | - | bcall(4390h) ;Popop1 |
| 13 | + | |
| 14 | Create: | |
| 15 | - | Create: |
| 15 | + | bcall(4390h) ;Popop1 |
| 16 | pop af ; restore A which has the element type in it. | |
| 17 | and 1fh | |
| 18 | cp 1 | |
| 19 | ld hl,(RVarLength) | |
| 20 | jp z,CreateRList | |
| 21 | bcall(_createvar) | |
| 22 | ret | |
| 23 | CreateRlist: | |
| 24 | bcall(_CreateRList) | |
| 25 | ret |