Click HereClick Here
home features news forums classifieds faqs links search
5241 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Channel: #Amigaworld
Channel Policy and Guidelines

(Uses JAVA Applet and Port 1024)
Visit the Chatroom Website

Who's Online
 37 guest(s) on-line.
 2 member(s) on-line.


 Rob,  DWolfman

You are an anonymous user.
Register Now!
 DWolfman:  6 secs ago
 Rob:  1 min ago
 DruggedBunny:  5 mins ago
 Overflow:  6 mins ago
 logicalheart:  7 mins ago
 mlehto:  10 mins ago
 Daedalus:  12 mins ago
 Bezzen:  18 mins ago
 zzd10h:  21 mins ago
 eliyahu:  22 mins ago

Software News   Software News : Basilisk II 0.9.3 AmigaOS4 (11.Aug.2008)
   posted by NutsAboutAmiga on 12-Aug-2008 20:02:51 (2346 reads)
Basilisk II is an open source 68k Macintosh emulator. It can emulate
either a Mac Classic or a Mac II series machine with colour display
and sound.


* RDB support
* Harddisk support with 64bit addressing
* Displays diskimage and partition size (when found!)
* Mouse wheel support (NEW).
* Ethernet support (not tested)
* Supports LUT and ARGB display modes on all screens including Workbench
* Supports CD-ROM
* All PC keyboard keys are supported in emulation

Note to PowerUp users: it is probably better run Shapeshifter or Fusion on
the 68k than Basilisk II on the PPC. Basilisk II uses UAE CPU engine and
BPPC/CSPPC is too weak.

Changes in Basilisk II 0.9.3 AmigaOS4 11.Aug.2008:

* Mouse wheel support.
* Ethernet fixes, (don't know if they work).
* ASL fileselector for ethernet device
* New "Add bootdisk" button.
* Shows partition and diskimage size in GUI.

Changes in Basilisk II 0.9.3 AmigaOS4 3.Aug.2008:

* Added ASL fileselector for ROM and diskimages.

Changes in Basilisk II 0.9.3 AmigaOS4 7.Nov.2007:
* Marged the AmigaOS3.x sources whit MorphOS sources.
* Removed MUI stuff
* Simplified error messages (NO MUI STUFF)
* Added reaction GUI
* Removed TD64 support
* Fixed bug in disk support (random memory corruption)
* Added NSD64 (large disk support used in OS3.5/3.9/4.0)
* Removed Cybergraphic stuff not relevent to AmigaOS4.
* added Picasso96 support from OS3.x
* removed direct videooutput (none working videomodes) slower but works
* Added RDB support, no need to enter start and size in blocks.
* New Icon from Martin "Mason" Merz
* Buggy exit code fixed.
    

Related Links
· More about Software News
· News by NutsAboutAmiga


Most read story about Software News
IT'S DONE!

Last news about Software News
Hollywood essentials released - happy platform independent coding
Printer Friendly Page  Send this Story to a Friend

PosterThread
Crumb 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 12-Aug-2008 22:12:25
#1 ]
Elite Member
Joined: 12-Mar-2003
Posts: 2198
From: Zaragoza (Aragonian State)

@to the author

32bit RGB modes should work directly and get a nice speed increase. Can't remember if it was ARGB or RGBA, but one of them certainly works with direct video output.

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 12-Aug-2008 23:25:19
#2 ]
Elite Member
Joined: 9-Jun-2004
Posts: 9652
From: Norway

@Crumb

All I know is that this two functions fail to give me correct colors bitmap format.
the memory address returned from p96GetBitMapAttr(the_bitmap, P96BMA_MEMORY)
is in a corrupt gfx card format (32bit) GBAR.


static bool get_direct_video_from_window()
{
the_bitmap = the_win -> RPort -> BitMap;

VideoMonitor.mac_frame_base = (uint32)Host2MacAddr((uint8 *) p96GetBitMapAttr(the_bitmap, P96BMA_MEMORY));
VideoMonitor.bytes_per_row = p96GetBitMapAttr(the_bitmap, P96BMA_BYTESPERROW);
}



static bool get_direct_video_from_screen()
{
the_bitmap = the_screen->RastPort.BitMap;

VideoMonitor.mac_frame_base = (uint32)Host2MacAddr((uint8 *) p96GetBitMapAttr(the_bitmap, P96BMA_MEMORY));
VideoMonitor.bytes_per_row = p96GetBitMapAttr(the_bitmap, P96BMA_BYTESPERROW);
}


If I use P96LockBitmap() then "rinf.Memory" will be correct ARGB format, problem is I can only access this memory temporary, so its no good for MacOS that can access the memory at any time.


if (lock = p96LockBitMap( the_screen->RastPort.BitMap, (UBYTE *)&rinf, (ULONG)sizeof( struct RenderInfo))
{
// do some thing whit in rinf.Memory...
p96UnlockBitMap( the_screen->RastPort.BitMap, lock );
}

 Status: Offline
Profile     Report this post  
Moxee 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 1:27:19
#3 ]
Team Member
Joined: 20-Aug-2003
Posts: 6291
From: County Yakima, WA State, USA

URL please.

Then I'll list it in the news item.

 Status: Offline
Profile     Report this post  
Swoop 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 5:32:32
#4 ]
Elite Member
Joined: 20-Jun-2003
Posts: 2056
From: Long Riston, East Yorkshire

@Moxee

It's on OS4Depot .

 Status: Offline
Profile     Report this post  
Crumb 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 11:41:01
#5 ]
Elite Member
Joined: 12-Mar-2003
Posts: 2198
From: Zaragoza (Aragonian State)

Iáhave found this chunk of code and can't remember if it was a working one but take a look... Iádidn't add byteswapping code and Iáhad 32bit screenmodes working on uA1-Radeon. This code fragment belongs to the time I started to add byteswapping for certain screenmodes (but didn't finish it)

// Open Picasso96 screen
static bool init_screen_p96(ULONG mode_id)
{
// Set relative mouse mode
ADBSetRelMouseMode(true);

// Check if the mode is one we can handle
uint32 depth = p96GetModeIDAttr(mode_id, P96IDA_DEPTH);
uint32 format = p96GetModeIDAttr(mode_id, P96IDA_RGBFORMAT);

switch (depth) {
case 8:
VideoMonitor.mode = VMODE_8BIT;
break;
case 15:
case 16:
if (format != RGBFB_R5G5B5) {
ErrorAlert(GetString(STR_WRONG_SCREEN_FORMAT_ERR));
return false;
}
VideoMonitor.mode = VMODE_16BIT;
break;
case 24:
case 32:
if (format != RGBFB_A8R8G8B8) {
ErrorAlert(GetString(STR_WRONG_SCREEN_FORMAT_ERR));
return false;
}
VideoMonitor.mode = VMODE_32BIT;
break;
default:
ErrorAlert(GetString(STR_WRONG_SCREEN_DEPTH_ERR));
return false;
}

// Yes, get width and height
uint32 width = p96GetModeIDAttr(mode_id, P96IDA_WIDTH);
uint32 height = p96GetModeIDAttr(mode_id, P96IDA_HEIGHT);

VideoMonitor.x = width;
VideoMonitor.y = height;

// Open screen
the_screen = IP96->p96OpenScreenTags(
P96SA_DisplayID, mode_id,
P96SA_Title, (ULONG)GetString(STR_WINDOW_TITLE),
P96SA_Quiet, TRUE,
P96SA_NoMemory, TRUE,
P96SA_NoSprite, TRUE,
P96SA_Exclusive, TRUE,
TAG_END
);
if (the_screen == NULL) {
ErrorAlert(GetString(STR_OPEN_SCREEN_ERR));
return false;
}

// Open window
the_win = IIntuition->OpenWindowTags(NULL,
WA_Left, 0, WA_Top, 0,
WA_Width, width, WA_Height, height,
WA_NoCareRefresh, TRUE,
WA_Borderless, TRUE,
WA_Activate, TRUE,
WA_RMBTrap, TRUE,
WA_ReportMouse, TRUE,
WA_CustomScreen, (ULONG)the_screen,
TAG_END
);
if (the_win == NULL) {
ErrorAlert(GetString(STR_OPEN_WINDOW_ERR));
return false;
}

// Set VideoMonitor
ScreenToFront(the_screen);
//USE THIS IF P96 STUFF ISN'T SHOWN CORRECTLY
//#if 1
// VideoMonitor.mac_frame_base = (uint32)Host2MacAddr((uint8 *)VideoMonitor.mac_frame_base);
//#endif

VideoMonitor.mac_frame_base = p96GetBitMapAttr(the_screen->RastPort.BitMap, P96BMA_MEMORY);
VideoMonitor.bytes_per_row = p96GetBitMapAttr(the_screen->RastPort.BitMap, P96BMA_BYTESPERROW);
return true;
}

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 12:40:13
#6 ]
Elite Member
Joined: 9-Jun-2004
Posts: 9652
From: Norway

@Crumb

Sorry that code is totally useless can can't possibly work, for one thing the
VideoMonitor.mac_frame_base is not converted to MacOS address space.

the line that does convert memory in to MacOS address space is two line up, and disabled.

// VideoMonitor.mac_frame_base = (uint32)Host2MacAddr((uint8 *)VideoMonitor.mac_frame_base);

and as I wrote p96GetBitMapAttr(the_screen->RastPort.BitMap, P96BMA_MEMORY);

Returns the Memory in wrong byte format.

Last edited by NutsAboutAmiga on 13-Aug-2008 at 12:48 PM.

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 12:53:41
#7 ]
Elite Member
Joined: 9-Jun-2004
Posts: 9652
From: Norway

@Crumb

If was possible to set VideoMonitor.mode to GBAR then direct video might work.

Last edited by NutsAboutAmiga on 13-Aug-2008 at 12:53 PM.

 Status: Offline
Profile     Report this post  
Crumb 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 14:23:01
#8 ]
Elite Member
Joined: 12-Mar-2003
Posts: 2198
From: Zaragoza (Aragonian State)

Well, Iáhad a working version of BasiliskáII for OS4 some years ago and it still works on OS4 final with latest updates, if you want to take a look I could send the full sources to to your email, c&p to web forums isn't exacty comfortable...

Moreover, Iácould send you a working binary with direct video working as a proof if you want.

Last edited by Crumb on 13-Aug-2008 at 02:25 PM.

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.200)
Posted on 13-Aug-2008 14:37:17
#9 ]
Elite Member
Joined: 9-Jun-2004
Posts: 9652
From: Norway

/dcc send it to me.. I'm on IRC..

ok you have my e-mail...

Last edited by NutsAboutAmiga on 13-Aug-2008 at 03:18 PM.

 Status: Offline
Profile     Report this post  
tekmage 
Re: Basilisk II 0.9.3 AmigaOS4 (11.Aug.2008)
Posted on 18-Aug-2008 23:54:10
#10 ]
Regular Member
Joined: 23-Mar-2005
Posts: 304
From: San Francisco

I had a question for the guru's working on this project. I'd like to use a hard partition for the mac boot. This new version see's the partition just fine and reports the size correctly. When I tell the Mac to initialize it I get an error "Disk initialization failed!". I suspect I need set the Partition type correctly, it's currently SFS. I looked for some guidance on the partition type with no luck. Any thoughts?

Thanks,
Bill "tekmage" Borsari

 Status: Offline
Profile     Report this post  
[ home ][ about us ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright ę 2000 - 2014 Amigaworld.net.

Page took 0.131797 seconds to load.