BasiliskII for windows revived!

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

User avatar
wiebeest
Tinkerer
Posts: 69
Joined: Sun Aug 22, 2004 11:54 am
Location: Holland

Post by wiebeest »

What are the advantages compared to the older Basalisk for Windows?

Anyways,
I finally got it to work.
But...it is only in 2 colors (B&W).

My config:
"basiliskII --disk osdisk.dsk --udptunnel true --udpport 6066 --bootdrive 0 --bootdriver 0 --rom MAC.ROM --ramsize 134217728 --frameskip 0 --modelid 20 --cpu 4 --fpu true --jit true --jitfpu true --jitdebug false --jitcachesize 8192 --jitlazyflush true --keyboardtype 5 --keycodes false --mousewheelmode 1 --mousewheellines 3 --ignoresegv false"

The executable window says the following:
"F:\BII test>basiliskII --disk osdisk.dsk --udptunnel true --udpport 6066 --bootd
rive 0 --bootdriver 0 --rom MAC.ROM --ramsize 134217728 --frameskip 0 --modelid
20 --cpu 4 --fpu true --jit true --jitfpu true --jitdebug false --jitcachesize 8
192 --jitlazyflush true --keyboardtype 5 --keycodes false --mousewheelmode 1 --m
ousewheellines 3 --ignoresegv false
Basilisk II V1.0 by Christian Bauer et al.
WARNING: Unknown preferences keyword 'basiliskII'
WARNING: Unknown preferences keyword ''
Reading ROM file...
WARNING: Cannot open /dev/fd1 (No such file or directory)
Using SDL/dsound audio output
VOSF acceleration is not profitable on this platform, disabling it
<JIT compiler> : enable runtime disassemblers : no
<JIT compiler> : compile FPU instructions : yes
<JIT compiler> : requested translation cache size : 8192 KB
Max CPUID level=1 Processor is AuthenticAMD [K6]
<JIT compiler> : target processor has CMOV instructions : no
<JIT compiler> : target processor can suffer from partial register stalls : no
<JIT compiler> : alignment for loops, jumps are 32, 32
<JIT compiler> : lazy translation cache invalidation : on
<JIT compiler> : register aliasing : on
<JIT compiler> : FP register aliasing : on
<JIT compiler> : lazy constant offsetting : on
<JIT compiler> : block inlining : on
<JIT compiler> : separate blockinfo allocation : on
<JIT compiler> : building compiler function tables
<JIT compiler> : supposedly 42382 compileable opcodes!
<JIT compiler> : actual translation cache size : 8192 KB at 0x0B420000
<JIT compiler> : gather statistics on untranslated insns count
<JIT compiler> : gather statistics on translation time"


Anyone know what I should change to get me my colors back
as they were under the older x86 version?


Thank you in advance,

Wiebeest
User avatar
Cat_7
Expert User
Posts: 6172
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Post by Cat_7 »

Hello Wiebeest,

Have you tried changing the colors and resolution from within Basilisk?
That should work.

Best wishes,
Cat_7
User avatar
wiebeest
Tinkerer
Posts: 69
Joined: Sun Aug 22, 2004 11:54 am
Location: Holland

Post by wiebeest »

Cat_7 wrote:Have you tried changing the colors and resolution from within Basilisk?
That should work.
Yes, it was the monitor and sound settings. Great, that worked.
There's no fullscreen (ALT+ENTER) like in the old Windows version?
It seems somewhat slower than in the old version.
Does anyone know what the warnings below (bold mean?

F:\BII test>basiliskII --disk osdisk.dsk --udptunnel true --udpport 6066 --bootdrive 0 --bootdriver 0 --rom MAC.ROM --ramsize 134217728 --frameskip 0 --modelid20 --cpu 4 --fpu true --jit true --jitfpu true --jitdebug false --jitcachesize 8192 --jitlazyflush true --keyboardtype 5 --keycodes false --mousewheelmode 1 --mousewheellines 3 --ignoresegv false
Basilisk II V1.0 by Christian Bauer et al.
WARNING: Unknown preferences keyword 'basiliskII'
WARNING: Unknown preferences keyword ''
Reading ROM file...
WARNING: Cannot open /dev/fd1 (No such file or directory)
Using SDL/dsound audio output
VOSF acceleration is not profitable on this platform, disabling it
<JIT compiler> : enable runtime disassemblers : no
<JIT compiler> : compile FPU instructions : yes
<JIT compiler> : requested translation cache size : 8192 KB
Max CPUID level=1 Processor is AuthenticAMD [K6]
<JIT compiler> : target processor has CMOV instructions : no
<JIT compiler> : target processor can suffer from partial register stalls : no
<JIT compiler> : alignment for loops, jumps are 32, 32
<JIT compiler> : lazy translation cache invalidation : on
<JIT compiler> : register aliasing : on
<JIT compiler> : FP register aliasing : on
<JIT compiler> : lazy constant offsetting : on
<JIT compiler> : block inlining : on
<JIT compiler> : separate blockinfo allocation : on
<JIT compiler> : building compiler function tables
<JIT compiler> : supposedly 42382 compileable opcodes!
<JIT compiler> : actual translation cache size : 8192 KB at 0x0B420000
<JIT compiler> : gather statistics on untranslated insns count
<JIT compiler> : gather statistics on translation time
WARNING: Unknown VideoDriverStatus(24)
WARNING: Unknown VideoDriverStatus(20)
WARNING: Unknown VideoDriverStatus(24)
VOSF acceleration is not profitable on this platform, disabling it
WARNING: Unknown VideoDriverStatus(20)
WARNING: Unknown VideoDriverStatus(24)
User avatar
Cat_7
Expert User
Posts: 6172
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Post by Cat_7 »

No, there is no full screen yet. And it seems a bit slower compared to the old version, but I hope things will change in the future.

Unknown keywords:

WARNING: Unknown preferences keyword 'basiliskII'
-In your config file you try to start BasiliskII. It seems your preferences file is devired from a cmd or bat file to start BasiliskII. I think you can safely remove this entry

WARNING: Unknown preferences keyword ''
-It seems BasiliskII is reading some space or other character as a keyword. Maybe there is a return in the file that is not suppose to be there.

Reading ROM file...
WARNING: Cannot open /dev/fd1 (No such file or directory)
-This is a warning from the linux version, stating it can't open your floppy drive, which is no surprise. But the same error shows in the linux version if there is no media in the drive

VOSF acceleration is not profitable on this platform, disabling
-It seems some grafic acceleration setting can't be used on your system. I have this warning too.

Best wishes,

Cat_7
User avatar
wiebeest
Tinkerer
Posts: 69
Joined: Sun Aug 22, 2004 11:54 am
Location: Holland

Post by wiebeest »

Cat_7 wrote:No, there is no full screen yet. And it seems a bit slower compared to the old version, but I hope things will change in the future.
Yeah, let's hope so.
Cat_7 wrote:WARNING: Unknown preferences keyword 'basiliskII'
-In your config file you try to start BasiliskII. It seems your preferences file is devired from a cmd or bat file to start BasiliskII. I think you can safely remove this entry
I copied a config from this board and revamped it to my situation (rom name, diskname) into a batch file, since my own version was a no-go.
That's what I think it derrived from.
Cat_7 wrote:WARNING: Unknown preferences keyword ''
-It seems BasiliskII is reading some space or other character as a keyword. Maybe there is a return in the file that is not suppose to be there.
Probably same a above. I shall look into it.
Cat_7 wrote:Reading ROM file...
WARNING: Cannot open /dev/fd1 (No such file or directory)
-This is a warning from the linux version, stating it can't open your floppy drive, which is no surprise. But the same error shows in the linux version if there is no media in the drive
Okay. so this is a common linux-legacy problem?
Cat_7 wrote:VOSF acceleration is not profitable on this platform, disabling
-It seems some grafic acceleration setting can't be used on your system. I have this warning too.
So it's not because of my ancient voodoo3? More modern GPU's give the same trouble. A shame, because for speed improvement I believe all forms of HW-acceleration are the key. Same as with PearPc. One day...

Thanks for the fast thorough response. Appriciate it.

Sincere greetings,

wiebeest
User avatar
Cat_7
Expert User
Posts: 6172
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Post by Cat_7 »

Hello,

It seems Gwenole has added sources to make it possible to build your own Basilisk II (and SheepShaver?) for Windows, using Cygwin and SDL.

Anyone tried it yet?

Cat_7
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

Yeah, I did a few hours ago.

I get stuck at

Code: Select all

In file included from ../Windows/clip_windows.cpp:27:
../include/macos_util.h:265: error: `loff_t' was not declared in this scope
../include/macos_util.h:265: error: parse error before `,' token
make: *** [obj/clip_windows.o] Error 1
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

BTW, Gwenole says that a new SheepShaver for Windows build will be made available in the next few days.

http://forums.delphiforums.com/MacEmula ... msg=5929.1

I wasn't able to compile it myself yesterday using Cygwin or MinGW (though I came close).

I got a SheepShaver binary for Windows using GTK instead of SDL flags yesterday. But it kept asking for various Cygwin dlls before running and I put the binary on the side in order to try compiling using SDL instead.
ataxy
Master Emulator
Posts: 374
Joined: Sun Jan 25, 2004 3:49 pm
Location: Canada
Contact:

Post by ataxy »

goody ,goody new window build... :) :)
dframeli
Space Cadet
Posts: 2
Joined: Fri Mar 18, 2005 10:53 pm

Post by dframeli »

I finally got the newly recompiled BasiliskII to start :)

It seems very slow to me. Slower than the "old" BasiliskII compile.

I'm using a batch file; Here's my config.

BasiliskII.exe --disk MacOS81-1.hfv --disk MacOS81-2.hfv --floppy A:\ --cdrom G:\ --extfs --screen dx/1600/1200/32 --seriala COM3 --serialb COM2 --rom Quadra.ROM --bootdrive 0 --bootdriver 0 --ramsize 268435456 --frameskip 6 --modelid 14 --cpu 68040 --fpu true --jit false --jitfpu true --jitdebug false --jitcachesize 65536 --jitlazyflush true --keyboardtype 5 --keycodes false --mousewheelmode 1 --mousewheellines 3 --ignoresegv false --udptunnel true --udpport 6066

Anyone see any way to make the emulation smoother? Faster?

Thanks,
Dale
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

Here's the prefs file I'm using with the latest CVS build of Basilisk II for Windows. Note that the interface is slow (especially the mouse). But quick benchtests show that it is very fast.

Code: Select all

disk OS81.HFV
cdrom E:\
extfs 
scsi0 "PLEXTOR" "CD-R   PX-W4012A"
scsi1 <Free SCSI slot 1>
scsi2 <Free SCSI slot 2>
scsi3 <Free SCSI slot 3>
scsi4 <Free SCSI slot 4>
scsi5 <Free SCSI slot 5>
scsi6 <Free SCSI slot 6>
screen win/800/600/8
seriala FILE
serialb FILE
rom D:\Apps\Emu\macemu\F1A6F343.ROM
bootdrive 0
bootdriver 0
ramsize 67108864
frameskip 6
modelid 14
cpu 68040
fpu true
nocdrom true
nosound false
nogui false
noclipconvert false
nofloppyboot true
noscsi true
ntdx5hack false
rightmouse 1
keyboardfile BasiliskII_keyboard
pollmedia false
priority_ether_run 0
priority_ether_idle 0
priority_serial_in_run 0
priority_serial_in_idle 0
priority_serial_out_run 0
priority_serial_out_idle 0
priority_cpu_run 0
priority_cpu_idle -1
priority_60hz_run 1
priority_60hz_idle 1
priority_1hz_run 1
priority_1hz_idle 1
priority_pram_run 0
priority_pram_idle -1
priority_gui_run 1
priority_gui_idle 0
priority_gdi_run 0
priority_gdi_idle -1
priority_dx_run 0
priority_dx_idle -1
priority_fb_run 0
priority_fb_idle -1
priority_sound_run 0
priority_sound_idle 0
noaudio true
debugscsi 0
debugfilesys 0
debugserial 0
frameskip 0
showfps false
stickymenu true
etherpermanentaddress true
ethermulticastmode 0
disable98optimizations false
realmodecd false
soundbuffers 3
soundbuffersize8000 1024
soundbuffersize11025 2048
soundbuffersize22050 2048
soundbuffersize44100 4096
nosoundwheninactive true
mousewheelmode 1
mousewheellines 3
mousewheelreversex false
mousewheelreversey false
mousewheelclickmode 1
mousewheelcust00 +37+3B-3B-37
mousewheelcust01 +37+3C-3C-37
mousewheelcust10 common files\PERFORMA.ROM
mousewheelcust11 files\PERFORMA.ROM
usealtescape true
usealttab true
usecontrolescape true
usealtspace true
usealtenter true
disableaccuratetimer false
guiautorestart 1
gethardwarevolume true
enableextfs true
usentfsafp false
extdrives #CD
typemapfile D:\Apps\Emu\Basilisk II\BasiliskII.ftm
debugextfs 0
portfile0 C:\B2TEMP0.OUT
portfile1 C:\B2TEMP1.OUT
DX_fullscreen_refreshrate Monitor default
mousemovementmode 0
usestartupsound true
smp_ethernet 0
smp_serialin 0
smp_serialout 0
smp_cpu 0
smp_60hz 0
smp_1hz 0
smp_pram 0
smp_gui 0
smp_gdi 0
smp_dx 0
smp_fb 0
smp_audio 0
idlesleep 1
idlesleepenabled false
idletimeout 0
routerenabled false
ftp_port_list 21
disablescreensaver false
jitcachesize 16384
jitwantcmov true
jitfpu true
jitatraps true
jit true
jitlazyflush true
Check out Gwenole's comments in this thread about the CVS build of Basilisk II JIT for Windows: http://www.emaculation.com/phpBB/viewtopic.php?t=1451
CFran2
Mac Mechanic
Posts: 160
Joined: Tue Mar 15, 2005 6:55 pm

Post by CFran2 »

hey, just did a build of BasiliskII, and still got a black screen... how come? how to fix it?
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

Someone on the Operating System Emulation forum says it's a ROM image problem in his opinion. i.e. Some checksums have problems with the CVS build Basilisk II (for Windows). My Quadra 610 ROM runs the new builds O.K.
CFran2
Mac Mechanic
Posts: 160
Joined: Tue Mar 15, 2005 6:55 pm

Post by CFran2 »

no, i tried lots of different roms, even different model numbers, no change. rather seems like something wrong with the Basilisk video thing. is there anything changed since 0.9 builds? like SDL or something? cuz you know its some window as it was before but inside is black and when rolling the mouse over it disappears.
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

You need the sdl.dll file in the same directory as the BasiliskII.exe (or in your system32 directory).

Which reminds me I need a "CVS\Build SDL for Cygwin" menu item in the scripts.
CFran2
Mac Mechanic
Posts: 160
Joined: Tue Mar 15, 2005 6:55 pm

Post by CFran2 »

i got the SDL.dll in man, and im tellin you, it doesnt work, no matter when the dll is in the folder or not
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

Since so many people are reporting the problem, it must be a particular "bug" due to something common, whether a particular processor\motherboard chipset, video card chipset, Windows setting, compile setting, ...

Perhaps it will work for you in the future. It's not quite tolerable on Windows right now anyways due to relying on SDL for input\output.

I have not experienced this "black screen error" to try troubleshooting it.
CFran2
Mac Mechanic
Posts: 160
Joined: Tue Mar 15, 2005 6:55 pm

Post by CFran2 »

maybe, weird. i got an thlon xp and a nvidia geforce fx graphics card. know about other people's specs who got this bug?
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

CFran2 wrote:know about other people's specs who got this bug?
I'm working on my psychic skills.

Meanwhile, these people have the same problem:

http://www.emaculation.com/phpBB/profil ... e&u=100017

http://www.emaculation.com/phpBB/profil ... e&u=103651

Gwenole says:
Quadra ROMs require the following: "modelid" 14, "cpu" 4, "fpu" true.
68030 ROMs require the following: "modelid" 5, "cpu" 3, "fpu" depends, jit will be disabled.
CFran2
Mac Mechanic
Posts: 160
Joined: Tue Mar 15, 2005 6:55 pm

Post by CFran2 »

tried those setting, not working... weird...
rmarquis
Space Cadet
Posts: 9
Joined: Sat Mar 26, 2005 2:11 pm

Post by rmarquis »

CFran2 wrote:maybe, weird. i got an thlon xp and a nvidia geforce fx graphics card. know about other people's specs who got this bug?
I also have an athlon (2200+) and nvidia card (geforce 3).

I'd be inclined to think the nvidia video card more than the athlon processor, but I don't really have a way of knowing.

I have tried debugging, but I'm not really sure what I'm looking for.
kikkoman
Master Emulator
Posts: 312
Joined: Fri Apr 01, 2005 7:08 am
Location: California, USA

Post by kikkoman »

I have the black screen problem with the latest Basilisk JIT release as well.

I don't get this problem in the older basilisk, however.

Here's my specs:

-Athlon 800 (not athlonXP)
-Windows XP-Pro SP2
-384 MB ram (72 allocated for older basilisk)
-30 GB hard disk (1 GB allocated for older basilisk)
-DirectX 9.0c
-nVidia GeForce 5700LE 256 MB (AGP 4x/8x)
-AGP 2.0 mobo (4x but Windows reports it as 1x)
-nVidia drivers 71.84 (as of now, the latest release)
Mac Emu
Forum All-Star
Posts: 1208
Joined: Mon May 20, 2002 11:50 am
Location: Ouraion

Post by Mac Emu »

I have an Athlon XP 2500+ and am using the NVIDIA GeForce4 MX Integrated GPU. The new SDL-enabled Basilisk II for Windows works for me.

My ROM checksum is F1A6F343 (from a Quadra 610).
CFran2
Mac Mechanic
Posts: 160
Joined: Tue Mar 15, 2005 6:55 pm

Post by CFran2 »

weird, same ROM checksum, Windows XP Pro SP 1, Athlon XP 1600+, Geforce FX 5200 64MB.... blackness, still... thats something weird.
niuus
Student Driver
Posts: 11
Joined: Tue Dec 07, 2004 3:29 am
Location: Caracas

Post by niuus »

Black screen here as well.

Tried with the only 2 mac roms i have bothered to dump from my macs:
Quadra 605 (FF7439EE)
Quadra 900 (420DBFF3)

Definitively not an Athlon thing. My specs:
Intel 815 MoBo, 1 GHz PIII.
512 PC133 DIMM.
nVidia GeForce4 MX4000 64MB-AGP 4x

Oh, and XP SP2. Previous CVS releases for Win32 worked fine for me, up until this Basilisk II JIT v1.0-0.3 release.

Code: Select all

disk macos7.HFV
cdrom J:
extfs
screen win/800/600/32
seriala FILE
serialb FILE
rom quadra900.rom
bootdrive 0
bootdriver 0
ramsize 33554432
frameskip 0
modelid 14
cpu 68040
fpu true
nocdrom true
nosound false
nogui false
noclipconvert false
nofloppyboot true
noscsi true
keyboardfile BasiliskII_keyboard
pollmedia false
frameskip 0
etherpermanentaddress true
ethermulticastmode 0
realmodecd false
enableextfs false
extdrives #J
debugextfs 0
routerenabled true
ftp_port_list 21
keyboardtype 5
jit true
jitlazyflush true
jitcachesize 8192
jitfpu true
And the batch:

Code: Select all

basiliskII --disk macos7.hfv --bootdrive 0 --bootdriver 0 --rom quadra900.rom --ramsize 33554432 --frameskip 0 --modelid 14 --cpu 68040 --fpu true --jit true --jitfpu true --jitdebug false --jitcachesize 8192 --jitlazyflush true
Neither prefs nor batch file works.

Good luck there.
Post Reply