Advertisement
DimkaM

Untitled

Jul 26th, 2018
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     di
  2.     ld sp,0x6000
  3.     jp loadprog
  4. namecode:
  5.     defb 'code    C'
  6. name0:
  7.     defb 'code0   C'
  8. loadblok
  9.     ld bc,0x7ffd
  10.     out (c),a
  11.     ld c,0x13
  12.     call 0x3d13
  13. laddr
  14.     ld hl,0x6000
  15.     ld a,0xff
  16.     ld c,0x0e
  17.     call 0x3d13
  18.     ret
  19. loadprog
  20.     ld hl,namecode
  21.     ld a,0x10
  22.     call loadblok
  23.     ld a,0xc0
  24.     ld (laddr+2),a
  25.     ld a,0x10
  26.     ld hl,name0
  27.     call loadblok
  28.     jp 0x6000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement