Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: fatman2021 on March 25, 2003, 01:39:45 AM

Title: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fatman2021 on March 25, 2003, 01:39:45 AM
Can DOSEMU be proted to the AmigaOne/AmigaOS 4.0 Platform? :-?
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Hammer on March 25, 2003, 08:11:58 AM
What about PCTask 4.0 (AmigaOS platform)?
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Panthro on March 25, 2003, 08:20:27 AM
is that happening?
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: mauma on March 25, 2003, 11:24:43 AM
everything can IMO be ported to the AmigaOne.
But why would you like to run DOSEMU on your AmigaOne?
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: falemagn on March 25, 2003, 01:27:20 PM
Quote
Can DOSEMU be proted to the AmigaOne/AmigaOS 4.0 Platform?


AFAIK DOSEMU works only on x86 machine, since it, AFAIK, doesn't contain a x86 emulator.

At least this is how it was some time ago, dunno if things have changed.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fnord on March 25, 2003, 03:35:44 PM
yep falemagn, you're right dosemu doesn't contain a x86 emulator. If you want to emulate an x86 on a PPC you should look for bochs http://bochs.sourceforge.net. I know that it's working eg under morphos, so I don't think it would be to hard porting it for AmigaOS 4. You shouldn't expect too much from it's performance, but if you really need to use some old DOS application (and I guess that's what you intend to do, as you were talking about dosemu), it might be ok.
Frederik
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fatman2021 on March 25, 2003, 05:12:19 PM
I'm working on a VESA VBA program that runs under DOS and would like to use it on the AmigaOne/Amiga OS 4.0..Some video cards like the Gforce4 comes with VESA VBA hardware support.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: on March 25, 2003, 05:23:59 PM
Quote
I'm working on a VESA VBA program that runs under DOS and would like to use it on the AmigaOne/Amiga OS 4.0..Some video cards like the Gforce4 comes with VESA VBA hardware support.


Using DOSEMU or any kind of virtualized machine will not give you access the the VESA hardware on the host, just on the emulated/virtual display adapter that the guest os sees.

That would be similar to saying you can access the VESA framebuffer on your PC directly from an AmigaOS program running inside UAE.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fatman2021 on March 25, 2003, 10:04:44 PM
Ok, thets say we have a AmigaOne computer running AmigaOS 4.0. This AmigaOne has a Gforc4 video card. How would I use the VESA VBE support on the video card.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 25, 2003, 10:06:14 PM
Quote

fatman2021 wrote:
I'm working on a VESA VBA program that runs under DOS and would like to use it on the AmigaOne/Amiga OS 4.0..Some video cards like the Gforce4 comes with VESA VBA hardware support.


Give it up!!!! Just get hold of something like DevC++ and the SDL includes, and then use SDL for your program!!!!
SLD is a million times more usable than VBE.

SDL programs are easily portable across platforms, Windoze, Linux, MacOS, AmigaOS3.1, AROS, etc...
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fatman2021 on March 25, 2003, 11:17:27 PM
Quote
Give it up!!!! Just get hold of something like DevC++ and the SDL includes, and then use SDL for your program!!!!
I like to use VBE becouse it comes on most of the new video cards. At lest most of the good ones....So if you have any info that can help, by all means tell me. If not, don't post any thing here..... :-x
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Hammer on March 26, 2003, 12:22:42 AM
Quote

fatman2021 wrote:
Ok, thets say we have a AmigaOne computer running AmigaOS 4.0. This AmigaOne has a Gforc4 video card. How would I use the VESA VBE support on the video card.

An example on VESA and emulated x86 environment, refer to Virtual PC 5.0’s VESA examples.

PS; the current Bochs (emulated x86), Virtual PC 5 (emulated x86), VMWARE 3(fancy x86 virtual mode), has yet to run the X86 version of Lotus3 game successfully…

Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 26, 2003, 12:41:38 AM
Quote

fatman2021 wrote:
Quote
Give it up!!!! Just get hold of something like DevC++ and the SDL includes, and then use SDL for your program!!!!
I like to use VBE becouse it comes on most of the new video cards. At lest most of the good ones....So if you have any info that can help, by all means tell me. If not, don't post any thing here..... :-x


Seriously, I'm trying to help you.

If you try to program VBE then you are going to have to rewrite your code for every operating system you want to run your program on.

My advice is SDL (http://www.libsdl.org/index.php), this is a hardware independant media layer. I assure you that SDL is far more portable (all modern Operating systems support it), much faster (it uses graphics hardware acceleration, where VBE can not) and so much easier to use than directly hitting a VBE card.

Here is a part of the SDL FAQ:

Q: What is Simple DirectMedia Layer?
A: Very simply, Simple DirectMedia Layer, or SDL for short, is a library that allows you low level access to a video framebuffer, audio output, mouse, keyboard, and joysticks across a wide variety of operating systems.


Oh, and it supports 3D acceleration via the OpenGL API

Sounds good doesn't it  :-)
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Hammer on March 26, 2003, 01:08:18 AM
@bloodline

(Just recalling) In general terms, the SDL is dependant on host OS’s 2D acceleration support...(correct me IF I'm wrong, since I haven't touch SDL for a while).

I know WinUAE uses SDL library...
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 26, 2003, 01:17:08 AM
Quote

Hammer wrote:
@bloodline

(Just recalling) In general terms, the SDL is dependant on host OS’s 2D acceleration support...(correct me IF I'm wrong, since I haven't touch SDL for a while).


Yes indeed, it basicly uses the best possible graphics system availiable on the Host OS.
I'm a very new convert to SDL, it was only when I decided to start a project I wanted to build on a few Windoze machines, but plan to run on a Linux machine, did I really see how good it was!!! :-o
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Hammer on March 26, 2003, 01:48:12 AM
Quote

bloodline wrote:

Yes indeed, it basicly uses the best possible graphics system availiable on the Host OS.

SDL is quite useful for application programming . But, what about system programming?

Have you asked what was the requirements of Fatman’s VESA based project?
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fatman2021 on March 26, 2003, 04:22:54 AM
I’m working on a new video game. This video game will only use C/C++ for what its good at, i.e. small code, looping, etc. I’m going to write my own graphics library in both x86 and PowerPC Assembly. I don’t want to use anyone else’s c libraries because I do not like tying myself down to some else’s code and the bugs within their libraries. If I could get away with it, I would like to package my game with some type of free x86 emulator with FreeDos running over it or a Dos emulator with my game running over it. And one more thing, yes I know that x86 and PowerPC assembly are nothing alike.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Mr_Capehill on March 26, 2003, 07:46:34 AM
Sounds like a lot hassle to me. I wouldn't want to install some emulation environments onto my Amiga to run an Amiga game!

I understand that you want some speed, but I think you should write the game first and optimize then. And please, at least give SDL a chance before crushing it. ;-)

And if you want to write a game for the new Amiga, why wouldn't you do it in a system frienly way? We are still suffering because of lots of old software were written to bang hardware directly.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Rogue on March 26, 2003, 09:50:00 AM
VBE is MS-DOS only. You can't use it on anything else, since for starters it is written in x86 assembly. Secondly, it is entirely non-portable, since it depends on the int10 mechanism, and you can't even use it under Linux x86 or Windows.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: trgse on March 26, 2003, 09:56:30 AM
too bad that Amiga-SDL as it is today won't work on Amiga OS 4.0
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 26, 2003, 10:57:13 AM
Quote

trgse wrote:
too bad that Amiga-SDL as it is today won't work on Amiga OS 4.0


I'm not aware of anything that runs on AmigaOS4  :-D

Sorry couldn't resist,  Seriously though, it really wouldn't take long to port SDL from the current AmigaOS 3.1 to AmigaOS 4 (once AOS4 is actually available to the general public).

The AROS port didn't take long to get working... and that was done as a hobby!!! Though it still needs a bit of work.  :-P
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Rogue on March 26, 2003, 12:48:30 PM
Quote

trgse wrote:
too bad that Amiga-SDL as it is today won't work on Amiga OS 4.0


SDL will run on OS 4.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Rogue on March 26, 2003, 12:49:28 PM
Quote

I'm not aware of anything that runs on AmigaOS4  :-D


Well, I am.

Sorry couldn't resist :-)
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: jd997uk on March 26, 2003, 12:59:22 PM
@Rogue
Quote
Well, I am.

OH, YEAH? What would you know?
I mean, you'd have to be involved in the writing of OS4 to know something like that.   ;-)  :-D  :-D  :-D

Sorry, couldn't resist!  :-P

-john
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 26, 2003, 01:03:57 PM
Quote

Rogue wrote:
Quote

I'm not aware of anything that runs on AmigaOS4  :-D


Well, I am.

Sorry couldn't resist :-)


Hahhahhahaha!
Yes, sorry about that, I didn't mean that as a nasty jibe.

The main point of my post was that porting SDL to OS4 should be really easy from the current SDL Amiga port. (Providing OS4 has the same API as 3.1) :-)
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: falemagn on March 26, 2003, 01:14:37 PM
Quote
VBE is MS-DOS only.


While it's true that the BIOS extension is DOS-specific, the that's not the only way to access VESA functionalities. Moreover, once the screen is set up, you only have to access the framebuffer, and hat works regardless of whether you used the int interface or not.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Rogue on March 26, 2003, 01:34:30 PM
Quote

falemagn wrote:

While it's true that the BIOS extension is DOS-specific, the that's not the only way to access VESA functionalities.


How else would you do it except with the INT10? Sure you could call it directly, but I am not aware of any other API.

Quote

Moreover, once the screen is set up, you only have to access the framebuffer, and hat works regardless of whether you used the int interface or not.


Framebuffer access doesn't have anything to do with VESA, and is equally possible on, say, the Amiga, by locking the bitmap. However, when you have a color-mapped framebuffer then you might need to change the palette, and that is entirely un-portable, as is the rest of the VESA bios.

If you don't want to use SDL or similar, I propose going for a very slim abstraction layer, something that sets the display mode, sets a color palette entry, swaps front- and backbuffer. That's about it, unless you want to bring in user interaction (mouse/keyboard), in which case you'd better off using SDL again, since that isn't covered by VBE either  :-D
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Rogue on March 26, 2003, 01:37:12 PM
Quote

jd997uk wrote:

OH, YEAH? What would you know?
I mean, you'd have to be involved in the writing of OS4 to know something like that.   ;-)  :-D  :-D  :-D
-john


Yeah, well, you got me ;-)
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: Rogue on March 26, 2003, 01:43:09 PM
Quote

bloodline wrote:

Hahhahhahaha!
Yes, sorry about that, I didn't mean that as a nasty jibe.


I didn't take it as such. Note the ";-)"

Quote

The main point of my post was that porting SDL to OS4 should be really easy from the current SDL Amiga port. (Providing OS4 has the same API as 3.1) :-)


Yes, you can compile an OS 3.1 program for OS 4, with a few possible things that needs to be fixed - mostly opening libraries if not done in the startup code, and a few things like interrupt handlers that have changed slightly (you wouldn't want to pass parameters to a PPC function in 68k registers, especially if the 68k is disabled  ;-) )

To the best of my knowledge, someone from the team is already working on porting SDL to OS4.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 26, 2003, 03:20:55 PM
Quote

Rogue wrote:
Quote

bloodline wrote:

Hahhahhahaha!
Yes, sorry about that, I didn't mean that as a nasty jibe.


I didn't take it as such. Note the ";-)"

Quote

The main point of my post was that porting SDL to OS4 should be really easy from the current SDL Amiga port. (Providing OS4 has the same API as 3.1) :-)


Yes, you can compile an OS 3.1 program for OS 4, with a few possible things that needs to be fixed - mostly opening libraries if not done in the startup code, and a few things like interrupt handlers that have changed slightly (you wouldn't want to pass parameters to a PPC function in 68k registers, especially if the 68k is disabled  ;-) )

To the best of my knowledge, someone from the team is already working on porting SDL to OS4.


Good, I'm glad you didn't take offence, I don't want any bad feeling between our respective groups  ;-)

I would be surpised if you were not porting SDL, it would make your lives much easier when porting games to other alternative platforms, like Mac, Linux and um... AROS  :-D  
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: fatman2021 on March 26, 2003, 06:56:56 PM
You know what I would like to do is no different then requiring AmigaDE Player over Windows over DOS to run AmigaDE games on a PC, or requiring someone to run Windows over DOS to run a Windows Game, or Java over AmigaOS 3.9 to run a Java game.
Title: Re: DOSEMU for AmigaOne/AmigaOS 4.0
Post by: bloodline on March 27, 2003, 10:31:23 AM
Quote

fatman2021 wrote:
You know what I would like to do is no different then requiring AmigaDE Player over Windows over DOS to run AmigaDE games on a PC, or requiring someone to run Windows over DOS to run a Windows Game, or Java over AmigaOS 3.9 to run a Java game.


So you do want to use SDL then?  :-?