RPGHacker / asar

(Now) official repository of the SNES assembler Asar, originally created by Alcaro
Other
199 stars 42 forks source link

Check BankCross Off Doesn't Work During SuperFX Code Assembly #189

Closed Yoshifanatic1 closed 3 years ago

Yoshifanatic1 commented 3 years ago

For some reason, asar gives you a bank crossing error if you cross a bank border when assembling SuperFX code, even when you explicitly turn off bank cross checks. If you apply the following code as a patch, then asar will throw error E5032.

`org $00FFFF arch superfx check bankcross off

IBT R0, #$00`

However, if you change the architecture to 65816/SPC700 and swap out the SuperFX opcode with a 2-4 byte 65816/SPC700 opcode, the patch will apply with no issue.