ASM 68k

7 replies [Last post]
pascal@diogoantunes.org
Offline
Joined: 09/03/2012

Hi I would to know how do you develop ASM programs for 68k proc.
Thereafter, I will able to emulate the program on a x86 proc.

The solution can be : - using wine and Easy68k. But It's a program
built by a proprietary compiler (Borland C++). Compile the sources with
an other compiler, but I have not tried yet.
- using AROS OS, and see if an environment exists for emulating ASM
sources.
- cross compilation, and using a amiga emulator. But I don't know what
I can do with it.

Which solution do you choose for your 68k programs development?
Thanks.

--
Libere,
Pascal Diogo Antunes.

"Ne pleurez pas votre passé car il s’est enfuit à jamais, et ne
craignez par l’avenir car il n’existe pas encore. Vivez dans le présent
et tâchez de le rendre aussi beau que vous vous en souviendrez
toujours."- Ida Scott Taylor.

ssdclickofdeath
Offline
Joined: 05/19/2013

Is it for an old Mac with 68k architecture?

pascal@diogoantunes.org
Offline
Joined: 09/03/2012

No, It's my work for school.
I have to develop an ASM program for 68k arch, but I don't have no
computer with 68k.

On Tue, 10 Dec 2013 21:26:03 +0100 (CET)
name at domain wrote:

> Is it for an old Mac with 68k architecture?

--
Libere,
Pascal Diogo Antunes.

"N'élaborez pas de stratégie commune si vos voies divergent."-
Confucius.

pascal@diogoantunes.org
Offline
Joined: 09/03/2012

I have no computer with 68k arch*

ssdclickofdeath
Offline
Joined: 05/19/2013

What is ASM?

pascal@diogoantunes.org
Offline
Joined: 09/03/2012

I mean assembly langage.

On Tue, 10 Dec 2013 22:02:31 +0100 (CET)
name at domain wrote:

> What is ASM?

--
Libere,
Pascal Diogo Antunes.

"Les bourgeois nous tuent par la faim ; volons, tuons, dynamitons, tous
les moyens sont bons pour nous débarrasser de cette pourriture."-
Michel Zévaco.

ivaylo
Offline
Joined: 07/26/2010

В 21:54 +0100 на 10.12.2013 (вт), Pascal Diogo Antunes написа:
> No, It's my work for school.
> I have to develop an ASM program for 68k arch, but I don't have no
> computer with 68k.

What about the good old GNU assembler? ;) I don't remember that I ever
used it although I had some university projects back in the days with
the Motorola 68Hxx series. I think it only supports 11 and 12 series.

aptitude show binutils-m68hc1x |grep Description
Description: binary utilities that support Motorola's 68HC11/12 targets

sudo aptitude install binutils-m68hc1x

dpkg -L binutils-m68hc1x |grep -- -as
/usr/share/man/man1/m68hc11-as.1.gz
/usr/bin/m68hc11-as
/usr/bin/m68hc12-as
/usr/share/man/man1/m68hc12-as.1.gz

man m68hc12-as
man m68hc12-as

Another option might be crasm:

aptitude show crasm |grep Description
Description: Cross assembler for 6800/6801/6803/6502/65C02/Z80

More potential options with mixed results:

apt-cache search assembler |less
apt-cache search assembly |less

If you find any free software that works, you would definitely want/have
to test your code in your school's lab assembler and use hacks/code
changes to make it work with both assemblers if you have to. Test it on
real hardware if the lab has such and it is an requirement before you
have to show it. I had a similar case with Microchip's PIC assembly for
some university projects and I used gputils/gpasm. Making your code work
for your teachers/your school's way is essential. The tradeoff is
minimal in my opinion. :)

pascal@diogoantunes.org
Offline
Joined: 09/03/2012

On Tue, 10 Dec 2013 23:48:35 +0200
Ivaylo Valkov <name at domain> wrote:

> В 21:54 +0100 на 10.12.2013 (вт), Pascal Diogo Antunes написа:
> > No, It's my work for school.
> > I have to develop an ASM program for 68k arch, but I don't have no
> > computer with 68k.
>
> What about the good old GNU assembler? ;) I don't remember that I ever
> used it although I had some university projects back in the days with
> the Motorola 68Hxx series. I think it only supports 11 and 12 series.
>
> aptitude show binutils-m68hc1x |grep Description
> Description: binary utilities that support Motorola's 68HC11/12 targets
>
> sudo aptitude install binutils-m68hc1x
>
> dpkg -L binutils-m68hc1x |grep -- -as
> /usr/share/man/man1/m68hc11-as.1.gz
> /usr/bin/m68hc11-as
> /usr/bin/m68hc12-as
> /usr/share/man/man1/m68hc12-as.1.gz
>
> man m68hc12-as
> man m68hc12-as
>
> Another option might be crasm:
>
> aptitude show crasm |grep Description
> Description: Cross assembler for 6800/6801/6803/6502/65C02/Z80
>
> More potential options with mixed results:
>
> apt-cache search assembler |less
> apt-cache search assembly |less
>
> If you find any free software that works, you would definitely want/have
> to test your code in your school's lab assembler and use hacks/code
> changes to make it work with both assemblers if you have to. Test it on
> real hardware if the lab has such and it is an requirement before you
> have to show it. I had a similar case with Microchip's PIC assembly for
> some university projects and I used gputils/gpasm. Making your code work
> for your teachers/your school's way is essential. The tradeoff is
> minimal in my opinion. :)

Thanks. But crasm isn't a solution for me (assembler for 6800 and not
68000). For simulating asm 68k programs on GNUilo I found nothing.

The unique solution is EASy68k (http://www.easy68k.com) + wine. But the
code source is compiled by a privative compiler.
The best would be to got a new executable compiled by a libre compiler,
and would be great if EASy68k worked on GNUilo too (thanks to cygwin I
guess).

--
Libere,
Pascal Diogo Antunes.

tenpo li tawa la sona li kama.