I'm converting a rather large codebase from NESASM to ASM6, but I've run into a few problems:
1. Since ASM6 doesn't have the concept of banks, it also doesn't seem have the super useful BANK() function. Is there any way I can achieve the same effect or do I have to hardcode in the values?
2. While ASM6 has macros, it doesn't seem to have user-defined functions (unless I've just missed the syntax somewhere). You can't use macros as expressions, the compiler yells at you for trying. Any advice on how to deal with this?
Thanks in advance!
EDIT:
The conversion is now complete! It can be found here:
https://github.com/Drakim/smb3
1. Since ASM6 doesn't have the concept of banks, it also doesn't seem have the super useful BANK() function. Is there any way I can achieve the same effect or do I have to hardcode in the values?
2. While ASM6 has macros, it doesn't seem to have user-defined functions (unless I've just missed the syntax somewhere). You can't use macros as expressions, the compiler yells at you for trying. Any advice on how to deal with this?
Thanks in advance!
EDIT:
The conversion is now complete! It can be found here:
https://github.com/Drakim/smb3