Advertisement
Guest User

Untitled

a guest
Aug 30th, 2010
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. On page 1C:
  2.  
  3. UnlockFlashFrom1C:
  4. di
  5. ld a, 1
  6. nop
  7. nop
  8. im 1
  9. di
  10. out (14h), a
  11. ret
  12. LockFlashFrom1C:
  13. ld a, 0
  14. di
  15. nop
  16. nop
  17. im 1
  18. di
  19. out (14h), a
  20. ret
  21.  
  22. Elsewhere:
  23.  
  24. UnlockFlash:
  25. di
  26. ld a, 1Ch
  27. out (6), a
  28. call UnlockFlashFrom1C
  29. ei
  30. ret
  31.  
  32. Elsewhere again:
  33.  
  34. call UnlockFlash
  35. ld a, 0FBh
  36. ld (0), a
  37. call LockFlash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement