prop tool assembly exploration
CJ
Posts: 470
found some cool things for those looking to program in straight assembly
1. if you use only one spin file for your app with minimal spin(just a cognew(@asm,0)), you can get compile time absolute addresses by adding $10. (@asmlabel + $10)
2. this goes with #1, make a separate DAT section for each assembly piece and label the same line for easy finding with summary view (DAT asm) if you put the ORG on the next line you can use the label for your address computation for COGINIT
it would be nice to have an easier way to get C-time absolutes, but this will work for now
enjoy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Parallax Forums - If you're ready to learn, we're ready to help.
1. if you use only one spin file for your app with minimal spin(just a cognew(@asm,0)), you can get compile time absolute addresses by adding $10. (@asmlabel + $10)
2. this goes with #1, make a separate DAT section for each assembly piece and label the same line for easy finding with summary view (DAT asm) if you put the ORG on the next line you can use the label for your address computation for COGINIT
it would be nice to have an easier way to get C-time absolutes, but this will work for now
enjoy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Parallax Forums - If you're ready to learn, we're ready to help.