Share Pastebin
Guest
Public paste!

Copy running program

By: a guest | Mar 18th, 2010 | Syntax: Z80 Assembler | Size: 0.43 KB | Hits: 55 | Expires: Never
Copy text to clipboard
  1.  nolist
  2.  include "ti83plus.inc"
  3.  list
  4.  
  5. Part1:
  6.  1/>ld hl, op1
  7.  1/>ld de, tempSwapArea+314
  8.  1/>ld bc, 9
  9.  1/>ldir
  10. Part2:
  11.  ; Now we have the prog name stored in tempSwapArea+314
  12.  1/>ld hl, tempSwapArea+314
  13.  1/>rst rmov9toop1
  14.  bcall ChkFindSym
  15.  1/>xor a
  16.  1/>cp b
  17.  1/>ld a, (de)
  18.  1/>ld b, a
  19.  1/>inc de
  20.  1/>ld a, (de)
  21.  1/>ld b, a
  22.  1/>inc de
  23.  1/>push bc
  24.  1/>ld hl, tempSwapArea+314
  25.  1/>rst rmov9toop1
  26.  bcall CreateProtProg
  27.  1/>pop bc
  28.  1/>inc de
  29.  1/>inc de
  30.  1/>ld hl, 9D93h
  31.  1/>ldir