Search found 205 matches

by rickyzhang
Tue Jul 07, 2020 10:12 pm
Forum: Basilisk II
Topic: 68000 CPU simulator
Replies: 3
Views: 1696

Re: 68000 CPU simulator

I found Easy68k as an assembler and a simulator. But it is painful to type the assembly from ROM file and replicate the data in the code.

What version of MacBugs I should use for System 6?
by rickyzhang
Tue Jul 07, 2020 10:09 pm
Forum: Basilisk II
Topic: Use homebrew to build BII
Replies: 6
Views: 2546

Re: Use homebrew to build BII

I tried. But I can't find gtk2-devel from homebrew. I incorporated Mac OS X in the Travis CI. But I haven't added GUI UI in the CI due to the missing dependency. I only added SDL2 from homebrew. If your Mac OS X uses homebrew, please let me know how you add X11 and gtk libraries from homebrew. See b...
by rickyzhang
Tue Jul 07, 2020 10:05 pm
Forum: Basilisk II
Topic: Patch SDL2 in upstream to support System6
Replies: 18
Views: 4437

Re: Patch SDL2 in upstream to support System6

That would be a hidden feature in mini VMac that I don't know.

I hit ctrl-h + m. I got 2x zoom on the guest OS. Can you explain what you do in mini VMAC?
by rickyzhang
Tue Jul 07, 2020 11:49 am
Forum: Basilisk II
Topic: Patch SDL2 in upstream to support System6
Replies: 18
Views: 4437

Re: Patch SDL2 in upstream to support System6

512x342 is the guest OS resolution. Scaling up means for how the guest screen presents in the host OS. Mini vmac is also 512x342 in guest os. But it can scale up 2x in the host. My patch can scale up at any fractional factor by SDL2. I am working on patching Macintosh SE 24 Bit ROM, where the memory...
by rickyzhang
Mon Jul 06, 2020 9:15 pm
Forum: Basilisk II
Topic: 68000 CPU simulator
Replies: 3
Views: 1696

68000 CPU simulator

I'm enhancing Basilisk II to run System 6. One task I struggled with is to read Macintosh SE 24 bit ROM to figure out how to override the compressed dispatch table directly before it get expanded by the ROM. I found the logic that expands the compressed dispatch table. But my progress is SLOW. I won...
by rickyzhang
Sat Jul 04, 2020 6:51 pm
Forum: Basilisk II
Topic: Patch SDL2 in upstream to support System6
Replies: 18
Views: 4437

Patch SDL2 in upstream to support System6

24 bit ROM in System 6 only supports small tiny windows 512x342.

I patched SDL2 to support System 6. Now you can scale up the guest OS by SDL2 acceleration. A PR was sent to upstream.

Please check out my screen case here: https://youtu.be/br5Hjt9F6X4
by rickyzhang
Thu Jul 02, 2020 10:41 pm
Forum: Basilisk II
Topic: SDL2 scale up and scale down enhancement
Replies: 10
Views: 4840

SDL2 scale up and scale down enhancement

Thanks to SDL2 features from David. I enhanced the scale up features in window mode. The user can change the scale factor at will by resizing the window. When user restore the window from minimize or maximize, it restores the scale ratio to 1. I can tell the SDL2 employs the hardware acceleration in...
by rickyzhang
Tue Jun 30, 2020 4:15 pm
Forum: Basilisk II
Topic: My fork of Basilisk II
Replies: 21
Views: 16173

Re: My fork of Basilisk II

https://i.ibb.co/58LG59v/bii-performance.png I benchmark two addressing: direct and memory banks. As I expected, the memory banks is a little bit slower than direct. But in general, there are no noticeable issues at all to run any Apps in BII under direct or memory banks. But what makes the huge pe...
by rickyzhang
Tue Jun 30, 2020 10:25 am
Forum: Basilisk II
Topic: My fork of Basilisk II
Replies: 21
Views: 16173

Re: My fork of Basilisk II

Okay, it seems like the random hang on startup is caused by the SDL2 code. See https://github.com/cebix/macemu/issues/203 I proposed several solutions in the issue. I will go for the solution that use memory banks addressing. But I dont know the performance hit, compared to direct addressing. I dow...
by rickyzhang
Tue Jun 30, 2020 10:20 am
Forum: Basilisk II
Topic: This disk (CD-ROM) is unreadable by this Macintosh
Replies: 56
Views: 13784

Re: This disk (CD-ROM) is unreadable by this Macintosh

Ronald P. Regensburg wrote:I described a way to create a disk image from a HFS CD-ROM in Catalina in a separate new topic: https://www.emaculation.com/forum/viewt ... =1&t=10709
Great Jobs, Ron! I forgot there is dd command in macOS.
by rickyzhang
Mon Jun 29, 2020 1:12 pm
Forum: Basilisk II
Topic: My fork of Basilisk II
Replies: 21
Views: 16173

Re: My fork of Basilisk II

If you compile with addressing mode in memory banks in configure, it should workaround the hangs.

Code: Select all

--enable-addressing=banks
I'm working on the permanent fix now.
by rickyzhang
Mon Jun 29, 2020 4:04 am
Forum: Basilisk II
Topic: This disk (CD-ROM) is unreadable by this Macintosh
Replies: 56
Views: 13784

Re: This disk (CD-ROM) is unreadable by this Macintosh

I think you are good. I used to RIP CD/DVD by Toast Titanium. However, after the recent 32 bit binary ban in Mac OS X, I can not use Toast Titanium any more. If you have Linux, you could try dd command to rip the CD into ISO. A command below should work: dd if=/dev/[your cdrom device in Linux] of=my...
by rickyzhang
Sun Jun 28, 2020 4:41 am
Forum: Basilisk II
Topic: This disk (CD-ROM) is unreadable by this Macintosh
Replies: 56
Views: 13784

Re: This disk (CD-ROM) is unreadable by this Macintosh

First of all, please make sure the binary in the CD-ROM is for Power PC architecture or M68K architecture. They are two different architectures. Apple Macintosh transit from M68K to Power PC in 90s. Some binary may be a fat binary which supports both. Some don't. If it is for M68K, please proceeds t...
by rickyzhang
Sun Jun 28, 2020 2:50 am
Forum: Basilisk II
Topic: This disk (CD-ROM) is unreadable by this Macintosh
Replies: 56
Views: 13784

Re: This disk (CD-ROM) is unreadable by this Macintosh

You could rip the CD-ROM to ISO. Add ISO files as disks.

BII can't emulate Power PC. It emulate 68030 Motorola processor a.k.a M68K.
by rickyzhang
Sat Jun 27, 2020 10:23 pm
Forum: Basilisk II
Topic: PoC: run System 6 in BII
Replies: 1
Views: 1348

Re: PoC: run System 6 in BII

I figured it out how to use SDL1 as back end for System6. SDL2 shows a white screen. But SDL 1 is fine in Linux. Need some further debug: https://i.ibb.co/X8fLbPB/bii-sdl1-system6.png The build configure is the following: CFLAGS=-O0;CPPFLAGS=-O0 ./configure --enable-sdl-video --enable-sdl-audio --wi...
by rickyzhang
Sat Jun 27, 2020 6:16 pm
Forum: Basilisk II
Topic: PoC: run System 6 in BII
Replies: 1
Views: 1348

PoC: run System 6 in BII

Several years ago, I was working on a challenge to emulate 24bit ROM for System 6 in BII. I remembered I did get it done even in SDL with an emulated disk. But I lost all my notes how to replicate it. So this time I updated the wiki for record: https://github.com/cebix/macemu/wiki/Basilisk-II-Compil...
by rickyzhang
Sat Jun 27, 2020 4:36 am
Forum: Basilisk II
Topic: Use homebrew to build BII
Replies: 6
Views: 2546

Use homebrew to build BII

I used macport to get its dependencies to build BII in Mac OS X. But Travis CI support homebrew rather than macport. I'm not familiar with homebrew. If anyone knows the BII dependencies in hombrew, please let me know. I'd like to add Mac OS X to Travis CI, as well. This will help any broken build as...
by rickyzhang
Thu Jun 25, 2020 11:27 pm
Forum: Basilisk II
Topic: Inverted Colors in 256 color mode
Replies: 2
Views: 1626

Re: Inverted Colors in 256 color mode

i sent a PR with back port SDL2 features to upstream repo.

If you uses Linux or Mac, please give a try.

I tested it work for 256 color game like lemmings.

See https://github.com/cebix/macemu/pull/202
by rickyzhang
Fri Nov 29, 2019 6:37 am
Forum: Basilisk II
Topic: Compiling Basilisk II on x86-64 with Fedora 31
Replies: 2
Views: 3021

Re: Compiling Basilisk II on x86-64 with Fedora 31

Check out the Travis CI yaml file I wrote in upstream. You can get help from build instructions.
by rickyzhang
Fri Feb 08, 2019 9:32 pm
Forum: Basilisk II
Topic: Basilisk II sound problems on Linux Mint
Replies: 1
Views: 2745

Re: Basilisk II sound problems on Linux Mint

I found that using SDL is easier to fix the sound problem. Have you tried build with SDL?
by rickyzhang
Tue Jan 08, 2019 7:22 pm
Forum: Basilisk II
Topic: Using a Classic ROM
Replies: 14
Views: 7199

Re: Using a Classic ROM

I don't see 64bit is the major issue for SDL 1.2. My fedora box does have 64 bit SDL 1.2 dynamic library: rpm -ql SDL-1.2.15-30.fc28.x86_64 /usr/lib/.build-id /usr/lib/.build-id/e5 /usr/lib/.build-id/e5/3ef3039c3c7e2f6003a11c50f497077c0f386c /usr/lib64/libSDL-1.2.so.0 /usr/lib64/libSDL-1.2.so.0.11.4...
by rickyzhang
Tue Jan 08, 2019 3:35 pm
Forum: Basilisk II
Topic: Using a Classic ROM
Replies: 14
Views: 7199

Re: Using a Classic ROM

That's a good idea to make memory addressing configurable at runtime. But it will require some boring structural change. I will pass... I haven't got involved in SDL2. I remembered someone has started something. But I have never seen a PR. TBH, I want that feature too for screen integer/fractional z...
by rickyzhang
Mon Jan 07, 2019 8:14 pm
Forum: Basilisk II
Topic: Using a Classic ROM
Replies: 14
Views: 7199

Re: Using a Classic ROM

Here is my proof: http://i67.tinypic.com/auhzrk.png To use System 6, you need to specifically build for membank address mode. I shared my build script here: make clean NO_CONFIGURE=1 ./autogen.sh CFLAGS=-O0;CPPFLAGS=-O0 ./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-c...
by rickyzhang
Mon Jan 07, 2019 7:42 pm
Forum: Basilisk II
Topic: Using a Classic ROM
Replies: 14
Views: 7199

Re: Using a Classic ROM

You can run 24 bit ROM in System 6 under BII. That's my PR announcement about. I tested it and confirmed that MacSE ROM can run System 6. md5sum MacSE.ROM 9fb38bdcc0d53d9d380897ee53dc1322 MacSE.ROM The ROM hack here(https://github.com/cebix/macemu/commit/ca11c2588239721d9dee7a7d1186a9aa3542feac) emu...
by rickyzhang
Thu Oct 04, 2018 6:44 pm
Forum: Basilisk II
Topic: Unimplemented trap
Replies: 3
Views: 4326

Re: Unimplemented trap

I wrote a doc on 68K A-trap https://github.com/cebix/macemu/wiki/ROM-Analysis-in-Basilisk-II-Emulation#mac-rom-in-real-macintosh-hardware . In a nutshell, it just invent 68K instruction in software manner. But I'm not sure what your system extension tries to do. For break point, I sent a PR (https:/...