EASy68K  
It is currently Sun Dec 16, 2018 11:36 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Oct 09, 2010 5:05 pm 
Offline

Joined: Sat Oct 09, 2010 4:57 pm
Posts: 1
Code:
        ORG     $1000
  DN    DC.L    10.125
        END     $400

in the debug it is stored as:

00001000= 0000000A

That just seems to be storing 10


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 09, 2010 10:33 pm 
Offline

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
DC.L defines a 32-bit INTEGER constant

The 68000 doesn't natively support floating, for the 68020 w/68881 or 68882 FPU you can do the following.

Code:
28   000000A6 4049 0FDB                 dc.s    3.14159265358979
29   000000AA 4009 21FB 5444            dc.d    3.14159265358979
              2D11
30   000000B2 4000 0000 C90F            dc.x    3.14159265358979
              DAA2 2168 87DE
31   000000BE 0000 0003 1415            dc.p    3.14159265358979
              9265 3589 7900


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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