Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Motorola 68k assembly emulator?

Motorola 68k assembly emulator?
Thread Tools
gabrielf
Forum Regular
Join Date: Sep 2000
Location: Ronneby, Sweden
Status: Offline
Reply With Quote
Nov 18, 2002, 09:47 AM
 
I wonder if there exists a m68k emulator for Mac OS X. I need to do a small program (in assembler) for a course I am doing at the moment but havn't found anything like it.
     
absmiths
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Nov 19, 2002, 01:20 PM
 
Well, there used to be one built into Mac OS 7.1.2 when the first PowerPC's arrived, and I am pretty sure that it is still there. I don't know how you activate it, but I have seen enough stack traces in MacsBug on my PPC 6100/60 to now that it is there. It might only reside in Classic, however.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 24, 2005, 04:08 PM
 
I dug up this thread with hopes that I'll have more luck than the original poster. I'm taking an Assembly Programming course at my university and we're going to be using the 68000 family microprocessors. The professor detailed several Windows solutions for simulating the 68k linker/assembler (easy68k for example), but I'd rather use my Linux, Mac OS X, or hell, even the department's Solaris boxes.

Anyone know of anything like this? Numerous searches on google reveal references/tools for coding assembly ON old Macs and Classic Mac emulators for PC, but nothing I can use.

Thanks.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jan 24, 2005, 05:31 PM
 
Who the hell teaches 68000 assembly nowadays? Most universities teach PPC or another RISC assembly language.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 24, 2005, 09:19 PM
 
Originally posted by Thinine:
Who the hell teaches 68000 assembly nowadays? Most universities teach PPC or another RISC assembly language.
The professor said that 68000 is a good architecture to learn assembly on.

I guess that the class is designed to point out the model that all programming languages really follow, that it all ends up as zeros and ones in the end, whether you're using an interpreted language like Java or HTML, a compiled language like C++, or if you're actually flipping switches on the front of some mainframe. It's kinda like how in the first few programming classes they make you code a linked list, a stack, a queue, etc... then you learn that you've got the Standard Template Library and you'll never have to write your own again.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jan 25, 2005, 01:00 AM
 
I know why they have you learn assembly, but at least it should be some sort of modern version. PPC would be best, since a lot of it would work on processors that are over a decade old.
     
Person Man
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status: Offline
Reply With Quote
Jan 25, 2005, 01:02 AM
 
Originally posted by absmiths:
Well, there used to be one built into Mac OS 7.1.2 when the first PowerPC's arrived, and I am pretty sure that it is still there. I don't know how you activate it, but I have seen enough stack traces in MacsBug on my PPC 6100/60 to now that it is there. It might only reside in Classic, however.
The 680x0 emulator is still present in Classic. What you need is a compiler that will work under Mac OS 9.2.2 from those old days.
     
chabig
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
Jan 25, 2005, 10:05 AM
 
Not sure, but check Basilisk II. It says it runs under X11.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 25, 2005, 11:25 AM
 
Originally posted by Thinine:
I know why they have you learn assembly, but at least it should be some sort of modern version. PPC would be best, since a lot of it would work on processors that are over a decade old.
I'll take your word for it.
Originally posted by Person Man:
The 680x0 emulator is still present in Classic. What you need is a compiler that will work under Mac OS 9.2.2 from those old days.
Some version of CodeWarrior 5 or Apple's MPW, I presume. I'll probably end up just using the lab at school. Maybe I could get Wine running on my Gentoo box, it's beefy enough.
Originally posted by chabig:
Not sure, but check Basilisk II. It says it runs under X11.
Basilisk II is a 68k emulator, I might as well use Classic if I'm going to be emulating anything. I really just need an IDE with a 68k assembler and some way to look at registers and stacks, etc.

I'm gonna look into Basilisk II anyways, just because it looks cool.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
wadesworld
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 25, 2005, 01:20 PM
 
When I took assembly in college, it was taugh on 8086's, even though Pentium II was current at the time.

The instructor is right - 68000 is a good architecture for learning CISC assembly. Presumably, more advanced courses will also teach assembly on a RISC chip.

Wade
     
wadesworld
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 25, 2005, 01:25 PM
 
Did some quick searching - this looks very promising:

http://www.redlinelabs.com/bsvc/

Wade
     
hayesk
Guest
Status:
Reply With Quote
Jan 25, 2005, 01:54 PM
 
Originally posted by Thinine:
I know why they have you learn assembly, but at least it should be some sort of modern version. PPC would be best, since a lot of it would work on processors that are over a decade old.
Why? They're teaching it so you have an understanding on how machine code works. The quality of the CPU matters, but not the popularity or currency of it. It's not so you can run out and get one of those numerously abundant assembly programmer jobs.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 25, 2005, 06:43 PM
 
Originally posted by wadesworld:
Did some quick searching - this looks very promising:

http://www.redlinelabs.com/bsvc/
That looks like it should fit the bill, but I can't get it to compile on SunOS or Panther 10.3.7. I don't really even know where to start debugging the makefile/sourcecode to get it up to date for a modern gcc (it's at least 7 years old).
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Samad
Fresh-Faced Recruit
Join Date: Nov 2001
Location: home
Status: Offline
Reply With Quote
Jan 25, 2005, 07:53 PM
 
How difficult would it be to write one's own 68k assembler and emulator? Doesn't seem terribly complicated if one is used to writing higher language parsers.
     
Partisan01
Dedicated MacNNer
Join Date: Sep 2003
Location: Pittsburgh, Pennsylvania
Status: Offline
Reply With Quote
Jan 26, 2005, 12:07 AM
 
Originally posted by Thinine:
I know why they have you learn assembly, but at least it should be some sort of modern version. PPC would be best, since a lot of it would work on processors that are over a decade old.
When I took assembly in college we learned assembly on the MIPS platform. (SGI chips..) RISC chips are much easier and cleaner than the intel stuff. I've taken at look at some PPC assembly recently and my MIPS experience translates very well.

The point of assembly classes in college isn't to teach a language, but how to think with a different mindset. Assembly gives the programmer a lower level look at how the computer works. I took some classes where we learned ML, Prolog, and others, just to break your mind out of the same paradigm. Being able to look at a problem from many different angles is a huge advantage.

Best of luck on the assembler, I know there was a discussion about CodeWarrior on the mac68k NetBSD mailing list a few months ago, places to obtain it. Keep us posted.
Apple iBook, B&W, Quadra 660, PowerMac 6100
Sun Netra T1, Ultra 1, Javastation
http://natetobik.mine.nu:81
     
The Godfather
Addicted to MacNN
Join Date: Dec 1999
Location: Tampa, Florida
Status: Offline
Reply With Quote
Jan 26, 2005, 06:19 PM
 
Is was taught 68hc11 in my undergrad EE. The school where I am getting my Masters teaches 68hc11 too. The 68k course was available to the CpE majors only

Surely using a Mac in the engineering profession is tricky. If you find that the Mac 68k emulators are of less quality, simply settle for Virtual PC and the standard Wintel solution. And there is no shame in owning a cheap PC besides a cheap Mac.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Mar 11, 2005, 04:03 PM
 
For the record I've been using dosemu with FreeDOS on my Linux box. I am using the assembler/simulator (which runs in DOS) that the author of our textbook wrote, it's located here: http://www-scm.tees.ac.uk/users/a.clements/software.htm
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
v8q
Junior Member
Join Date: Mar 2002
Status: Offline
Reply With Quote
Mar 16, 2005, 01:08 PM
 
Originally posted by [APi]TheMan:
For the record I've been using dosemu with FreeDOS on my Linux box. I am using the assembler/simulator (which runs in DOS) that the author of our textbook wrote, it's located here: http://www-scm.tees.ac.uk/users/a.clements/software.htm
I am using CodeWarrior 4 (old stuff) on OS9 and it works fine. I think you could download Apples MPW Workshop and use that assembler too, and it is free. It should also run just fine under Classic.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:05 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,