Advertisement
LuigiBlood

BIOSUpdate_boot_hook

Jul 15th, 2012
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;BS-X BIOS
  2. ;boot_hook update from bsx16.srm (BS-X SRAMS Dumps 6-26-01)
  3. ;Disassembled by LuigiBlood
  4.  
  5. SEP #$30
  6. LDA #$01
  7. STA $2194 ;enable streams
  8. STA $013B
  9. DEC A
  10. STA $7EA1B8
  11. LDX #$07 ;Wait for 7 frames
  12. NMI_Wait:
  13. LDA $4210
  14. BPL NMI_Wait
  15. NMI_Off_Wait:
  16. LDA $4210
  17. BMI NMI_Off_Wait
  18. DEX
  19. BNE NMI_Wait
  20. LDA $0665
  21. CMP #$47
  22. BNE Return
  23. SEP #$20
  24. REP #$10
  25. STZ $143F
  26. JSL $10598C ;detect_receiver BIOS function
  27. BEQ receiver_found
  28. INC $143F
  29. receiver_found:
  30. PLA
  31. PLX
  32. JML $809048
  33. Return:
  34. RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement