Advertisement
Eeems

Untitled

Jun 11th, 2011
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Boot:
  2. xor a ; Kill USB interrupts from the start to avoid problems
  3.  
  4. out (57h), a
  5.  
  6. out (5Bh), a
  7. Shutdown:
  8. di
  9. ld a, 1 ; Set flash page 1 in bank 1.
  10. out (6), a
  11. in a, (2) ;get calc version
  12. rlca ;Roll bit 7 into carry.
  13. ld a, 41h ; Set ram page 1 in bank 2.
  14. jr nc, _
  15. out (5),a
  16. ld a,81h
  17. out (7),a
  18. jr ++_
  19. _ out (6), a
  20. out (7),a
  21. ld sp, 0FFFFh
  22. _ call Sleep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement