Welcome, Guest. Please login or register.

Author Topic: Motorola 68k Dev on an Amiga  (Read 4452 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline alfredbonnabelTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 26
    • Show only replies by alfredbonnabel
    • http://www.alfredbonnabel.com
Motorola 68k Dev on an Amiga
« on: October 20, 2010, 02:54:12 PM »
Not sure how feasible this is, but I would like to give it a shot if possible. I am wanting to work on programming for the m68k for a few other platforms such as the Sega Genesis/Mega Drive and was wondering if that would be possible on an Amiga since it has a m68k native. I've been having trouble cross-compiling gcc on my Linux server and I figured it would be best to develop on a native processor if possible anyways. Thoughts?
« Last Edit: October 21, 2010, 01:26:16 AM by alfredbonnabel »
My blog on computers in general and my journey to Amiga at AlfredBonnabel.com.
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: Motorola 68k Dev on an Amiga
« Reply #1 on: October 20, 2010, 03:13:19 PM »
Honestly, I'd just use the Devpac assembler. 68k assembly language is so advanced it's nearly a high-level language.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline wawrzon

Re: Motorola 68k Dev on an Amiga
« Reply #2 on: October 20, 2010, 03:15:38 PM »
a good solution for crosscompiling is amidevcpp, the gcc range from 3.4.0 to 4.5.0 is available. native you would probably have to stick to 2.9.x, although it could be changed. also vbcc is regarded a good native compiler on amiga 68k
 

Offline Vanilla

  • Full Member
  • ***
  • Join Date: Oct 2008
  • Posts: 100
    • Show only replies by Vanilla
Re: Motorola 68k Dev on an Amiga
« Reply #3 on: October 20, 2010, 03:49:32 PM »
AFAIK the MegaDrive had very similar graphics to the Amiga as well as the CPU so it shoud be even more compatible! :-)
Welcome Vanilla. To your continuing tour of duty. :-)
 :angel:
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: Motorola 68k Dev on an Amiga
« Reply #4 on: October 20, 2010, 03:50:04 PM »
I've been using DevPac since the early ninties, it's clean and not cluttered, configurable, compiles very fast and is in my opinion the best M68k assembler ever on the Amiga.:)
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: Motorola 68k Dev on an Amiga
« Reply #5 on: October 20, 2010, 04:00:30 PM »
Quote from: Vanilla;585872
AFAIK the MegaDrive had very similar graphics to the Amiga as well as the CPU so it shoud be even more compatible! :-)
Not so much. The Mega Drive/Genesis VDP is based around layers of tiles and free-moving sprites, like other game consoles, rather than the Amiga's free-form bitmap approach. That said, the Amiga can do tile-based graphics almost as easily with the blitter, so if you design with that in mind, it shouldn't be that hard to go between them.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline alfredbonnabelTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 26
    • Show only replies by alfredbonnabel
    • http://www.alfredbonnabel.com
Re: Motorola 68k Dev on an Amiga
« Reply #6 on: October 20, 2010, 04:26:49 PM »
Nice. Good to see that I have plenty of options. Once I get a keyboard I plan on getting cracking at some of this. Good times ahead. :cool:
My blog on computers in general and my journey to Amiga at AlfredBonnabel.com.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: Motorola 68k Dev on an Amiga
« Reply #7 on: October 20, 2010, 07:23:41 PM »
An m68k-elf toolchain, complete with newlib and gdb (useful only as a bare CPU simulator), should build out-of-the-box on just about any host. After that, you just need linker scripts and startup code, both of which are readily available.
 

Offline Cammy

Re: Motorola 68k Dev on an Amiga
« Reply #8 on: October 20, 2010, 10:46:38 PM »
You're better off using the Copper for moving tiles around so the Blitter is free to handle all the BOBs on screen.
A1200 030@28Mhz/2MB+32MB/RTC/KS3.1/IDE-CF+4GB/4-Way Clockport Expander/IndivisionAGA/PCMCIA NIC
A1200 020@14Mhz/2MB+8MB/FPU/RTC/KS3.0/IDE-CF+2GB/S-Video
CD32 020@14Mhz/2MB+8MB/RTC/KS3.1/IDE-CF+4GB
A600 030@30Mhz/2MB+64MB/RTC/IDE-CF+4GB/Subway USB/S-Video/PCMCIA NIC/USB Numeric Keypad+Hub+Mouse+Control Pad
A500 000@7Mhz/512kB+512kB/ROM Switcher/KS3.1+1.3/S-Video

Get AmigaOS
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: Motorola 68k Dev on an Amiga
« Reply #9 on: October 20, 2010, 11:59:16 PM »
Quote from: Franko;585873
I've been using DevPac since the early ninties, it's clean and not cluttered, configurable, compiles very fast and is in my opinion the best M68k assembler ever on the Amiga.:)


Devpac is a great assembler package that set THE standard. There are some other assemblers that have surpassed it in some ways. Many of them are also free where Devpac is not. Examples of FREE Amiga assemblers...

vasm http://sun.hasenbraten.de/vasm/
 + actively supported, retargetable, and free
 + best optimizing 68k Amiga assembler
 + Devpac and PhxAss compatibility as well as many other assemblers
 + very powerful and flexible
 - bigger and slower than assemblers that offer less

PhxAss http://aminet.net/dev/asm/PhxAss.lha
 + easy to use
 + good optimizer
 + fast
 - some bugs and quirks in uncommon 68020 instructions

Asm-One http://aminet.net/dev/asm/ASM-One.lha
 + fast
 + popular
 + all in one editor and debugger is fast and powerful
 - all in one editor and debugger is old and dated
 - a few bugs

Barfly http://aminet.net/dev/asm/BarflyDisk2_00.lha
 + very fast
 + excellent optimizer with control of each optimization
 + debugger, BDebug, in the package is very powerful
 - not the easiest to use
 - not popular
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: Motorola 68k Dev on an Amiga
« Reply #10 on: October 21, 2010, 12:52:21 AM »
Quote from: matthey;585955
Many of them are also free where Devpac is not.
Feh, HiSoft is a web-design company now and nobody sells it anymore; Devpac is abandonware.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline mongo

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 964
    • Show only replies by mongo
Re: Motorola 68k Dev on an Amiga
« Reply #11 on: October 21, 2010, 01:03:46 AM »
Quote from: commodorejohn;585971
Feh, HiSoft is a web-design company now and nobody sells it anymore; Devpac is abandonware.


There is no such thing as abandonware.
 

Offline alfredbonnabelTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 26
    • Show only replies by alfredbonnabel
    • http://www.alfredbonnabel.com
Re: Motorola 68k Dev on an Amiga
« Reply #12 on: October 21, 2010, 01:29:10 AM »
Quote from: matthey;585955
Devpac is a great assembler package that set THE standard. There are some other assemblers that have surpassed it in some ways. Many of them are also free where Devpac is not. Examples of FREE Amiga assemblers...

vasm http://sun.hasenbraten.de/vasm/
 + actively supported, retargetable, and free
 + best optimizing 68k Amiga assembler
 + Devpac and PhxAss compatibility as well as many other assemblers
 + very powerful and flexible
 - bigger and slower than assemblers that offer less

PhxAss http://aminet.net/dev/asm/PhxAss.lha
 + easy to use
 + good optimizer
 + fast
 - some bugs and quirks in uncommon 68020 instructions

Asm-One http://aminet.net/dev/asm/ASM-One.lha
 + fast
 + popular
 + all in one editor and debugger is fast and powerful
 - all in one editor and debugger is old and dated
 - a few bugs

Barfly http://aminet.net/dev/asm/BarflyDisk2_00.lha
 + very fast
 + excellent optimizer with control of each optimization
 + debugger, BDebug, in the package is very powerful
 - not the easiest to use
 - not popular

Woah! Sweet. :insane:
My blog on computers in general and my journey to Amiga at AlfredBonnabel.com.
 

Offline alfredbonnabelTopic starter

  • Newbie
  • *
  • Join Date: Oct 2010
  • Posts: 26
    • Show only replies by alfredbonnabel
    • http://www.alfredbonnabel.com
Re: Motorola 68k Dev on an Amiga
« Reply #13 on: October 21, 2010, 01:32:19 AM »
Quote from: mongo;585974
There is no such thing as abandonware.

That is a good, though touchy point. I've seen both sides of the argument and can understand why either party feels the way they do. Technically someone, somewhere still owns the copyright, patents, intellectual property, etc for the program and should be compensated for it. However, if a company does not have a method to receive that compensation either through a web site, mail order catalog, phone number, or messenger pigeon then it certainly should be an option for a person to acquire it by whatever third party means they wish.

Of course, I am getting a bit off topics. Sorry. :steps off soapbox:
My blog on computers in general and my journey to Amiga at AlfredBonnabel.com.
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: Motorola 68k Dev on an Amiga
« Reply #14 on: October 21, 2010, 01:32:33 AM »
Quote from: mongo;585974
There is no such thing as abandonware.
Well, you tell me where I can buy a new copy of Devpac, and I'll buy it.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup