03 September 2010, 18:07 | #1 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
Problem allocating some memory
Hi Chaps,
Can anyone tell me what this means? It happens in AsmPro v1.14 when i try to get the assembler to run a Check Only on my code: >AC Pass 1.. ** Word at Odd Address 52 gfxbas: dc.l 0 > Have I done something stupid like try to get an even number of bytes into an odd-numbered location or something? |
03 September 2010, 18:10 | #2 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
That just means that label gfxbas is at an odd address which is not allowed. Let me guess, right before the label you have the "graphics.library" string or something similar? Anyway, just place CNOP 0,2 before that label, this will align the label properly and the error will be gone.
Last edited by StingRay; 03 September 2010 at 18:22. Reason: typo |
03 September 2010, 18:13 | #3 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
|
03 September 2010, 18:52 | #4 | |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
I had a problem with a scroller once - Sting immediately suggested a corrupted sine pointer and that turned out to be the problem. I also had a really strange problem with my vectors that Sting immediately suggested might be an issue with the line draw code and guess where the problem was... Sting == the Yoda of asm! |
|
03 September 2010, 23:23 | #5 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,754
|
Quote:
You can also put your strings after everything else in your source code, or even in their own section, and you'll never have that problem again, without using cnop or even. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AmiDEVcpp: Allocating gfxdata in chip mem | tolkien | Coders. C/C++ | 9 | 22 April 2013 20:21 |
Allocating Fast RAM as Chip? | Fingerlickin_B | support.Hardware | 22 | 20 November 2008 22:15 |
A600 Not allocating full 1mb | FOL | support.Hardware | 24 | 18 October 2008 13:02 |
not really a problem, but a question about 020s and memory | polybius | support.Hardware | 2 | 09 September 2006 00:13 |
External Memory Problem | @UAE | support.Hardware | 7 | 05 May 2002 17:54 |
|
|