Geekboy

Untitled

Feb 6th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DeleteAndCreate
  2. ;expects pointer to variable name in hl
  3. ;destroys all
  4. ;returns pointer to variable data in de
  5.  push hl
  6.   rst 20h  ;load op1 with variable name
  7.   bcall(_chkfindsym)
  8.   jr c,create
  9.   bcall(_DelVarArc)   ;delete if since it exists
  10. Create:
  11.  pop hl
  12.  ld a,(hl)
  13.  ld hl,(RVarLength)
  14.  bcall(_createvar)
  15.  ret
Advertisement
Add Comment
Please, Sign In to add comment