Advertisement
Eeems

Untitled

Jul 7th, 2011
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ...
  2.     call ReturnFreeRAM
  3.     ld a,l
  4.     call DispHexA
  5.     ld a,h
  6.     call DispHexA
  7. ...
  8.  
  9. DispHexA:
  10.    push ix
  11.    push af
  12.    push hl
  13.    push bc
  14.    push af
  15.    rrca
  16.    rrca
  17.    rrca
  18.    rrca
  19.    call dispha
  20.    pop af
  21.    call dispha
  22.    pop bc
  23.    pop hl
  24.     pop af
  25.     pop ix
  26.    ret
  27. dispha:
  28.    and 15
  29.    cp 10
  30.    jp nc,dhlet
  31.    add a,48
  32.    jp dispdh
  33. dhlet:
  34.    add a,55
  35. dispdh:
  36.    call PutChar
  37.    ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement