Geekboy

Untitled

Feb 20th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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. bcall(_chkfindsym)
  7. jr c,create
  8. ; ld hl,op1 ; I belive i need to do this for delvararc.
  9. push af
  10. bcall(_DelVarArc) ;delete if since it exists
  11. pop af ; restore A which has the element type in it.
  12. Create:
  13. and 1fh
  14. cp 1
  15. ld hl,(RVarLength)
  16. jp z,CreateRList
  17. bcall(_createvar)
  18. ret
  19. CreateRlist:
  20. bcall(_CreateRList)
  21. ret
Advertisement
Add Comment
Please, Sign In to add comment