English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 03 September 2010, 18:07   #1
CmdrVimes
Badge 177
 
CmdrVimes's Avatar
 
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?
CmdrVimes is offline  
Old 03 September 2010, 18:10   #2
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
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
StingRay is offline  
Old 03 September 2010, 18:13   #3
CmdrVimes
Badge 177
 
CmdrVimes's Avatar
 
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
Quote:
Originally Posted by StingRay View Post
Let me guess, right before the label you have the "graphics.library" string or something similar?
Can you see my screen? No? Psychic obviously

Cheers StingRay.
CmdrVimes is offline  
Old 03 September 2010, 18:52   #4
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
Quote:
Originally Posted by CmdrVimes
Can you see my screen? No? Psychic obviously
LOL. You'll soon learn that Sting has a finely tuned sense of what the bug might be in code.

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!
pmc is offline  
Old 03 September 2010, 23:23   #5
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,754
Quote:
Originally Posted by StingRay View Post
Anyway, just place CNOP 0,2 before that label, this will align the label properly and the error will be gone.
Or place 'cnop 0,2' (or 'even') after your strings (looks better ).

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.
Thorham is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:04.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07850 seconds with 13 queries