EASy68K  
It is currently Thu Jul 02, 2020 3:46 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Odd assembly errors
PostPosted: Sat Feb 04, 2006 5:53 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
Trying to assemble the following code gives odd errors

Code:
DMA_CSR     EQU   $80004040         * channel status register
DMA_DCR     EQU   $80004044         * device control register

      ORG   $1000

start
      MOVE.b      #$F0,(DMA_CSR).l  * reset channel status register
      MOVE.b      #$80,(DMA_DCR).l  * set device control register, cycle steal

      END   start


The error message is simply the source line and no output is generated. The puzzling thing is the first MOVE.b generates an error, of sorts, but the second one doesn't.

lee.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 6:08 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
It seems that adding a comma anywhere in the comment on the line that generates the error fixes it and correct code is generated.

?

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 09, 2006 10:05 am 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
Doh! Just tripped over this one again ..

Code:
   MOVE.l   fla_old_timer(a3),(timer_vec).w

.. generates an error whereas ..

Code:
   MOVE.l   fla_old_timer(a3),(timer_vec).w   ,

.. generates the correct code. Also ..

Code:
   MOVE.l   (timer_vec).w,fla_old_timer(a3)

generates the correct code without a comma in the comment field.

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 3:29 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1126
Corrected in v3.6 beta. I think :roll:

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 8:16 pm 
Offline

Joined: Mon Dec 20, 2004 6:03 pm
Posts: 50
profkelly wrote:
Corrected in v3.6 beta. I think :roll:


That's.....reassuring. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 11:57 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1126
Hey, I've gotta leave something for the beta testers to do. :banghead:

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 28, 2006 9:14 pm 
Offline

Joined: Mon Dec 20, 2004 6:03 pm
Posts: 50
profkelly wrote:
Hey, I've gotta leave something for the beta testers to do. :banghead:


Ah, sry....I forgot that. :roll:


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Group