Basilisk II for MorphOS
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I just ported Basilisk II to MorphOS. It is very early release with poor user interface but more or less it works.

    I reused old AmigaOS source code and ethernet/scsi/sound interfaces should work but I dont take responsibility if it wipes your HD.

    The binary archive is available here (390K) (sources 780K).

    (Basilisk is 68k Macintosh emulator.)
    1 + 1 = 3 with very large values of 1
  • »12.04.05 - 23:59
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    magnetic
    Posts: 2129 from 2003/3/1
    From: Los Angeles
    Itix

    You are the MAN! :-) THank you. Its exciting.. Have you tried any of the MacOs(s) yet?

    When I have time I'll try os8..

    magnetic
    Pegasos 2 Rev 2B3 w/ Freescale 7447 "G4" @ 1ghz / 1gb Nanya Ram
    Quad Boot: MorphOS 2.7 | Amiga OS4.1 U4 | Ubuntu PPC GNU/Linux | OS X 10.4
  • »13.04.05 - 00:14
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I booted succesfully to MacOS 7.x but I have no programs to try. Colours are reportedly wrong but will check these when I retrieve old Mac setup from my Amiga HD.
    1 + 1 = 3 with very large values of 1
  • »13.04.05 - 00:20
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1926 from 2003/10/19
    From: Port Hueneme, Ca.
    Cool deal! I can install MacOs on MorphOS now! You know if the speed is good you can run Netscape to browse the internet! I know my A3000 ran it faster then a real Mac did in the day.
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »13.04.05 - 02:26
    Profile Visit Website
  • Butterfly
    Butterfly
    Druideck
    Posts: 82 from 2003/5/6
    From: Canada
    Itix, this is very cool. Good work!
  • »13.04.05 - 05:15
    Profile
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    i've just run macos 7.5 from my old shapeshifter filedisk. cpu emulation i fast (speedomeeter gives 160% of the speed of quadra 605 - 040-25mhz). i've have one problem: emulator run nicely on window but it is only black&white color mode, when i choose fullscreen mode - emulator freeze after showing mac face.
  • »13.04.05 - 06:08
    Profile Visit Website
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    i've g3 600mhz peg2
    24 bit mode is working ok - i've tested MacWorms. the problem is only with 8bit mode - wrong colors (palette) but i've run warcraft2 (without problems and without proper colors ;)
  • »13.04.05 - 06:17
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    SoundSquare
    Posts: 1213 from 2004/12/1
    From: Paris, France
    wonderful news, good job !!!!
    will try it asap !
    thanks a lot man, you're the don !
  • »13.04.05 - 08:05
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 732 from 2003/2/24
    From: aGaS & CUAZ Al...
    Very nice! Thank you Itix!

    SheepShaver shares many source files with BasiliskII, do you think that it may be possible to have SheepShaver running? Gwenole version is here. AFAIK The latest version accepts newworld roms so it should be more easier to port. Now it uses SDL so it would be a great program to have running.

    I lack the knowledge to port it :-(

    Have you taken a look of latest sources?

    Running MacOS9 on MorphOS may be very useful! And people wouldn't have to install Linux to run MOL :-)
  • »13.04.05 - 08:43
    Profile Visit Website
  • Caterpillar
    Caterpillar
    mcbarlo
    Posts: 31 from 2003/11/8
    From: Poland
    I guess Basilisk emulate 68k without JIT. AFAIR it have UAE 68k emulation engine. We can say that it is fast, but it can be maybe faster? Classic Amiga version do not emulate any processor. I mean 68k Basilisk on MorphOS will use built-in MOS emulator for MacOS.

    I hope I haven't jabbered. ;)
  • »13.04.05 - 09:38
    Profile Visit Website
  • Cocoon
    Cocoon
    hnl_dk
    Posts: 47 from 2004/3/19
    From: Denmark
    I just found this one the other day... maybe You can make use of it :-)

    Basilisk II/JIT
    Best regards,
    hnl_dk - Henning Nielsen Lund
  • »13.04.05 - 09:49
    Profile Visit Website
  • Moderator
    Golem
    Posts: 766 from 2003/2/28
    From: Denmark
    Quote:

    I just found this one the other day... maybe You can make use of it


    Yeah, all you'd need is an x86 emulator in addition to that ;)
  • »13.04.05 - 11:09
    Profile Visit Website
  • Cocoon
    Cocoon
    hnl_dk
    Posts: 47 from 2004/3/19
    From: Denmark
    Quote:


    Golem wrote:
    I just found this one the other day... maybe You can make use of it

    Yeah, all you'd need is an x86 emulator in addition to that ;)


    Ups, didn't think about that... too long time since I have been using UAE...

    Basilisk II is able to use the native CPU, how about making use the JIT emulator of MorphOS... I think that would be cool :-D

    [ Edited by hnl_dk on 2005/4/13 13:31 ]
    Best regards,
    hnl_dk - Henning Nielsen Lund
  • »13.04.05 - 11:30
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    @mcbarlo & hnl_dk

    Using the virtual 68k CPU from MorphOS to emulate 68k in Basilisk doesnt work. Basilisk patches Mac ROM by planting illegal instructions and on 68k Amiga these are catched by an exception handler. Those probably wont work on MorphOS at all.

    Also some 68k FPU features are not emulated in MorphOS because they are not used on Amiga. However, I have no idea if Mac needs these.

    But real killer is that Basilisk needs free access to zero page (0x0000 - 0x1fff) if real 68k is used. In MorphOS this is not possible at all.
    1 + 1 = 3 with very large values of 1
  • »13.04.05 - 12:30
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Frostwork
    Posts: 302 from 2003/4/18
    Great work!
    thank you very much!!!
  • »13.04.05 - 12:44
    Profile
  • MorphOS Developer
    zukow
    Posts: 645 from 2005/2/9
    From: Poland
    itix wrote:
    "Also some 68k FPU features are not emulated in MorphOS because they are not used on Amiga. However, I have no idea if Mac needs these."

    on my machine speedomeeter doesn't detect fpu
  • »13.04.05 - 12:56
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Acill
    Posts: 1926 from 2003/10/19
    From: Port Hueneme, Ca.
    If anyone can get the 7.5.3 files off the apple site and make a normal install disk out of them, or if you have a normal install disk it can be shared. Apple has given it away free for a long time now. I cant seem to find my OS 8 install disks and want to install this on my Peg!!!!
    Powermac Dual 2.0 GHZ G5 PCI-X (Registration #1894)
    Powerbook 1.67GHZ
    Powermac Dual 2.0 GHZ G5 PCIE (Registration #6130)
    A4000T CSPPC, Mediator
    Need Repairs, upgrades or a recap in the USA? Visit my website at http://www.acill.com
  • »13.04.05 - 12:59
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    @Crumb

    SheepShaver should be relatively easy to port. I've SheepShaver sources here and it is very similar to Basilisk. But due to PPC CPU emulation it wont be too fast...
    1 + 1 = 3 with very large values of 1
  • »13.04.05 - 13:26
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 732 from 2003/2/24
    From: aGaS & CUAZ Al...
    @Itix:

    The feature that attracts me of SheepShaver is that it uses de PPC cpu directly on PPC systems :-)

    So there would be no need to emulate the PPC.

    Previous versions required pre-newworld roms, but the latest one should work with newworld roms.

    AFAIK newworld roms can be allocated in any part of the memory, not like the old ones.

    I don't know if the first 8KB of memory are still used by MacOS or if it can be configured to use another memory location.

    Some memory management functions may come handly... I hope future MOS versions include some memory management functions to remap areas of memory, catch illegal accesses etc... Every modern OS in the world (Windows, Linux, AmigaOS4, AmigaOS3+MMU.library) has memory management functions, so why MorphOS can't?

    I think that LouiSe was doing a PearPC port but I don't think he finished that port...

    As you are in close communications with the MOS team maybe you could convince them to keep the first 8KB free and grant access to the ABOX to these first kilobytes. It doesn't compromise stability and it doesn't involve heavy modifications so I hope they will allow this. Come on, even CyberstormPPC included an option to keep free the first kilobytes of memory...
  • »13.04.05 - 13:45
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Zylesea
    Posts: 2057 from 2003/6/4
    @ Crumb

    I guess missing MMU access will not allow SheepShaver use the PPC directly, but I do not know. Same killer as it is for MOL on MOS.

    Memory protection is hard to achieve without breaking the backward compatibility (apps do not ask for a memory access, they just do). That's one of the points the whole design was as chosen as it is. The unsecure ABox and the option for a secure future box (mumbling something about Q here - well, nobody knows what's going on with it, but theoretically...).

    I don't know what the aproach by Hyperion, to give every task an own virtual (emulated) address space, is worth actually...

    [ Edited by Zylesea on 2005/4/13 16:23 ]
    --
    http://via.bckrs.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »13.04.05 - 14:22
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 732 from 2003/2/24
    From: aGaS & CUAZ Al...
    Code:
    Memory protection is hard to achieve without breaking the backward compatibility (apps do not ask for a memory access, they just do).


    I'm not talking about memory protection. I'm talking about providing Memory funcitons to the ABox that allow the coder to mark zones as illegal to raise exceptions (usefull for nallehpuh) or simply to remap memory areas (like remaping the first 8KBs in pther part of the memory)

    You could do that with Thor's MMU library on Amiga 68k!

    It doesn't compromise Q-Box design because you use a function and you don't use the MMU directly. You'll only be able to use the memory areas allowed by the Q-Box.

    [ Edited by Crumb on 2005/4/13 21:13 ]
  • »13.04.05 - 19:11
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Zylesea
    Posts: 2057 from 2003/6/4
    Quote:



    I'm not talking about memory protection. I'm talking about providing Memory funcitons to the ABox that allow the coder to mark zones as illegal to raise exceptions (usefull for nallehpuh) or simply to remap memory areas (like remaping the first 8KBs in pther part of the memory)

    You could do that with Thor's MMU library on Amiga 68k!




    Okay, bringing MP into the game I was actually one step too far, but IIRC it was said (in some MOL on MOS discussion) that the ABox won't see any MMU functions.
    --
    http://via.bckrs.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »13.04.05 - 20:22
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Crumb
    Posts: 732 from 2003/2/24
    From: aGaS & CUAZ Al...
    Yeah, Ralph Schmidt told me that he didn't want to allow MMU functions, but maybe I didn't explain correctly that I don't want direct access to the MMU but only a set of memory management functions like the ones I have told (memory context for each task/all the tasks, marking parts of memory as read-only/ilegal, remaping parts o memory).

    Maybe MOS team will reconsider that decission. You will use functions so they can validate the memory areas that you mark...

    The should add an option like the OS4 team to mark some memory areas as "private" so new programs can define areas that can't be overwritten by other tasks (of course, we wouldn't have full memory protection because tasks would continue using the same message system and old tasks wouldn't have their memory areas marked as private)
  • »14.04.05 - 08:44
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Wishmaster
    Posts: 342 from 2003/6/29
    No.
    Pegasos PPC
  • »15.04.05 - 12:39
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Implementing private address spaces into ABox would be just silly. It only makes memory management more complex without gain.

    Maybe low mem (0x0000 - 0x1fff) could be made writable/readable when Basilisk is running, but we will see... with current 1.4 kernels it is not possible.
    1 + 1 = 3 with very large values of 1
  • »15.04.05 - 15:06
    Profile