EASy68K  
It is currently Thu Mar 30, 2017 8:40 am

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Editor
PostPosted: Thu Jul 02, 2009 2:21 pm 
Offline

Joined: Wed Jul 01, 2009 10:33 pm
Posts: 5
Location: Ridgecrest, CA
I've just started using EASy68K on a serious legacy system. Serious 68K programs almost always have assembler directives. Directives for my Microtec Research ASM68K assembler (also legacy) show up as errors, and don't allow assembly or simulation. Can these be included?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jul 02, 2009 11:23 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Location: Monroe County Community College, Monroe Michigan, U.S.A.
Which directives do you want added?

EASy68K includes many of the directives defined in the original Motorola 68000 macro assembler plus some additional directives. The Motorola assembler contained a separate link step. EASy68K is a two pass assembler with no linker. Some of the directives from the Motorola assembler are only applicable to the assemble/link environment. Those directives have been replaced with new directives that accomplish the same operation in EASy68K.

_________________
Prof. Kelly


Top
 Profile  
Reply with quote  
 Post subject: Editor
PostPosted: Mon Jul 06, 2009 4:41 pm 
Offline

Joined: Wed Jul 01, 2009 10:33 pm
Posts: 5
Location: Ridgecrest, CA
Sorry for the delay in answering, due to July 4 holiday. Thanks for your question about assembler directives. The Microtec Research (now part of Mentor Graphics) ASM68K is apparently an older product, and I've only located one manual for it. To avoid taking up too much forum space, I'll send you a list of the 35-40 directives used, if I can locate a direct email address.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jul 06, 2009 6:12 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Location: Monroe County Community College, Monroe Michigan, U.S.A.
Just post them here, other users may have comments or suggestions.

_________________
Prof. Kelly


Top
 Profile  
Reply with quote  
 Post subject: Editor
PostPosted: Tue Jul 07, 2009 5:08 pm 
Offline

Joined: Wed Jul 01, 2009 10:33 pm
Posts: 5
Location: Ridgecrest, CA
Assembler directives possible in ASM68K:
ALIGN, CHIP, COMLINE, COMMON, DC, DCB, DS, ELSEC, END, ENDC, ENDR, EQU, FAIL, FEQU, FOPT, FORMAT, IDNT, IFC, IFDEF, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNC, IFNDRC, IFNE, INCLUDE, IRP, IRPC, LIST, LLEN, MASK2, NAME, NOOBJ, OFFSET, OPT, ORG, PAGE, PLEN, REG, REPT, RESTORE, SAVE, SECT/SECTION, SET, SPC, TTL, XCOM, XDEV, XREF. I don't know how many of these are already implemented in EASy68K. Some are obviously only for floating point processing with the 68881/2 and 68040.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jul 07, 2009 7:08 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Location: Monroe County Community College, Monroe Michigan, U.S.A.
EASy68K has:
DC, DCB, DS, END, ENDC, EQU, FAIL, IFC, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNC, IFNE, INCLUDE, OFFSET, OPT, ORG, REG, SECTION, SET

I am not sure what some of the other directives do in that assembler. You will need to provide a description. EASy68K may implement the above directives differently, again, you will need to compare.

_________________
Prof. Kelly


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jul 08, 2009 3:17 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
I've converted quite a bit of other 68k assembler code to work with EASy68K and haven't come across any that can't bo done so far so here are my thoughts of how to handle the unsupported ASM68K directives.

Code:
ALIGN n     comment out for n = 1
            use ds.w 0 for n = 2
            use *=(*+n)&-n for n > 2

CHIP, MASK2, FEQU, FOPT, FPU

            n/a to EASy68K so comment out, use OPT BIT for 68020
            bitfield instructions

COMLINE n   use ds.b n

COMMON      use SECTION

ELSEC       use ENDC followed by the complement to the IFxx

IFDEF <name>

            use IFNE <name>

IFNDRC      not listed in my ASM68K manual

IRP, IRPC   possiby replace with macros

IDNT, NAME, NOOBJ

            comment out as no linkable object code is produced

FORMAT, LLEN, PAGE, PLEN, SPC, TTL

            comment out, applies to listing only

REPT, ENDR  expand the repeat by hand

RESTORE, SAVE

            these can probably be safely commented out

XCOM, XDEV, XREF

            comment out or replace with internal references, otherwise
            applies to linkable code only which EASy68K doesn't do

Lee.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jul 08, 2009 4:02 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
That should be ..

Code:
use *=(*+n-1)&-n for n > 2

Lee.


Top
 Profile  
Reply with quote  
 Post subject: Editor
PostPosted: Wed Jul 08, 2009 7:25 pm 
Offline

Joined: Wed Jul 01, 2009 10:33 pm
Posts: 5
Location: Ridgecrest, CA
Sorry for the typo. IFNDRC should have been IFNDEF.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jul 15, 2009 11:23 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Location: Monroe County Community College, Monroe Michigan, U.S.A.
Thanks Lee.

Since it looks like all of the directives have a comparable solution in EASy68K I'm moving this thread to wishes granted.

_________________
Prof. Kelly


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 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:  
Powered by phpBB® Forum Software © phpBB Group