EASy68K
http://easy68k.com/EASy68Kforum/

Editor
http://easy68k.com/EASy68Kforum/viewtopic.php?f=9&t=679
Page 1 of 1

Author:  jreymann [ Thu Jul 02, 2009 2:21 pm ]
Post subject:  Editor

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?

Author:  profkelly [ Thu Jul 02, 2009 11:23 pm ]
Post subject: 

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.

Author:  jreymann [ Mon Jul 06, 2009 4:41 pm ]
Post subject:  Editor

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.

Author:  profkelly [ Mon Jul 06, 2009 6:12 pm ]
Post subject: 

Just post them here, other users may have comments or suggestions.

Author:  jreymann [ Tue Jul 07, 2009 5:08 pm ]
Post subject:  Editor

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.

Author:  profkelly [ Tue Jul 07, 2009 7:08 pm ]
Post subject: 

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.

Author:  lee [ Wed Jul 08, 2009 3:17 pm ]
Post subject: 

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.

Author:  lee [ Wed Jul 08, 2009 4:02 pm ]
Post subject: 

That should be ..

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

Lee.

Author:  jreymann [ Wed Jul 08, 2009 7:25 pm ]
Post subject:  Editor

Sorry for the typo. IFNDRC should have been IFNDEF.

Author:  profkelly [ Wed Jul 15, 2009 11:23 pm ]
Post subject: 

Thanks Lee.

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/