28 February 2007, 17:44 | #1 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
assemble error
can someone tewll me why
Code:
lea $10f80(a0),a0 Code:
The argument value is larger than the operand width |
28 February 2007, 17:48 | #2 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
That's because the offset is too big, lea xxx(ax),ax only works for values <32k, it's 16bit signed. So do add.l #$10f80,a0 to fix that error.
Edit: I don't know which assembler you are using but Asm1/Pro gives "Out of Range 16 Bit" error which is much more useful than the one your assembler gives I think. |
28 February 2007, 17:52 | #3 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
thanks stingray
I have another problem that is relevant to my slave.. will post over there |
28 February 2007, 17:59 | #4 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Feel free to do so. Btw, if your assembler supports 020+ instructions, you can have offsets larger than 32k for the lea xxx(ax),ax instruction.
|
28 February 2007, 18:00 | #5 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
i'm using barfly
|
28 February 2007, 18:09 | #6 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Then enable 020+ instructions and you can have lea ($10f80,a0),a0
Edit: just did a test, seems barfly automatically recognizes 020+ instructions if you use the new syntax. So just use the syntax I've been using above and you can assemble it. Edit2: WRONG! Barfly doesn't complain but the disassembly shows that it just generated code which uses a negative offset. PHXass gives correct code but you have to enable 020+ mode. I'd say just use the add.l solution and all is fine. =) Last edited by StingRay; 28 February 2007 at 18:17. |
28 February 2007, 21:05 | #7 |
2 contact me: email only!
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
|
Don't use specific 020 code as then your slave will ONLY work on 68020+! And there are still some people that use WHDLoad on A2000's etc.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WHDLoad error: error during 'resload_LoadKick' on monkey island & others | jamespstevenson | project.GameBase Amiga | 14 | 20 February 2014 05:33 |
The Avengers Assemble on the Amiga | CodyJarrett | project.Amiga Lore | 0 | 06 May 2012 17:30 |
ERROR: Metal Masters (Illegal Instruction / Address Error / Black Screen) | killergorilla | project.Killergorilla's WHD packs | 7 | 25 March 2012 15:32 |
ERROR: Leisure Suit Larry Enhanced (Address Error) | batwinky | project.Killergorilla's WHD packs | 23 | 30 January 2011 13:00 |
Forgot how to re-assemble a1200 lol | Techx | support.Hardware | 6 | 24 April 2008 22:10 |
|
|