EASy68K  
It is currently Tue Oct 22, 2019 4:49 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Assembler Directives
PostPosted: Thu Apr 02, 2009 3:14 pm 
Offline

Joined: Thu Apr 02, 2009 2:59 pm
Posts: 1
Location: California
Hi:

My interest is in generating source code for equipment that's typically decades old by reading the PROMs. In this case it's the Trimble GPS receiver called the Trimpack. See:
http://www.prc68.com/I/Trimpack.shtml#GraphicsTP

I have read the 8 bit PROMs and combined them into a 16 bit file correctly, i.e. the ASCII comments read correctly. There are jump tables at the start of the code in the address range 0000h to 0400h and in other places there are ASCII strings. What are the assembler directives to generate hex or ASCII data? Is there a list of all the directives?

It would be helpful to have a list of the 68000 commands that included their hex values, but so far I haven't found it. It helps to learn the hex code for things like Return From Subroutine or GOTO since there must be a label just after them.

_________________
---
Have Fun,

Brooke
http://www.PRC68.com


Top
 Profile  
 
 Post subject: Re: Assembler Directives
PostPosted: Thu Apr 02, 2009 8:05 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1102
BrookeClarke wrote:
Hi:
What are the assembler directives to generate hex or ASCII data? Is there a list of all the directives?

See EASy68K Help, Assembler Commands/Directives

The DC directive is used to assemble ASCII text and numeric data.

Code:
message DC.B  'Hello World',$d,$a,0
nbyte   DC.B   12
nword   DC.W   1234
nlong   DC.L   12345678

_________________
Prof. Kelly


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 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