Thread: Simple Question
View Single Post
Old 08 January 2009, 22:34   #9
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,148
Ed you're right about using 68k absolute addressing mode, but I believe bpazolli was talking about using specific addresses for code and data. Or he was at first anyway.

bpazolli, your code in post #6 is fine when assembled with any AmigaOS assembler (maybe apart from the .w size on the movea). As Ed explained, the assembler will use offset tables and other things to automagically relocate your code to whichever address the OS decides to load it to.

It's only when you start saying things like "movea.l #$60000,a0" where you're using hardcoded, numerical addresses (not labels within your own program) that you will run into problems.
girv is offline  
 
Page generated in 0.04746 seconds with 11 queries