MoCog - A Motorola 6809 emulator for the Propeller
Introducing MoCog an emulation of the Motorola 6809 microprocessor for the Propeller.
In the few slack moments I have nowadays I have been converting the ZiCog Z80 emulator into a 6809 emulator. As usual with me this is a very unfinished early release. There is a lot of code in place but very little is tested. So far it just about single steps its way through a short loop of
NOP
ADDA $01
JMP $0000
No flag setting is in place.
This should compile with BST or homespun for the Prop Demo Board if the following defines are set: "PropDemoBoard" and "SingleStep".
Just compile, download and watch the output in the terminal window of BST or ProTerminal or whatever. Hit any key to take single steps through the loop.
I have left Cluso's code for the TriBladeProp platform (external RAM) in place but It's best he reviews it I guess.
What's this for? No idea but I want to see CUBIX running on the Prop possibly followed by FLEX, SK*DOS and/or One MAn Unix (OMU).
Edit: 8 Jul 2009 Latest version is 0.5. All op-codes now in place. Runs a GCC compiled test program (See the ram_6809 area in mocog_demo.spin). Not many ops do any flag setting yet.
Edit: 14 Jul 2009. Latest version is 0.6. Changed to run a 6809 test program. All addressing modes are working. Most other ops not yet. But at least the tests run !!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Post Edited (heater) : 7/14/2009 5:04:16 PM GMT
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
Leon do you have a copy of Flex that will work with this or any 6800/09 ???
I have been using flex with my SWTP for years and just had an accident with my 5 /14 floppies I lost every single program 20 years worth of Motorola .Flex and OS9 lost everything I want to cry
I only had backed it up to more floppies since my computers could only read the floppies I am still in shock I had just dug everything back out since not using for years but now that I have been playing with the props and this forum it
got me motivated to setup all the old stuff again I even had an old STD bus 8080 system lost those disks as well
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
"a 68k emulator is needed now" Oh yes. But I'm not your man for that job. I have to draw a line somewhere and get on with some other interesting projects:)
Still if Cluso or someone were to come up with a 16 bit wide external RAM bus I might be tempted....
Yes I know there was a 68008 but things are slow enough already. Perhaps it should wait for the Prop II.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
Joel Ewy at 8littlebits.wordpress.com/ has a short but interesting blog about implementing a CoCo3 in a FPGA as well as some stuff about bringing an old SWTPC 6809 computer back to life.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Tony
http://zuzebox.wordpress.com/
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
Where everyone+dog take holidays in this beloved country
Posts
2,005
heater: As you say it is slow enough :-(. That is why I put a real 68k together with a couple of props. Let's see if my new 020 board works as expected (programmable logic saves the day!).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit the home of pPropQL, pPropQL020 and OMU for the pPropQL/020 at omnibus.uni-freiburg.de/~rp92
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
Hey guys thanks everyone , funny story I have a huge box with all my floppies from 3-1/4, 5, 8 . and of course I have to put it away (so its not messy wife stuff)) even though it my office .
Anyway I have a huge and I mean huge 48 LB magnetic sweeper for picking up steel at a construction site , nails scrap metal stuff like that this thing can pick up car ,,well almost but you get the idea
I scored it at a swap meet a few weeks ago, You can never have a strong enough magnet and since its been my dream to build a time machine for 50 bucks I thought I made the best deal in world.
Well you can see where this is going , its on wheels so you can push it like a vacuum cleaner .. Well guess where wifey decided to park it !!! yup right next to my huge box of 30 years of floppy disks collection
from windows 2.0 Beta, Xerox experimental windows that ran on an RCA 1802 , CPM86 , MS-Dos , Flex, OS9, Planet 9, OSX, Wave, HP UNIX, SCO you name it if it was made I had a copy on floppy I even had PDP-11 and IBM 360 anyone remember that?
And not to show my age but if anyone remembers when only real men had computers and they had switches and LED's and tape recorders for storage and 256 BYTES of RAM! well there was this ancient at the time cutting edge
BBS(remember those),lol called the "Pirates Den" he was arrested and shut down but had a whole BBS dedicated to boot leg software 300 baud modem connection high tech stuff at the time well I had the entire collection of his BBS
The funny thing is most of these disks were stored in there own cases made of wood and plastic but his box is 38X42X28 with all the separate storage containers floppies inside ,,Everything was erased and I mean everything
it sat like that on top of the magnet for weeks I guess but you would think there would be some bits left but they are all Blank there is nothing to recover its like everyone was individually erased. I tried to read sectors one at a time
but you can not believe how blank they are. even the furthest from the magnet disk are completely erased I don't think I could have done a better job on purpose. even crazier I had some digital storage tapes ,backups of some of the stuff in with the floppies
, they are blank as well I wonder if the closet setup up some kind of magnetic amplification?? Who knows its just day I lost all the stuff if anyone is in need of blank floppies let me know I don't have any use for them now
Oh guys I have all the Flex and OS9 manuals as well as the actual assembly code in print for Flex and the boot roms I even have a printed copy of code for OS9 for the radio shack color computer if anyone wants a copy I would be happy to share it with you
I was thinking maybe there is some way I can scan it into the computer and recompile it and make a boot disk ????? Anyway just ask if you want anything
Post Edited (mikediv) : 5/29/2009 4:48:13 PM GMT
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
This is one very good reason I don't mess with large magnets. Geomags is as large as I go, and I
keep them away from computers.
There's a story on the web about someone's magnetic billfold clasp destroying hard drive after hard
drive in a Macintosh laptop. No idea how factual it is.
I cut my teeth on an SWTP two-terminal system; that thing was so great! Basic09 and an HP pen
plotter; big old beautiful terminals; we had a blast with that system. I was totally OS9, though; no
Flex for me.
It sounds like you have a lot of very valuable artifacts, in any case.
I'm sure you can find the bits you need online, or at least a Flex club member online who can provide
you with boot disks and the like. And frankly, getting in touch with others with your particular hobby,
can be very rewarding.
I still have a pile (literally) of Color Computers of various makes in my computer room. I just cannot bring
myself to throw them away. I think I have at least six working machines.
(Edited to remove wording which may be misconstrued or offensive to some.)
Post Edited (rokicki) : 5/29/2009 8:59:52 PM GMT
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
Still nowhere near complete but pretty much all arithmetic/logic ops have code in place and do what they should. No flags settings in place yet. Immediate, Direct and Extended addressing modes are working.
Speed is up to 458KIPS for single byte instructions.
Now the real reason for this post. Can someone point me at a nice 8-bit by 8-bit unsigned multiply with 16-bit result for the MUL instruction?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Last edited by ForumTools; 09-30-2010 at 03:41 PM.
Reason: Forum Migration
Bookmarks