Shop OBEX P1 Docs P2 Docs Learn Events
prop tool assembly exploration — Parallax Forums

prop tool assembly exploration

CJCJ Posts: 470
edited 2007-04-24 23:22 in Propeller 1
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.
Sign In or Register to comment.