SHARE
TWEET

SGB1v2 BIOS function that doesn't make sense

ISSOtm Jul 18th, 2019 167 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .80:A90F .A8
  2. .80:A90F .I8
  3. .80:A90F
  4. .80:A90F ; =============== S U B R O U T I N E =======================================
  5. .80:A90F
  6. .80:A90F ; This function has branches to something that can't be code, wtf?
  7. .80:A90F
  8. .80:A90F sub_80A90F:                             ; CODE XREF: sub_80A781:loc_80A79A↑p
  9. .80:A90F                 REP     #$20 ; ' '
  10. .80:A911 .A16
  11. .80:A911                 AND     #$F
  12. .80:A914                 ASL
  13. .80:A915                 ASL
  14. .80:A916                 TAY
  15. .80:A917                 LDA     unk_81E25F, Y
  16. .80:A91A                 BMI     loc_80A945
  17. .80:A91C                 CLC
  18. .80:A91D                 ADC     stru_7E1000.xPos, X
  19. .80:A920                 CMP     #$FD
  20. .80:A923                 BCC     loc_80A928
  21. .80:A925                 LDA     #$FD
  22. .80:A928
  23. .80:A928 loc_80A928:                             ; CODE XREF: sub_80A90F+14↑j
  24. .80:A928                 STA     stru_7E1000.xPos, X
  25. .80:A92B                 LDA     unk_81E261, Y
  26. .80:A92E                 CLC
  27. .80:A92F                 ADC     stru_7E1000.yPos, X
  28. .80:A932                 CMP     #$D2
  29. .80:A935                 BCS     loc_80A952+1
  30. .80:A937                 CMP     #2
  31. .80:A93A                 BCS     loc_80A93F
  32. .80:A93C                 LDA     #2
  33. .80:A93F
  34. .80:A93F loc_80A93F:                             ; CODE XREF: sub_80A90F+2B↑j
  35. .80:A93F                                         ; sub_80A90F+47↓j
  36. .80:A93F                 STA     stru_7E1000.yPos, X
  37. .80:A942                 SEP     #100000b
  38. .80:A944 .A8
  39. .80:A944                 RTS
  40. .80:A945 ; ---------------------------------------------------------------------------
  41. .80:A945
  42. .80:A945 loc_80A945:                             ; CODE XREF: sub_80A90F+B↑j
  43. .80:A945                 CLC
  44. .80:A946                 ADC     stru_7E1000.xPos, X
  45. .80:A949                 CMP     #$FD
  46. .80:A94B                 BRK
  47. .80:A94D                 PHX
  48. .80:A94E                 LDA     #0
  49. .80:A950                 BRK
  50. .80:A952
  51. .80:A952 loc_80A952:                             ; CODE XREF: sub_80A90F+26↑j ; This ref is actually to `loc_80A952**+1**`??
  52. .80:A952                 CMP     D, $A9, X
  53. .80:A954                 CMP     (D, 0)
  54. .80:A956                 BRA     loc_80A93F
  55. .80:A956 ; End of function sub_80A90F
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top