EASy68K  
It is currently Mon Mar 30, 2020 10:40 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Force allignment
PostPosted: Tue Dec 27, 2016 9:20 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1118
Add directive to force Long address alignment.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject: Re: Force allignment
PostPosted: Sat Feb 22, 2020 4:56 pm 
Offline

Joined: Thu Feb 20, 2020 8:02 pm
Posts: 11
According to documentation, you can use

Code:
    DS.W 0 ; forces word alignment.


See documentation of the DS and DC directives.

Yes,some assemblers sometimes provide an EVEN directive which does just that, i.e force the next command to be on a word-aligned address.

This directive doesn't exist in EASy68k (it could be added indeed) but you can have a very similar thing by making a macro:

Code:
EVEN   MACRO
   DS.W 0
   ENDM


Top
 Profile  
 
 Post subject: Re: Force allignment
PostPosted: Sat Feb 22, 2020 11:45 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1118
Force Long alignment was a user request. DS.W 0 or DS.L 0 forces word alignment but not Long alignment.

_________________
Prof. Kelly


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
Powered by phpBB® Forum Software © phpBB Group