EASy68K  
It is currently Tue Dec 10, 2019 5:10 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: align problem
PostPosted: Thu Nov 26, 2009 3:27 pm 
Offline

Joined: Sun Nov 01, 2009 4:02 pm
Posts: 26
Location: Belgium
Hi,

I'm busy to convert old .ASM files to easy68k file format.
In the old software I used the 'ALIGN' control.
This to align to even line numbers after example (a text input).
For the next command line.

I have an error when compiling the software.
I looked in the help file but did not find any alternative.

Is there an other solution ?

Marc

_________________
Greetings from Belgium
Hobby robot builder
www.marc-systems.be


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 4:13 am 
Offline

Joined: Mon Jun 20, 2005 4:55 pm
Posts: 14
DS.L 0 ;align to long
DS.W 0 ;align to work


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 9:25 am 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
ds.l 0 will only align to a word, to longword align an address you need to use ..

Code:
      ORG   (*+3)&-4

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 6:21 pm 
Offline

Joined: Mon Apr 17, 2006 8:45 pm
Posts: 10
Location: England
I'm surprised there isn't an EVEN directive defined.

Devpac has EVEN and also has another directive called CNOP:

<label> CNOP offset,alignment

where alignment is 4 for long, 2 for word etc, and offset is the number of bytes past the alignment.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 9:00 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1109
A directive could be added to the assembler if needed. Just make a request in the Wish List of the forum.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 11:31 pm 
Offline

Joined: Sun Nov 01, 2009 4:02 pm
Posts: 26
Location: Belgium
To all,

Thanks for the input.

Marc

_________________
Greetings from Belgium
Hobby robot builder
www.marc-systems.be


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group