NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
UAE for NeXTstep

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software
View previous topic :: View next topic  
Author Message
Andreas



Joined: 27 Dec 2005
Posts: 356
Location: Germany

PostPosted: Tue Dec 04, 2007 3:23 am    Post subject: UAE for NeXTstep Reply with quote

Just for fun,
http://uae.coresystems.de/download
is claimed to compile under NeXTstep.

Have someone tried that and is a ready compiled archive, if possible as FAT, for downloading avail?
Back to top
View user's profile Send private message
kb7sqi



Joined: 24 Sep 2007
Posts: 488
Location: Winston Salem, NC

PostPosted: Tue Dec 04, 2007 9:30 am    Post subject: Reply with quote

A quick port. No real testing, but the older "stable" version 0.7.6 compiled w/ out too much trouble. Needed to add strdup to genp2c.c & modify the sysconfig.h a bit, then compile a few files w/ -traditional-cpp. You'll find the Uae.app in the tarball in the ns3.3_quadfat directory. Here's the url

http://kb7sqi.dyndns.org/files/ns3.3_quadfat/uae-0.7.6.NIHS.tgz

And here's a quick screenshot of it starting kickstart:

http://kb7sqi.dyndns.org/files/screenshots/NeXT-Uae.jpg Very Happy

I did start it by going into the Uae.app directory & typing ./Uae. The screenshot was on the Gecko. I compiled it on my x86 box. Give it a shot & let me know how it works. If it works ok, I'll start working on the newer dev snapshots and make a proper package. If I remember right, the last packaged version was 0.5.3 or so. Also, FYI, the NeXT version don't support sound. Crying or Very sad Hope it works ok. Take care.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kb7sqi



Joined: 24 Sep 2007
Posts: 488
Location: Winston Salem, NC

PostPosted: Tue Dec 04, 2007 9:45 am    Post subject: Reply with quote

I had to test it atleast w/ a demo adf file. Cool It works that much atleast. Here's a screenshot of a demo called LostWorld.

http://kb7sqi.dyndns.org/files/screenshots/UAE.LostWorld.jpg

I'll have to mess w/ it more l8r. Hope you like it. Take care.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Andreas



Joined: 27 Dec 2005
Posts: 356
Location: Germany

PostPosted: Tue Dec 04, 2007 11:04 am    Post subject: Reply with quote

kb7sqi wrote:
I had to test it atleast w/ a demo adf file. Cool It works that much atleast. Here's a screenshot of a demo called LostWorld.

http://kb7sqi.dyndns.org/files/screenshots/UAE.LostWorld.jpg

I'll have to mess w/ it more l8r. Hope you like it. Take care.


Oh, thanx, i will test that version by myself. Is there a chance to see the much newer versions that i have linked below to compile?
Back to top
View user's profile Send private message
kb7sqi



Joined: 24 Sep 2007
Posts: 488
Location: Winston Salem, NC

PostPosted: Tue Dec 04, 2007 11:21 am    Post subject: Reply with quote

If the 0.7.6 release works ok, then I'll work on the newer development releases. I just wanted to make sure the stable version worked first. There was quite a few changes from 0.5.2/3 to 0.7.6. So, I was amazed it compiled so quickly. I'll download some dev snapshots & give them a shot. Very Happy I was also working vMac/minivmac. So, this should go along well w/ one of them. Take care.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Andreas



Joined: 27 Dec 2005
Posts: 356
Location: Germany

PostPosted: Wed Dec 05, 2007 11:57 am    Post subject: Reply with quote

kb7sqi wrote:
If the 0.7.6 release works ok, then I'll work on the newer development releases.


just a short test on m68k, doubleclicking to start the app doesn't work. some commands like -O 352:240:c wasn't interpreted right, and i don't know how the joystick is emulated ;-)

Quote:
I was also working vMac/minivmac. So, this should go along well w/ one of them. Take care.


Oh nice since we can assume a usefuel performance on m68k systems. The only thing on vMac that i doesn't like is the fixed screensize of (unusable) 512x384
Back to top
View user's profile Send private message
helf



Joined: 29 Dec 2005
Posts: 1097
Location: Alabama, USA

PostPosted: Thu Dec 06, 2007 6:03 pm    Post subject: Reply with quote

isnt that the screensize of the original macs? Do emulators like vmac and UAE run the emulated systems cpu 'natively' if they are on a 68k chip? Would boost speed tremendously...
_________________
*INACTIVE*
Back to top
View user's profile Send private message AIM Address
Andreas



Joined: 27 Dec 2005
Posts: 356
Location: Germany

PostPosted: Fri Dec 07, 2007 12:39 am    Post subject: Reply with quote

helf wrote:
isnt that the screensize of the original macs?


Yes, but here are later models with bigger solutions and vmac ist AFAIK able to run until 7.5.

Quote:
Do emulators like vmac and UAE run the emulated systems cpu 'natively' if they are on a 68k chip? Would boost speed tremendously...


unfortunatly MOST emulators are emulation also the CPU. For MAC amulation only Shapeshifter on Amiga-Systems uses the native CPU. Would be nice to see something like that for the NeXT
Back to top
View user's profile Send private message
neozeed



Joined: 15 Apr 2006
Posts: 716
Location: Hong Kong

PostPosted: Sat May 24, 2008 7:59 am    Post subject: Reply with quote

I just built this last night so I could try to see how to do some video under NS. I needed to have GCC 2.7.2.3 to build everything except NeXTwin.m

Also you'll need gnu make and I always find bash 2.01 helpfull.


in the sysconfig.h I had to comment out

HAVE_GETOPT 1


from there it'll build with

gmake uae
gmake uae CC=cc
gmake uae

this way gcc 2.7.2.3 will build most except the .m, and the NeXT gcc can only build the objective C part... Even though I built the objective C portion of 2.7.2.3 but it doesn't compile.

Go figure.

It's great fun for Captain Blood & having fun with WorkBench.

I just rebuilt it trying to figure out some colour stuff on NS...

I had to comment out memory.h & newcpu.h from NeXTwin.m

And add in strdup to a few things (cpuopti, genp2c, uae) and remove the strdup 'fix' in sysconfig... which doesnt work.

and for refrence here is strdup.c:

Code:
#include <stdio.h>

/*
* posted to comp.sys.next.programmer:
*
*
* From: moser@ifor.math.ethz.ch (Dominik Moser,CLV A4,2 40 19,720 49 89)
* Subject: Re: Compile problems (pgp 2.6.3i)
* Date: 10 Jul 1996 06:50:42 GMT
* Organization: Swiss Federal Institute of Technology (ETHZ)
* References: <4rrhvj$6fr@bagan.srce.hr>
* Message-ID: <4rvjs2$6oh@elna.ethz.ch>
*
* Most systems don't have this (yet)

*/
char *strdup(str)
char *str;
{
char *p;
extern char *malloc();
extern char *strcpy();

if ((p = malloc(strlen(str)+1)) == NULL)
return((char *) NULL);

(void) strcpy(p, str);

return(p);
}

_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
neozeed



Joined: 15 Apr 2006
Posts: 716
Location: Hong Kong

PostPosted: Wed May 28, 2008 7:29 am    Post subject: UAE Reply with quote

Oh I found something else while playing with the source, if you have a 16bit deep display, it looks like crap. There is some 'issue' with using long's for the display, and it leaves some weird line artifacting.

The solution is to trust display postscript. Apparently you can just 'describe' a 32bit colour plane to it, and it'll render it down on whatever colour display you have. And I might add it looks way better to me. Maybe it was an issue prior to NS 3.3 fixpack 3?

Anyways, you just have to modify NeXTwin.m to something like this:

Code:
--- NeXTwin.m   Wed May 28 10:24:25 2008
+++ vid.m       Wed May 28 10:26:27 2008
@@ -357,24 +357,27 @@
                case NX_TwelveBitRGBDepth:
                case NX_EightBitRGBDepth:
                        {
-                       for(i = 0; i < 4096; i++)
-                               {
-                               xcolors[i] = NXSwapHostShortToBig((short)((i <<4) | 0xf));
-                               }
-
-                               bitmap=[[NXBitmapImageRep alloc]
-                                       initData:(unsigned char *)NULL
-                                       pixelsWide:(int)800
-                                       pixelsHigh:(int)(313-29)
-                                       bitsPerSample:(int)4
-                                       samplesPerPixel:(int)4
-                                       hasAlpha:(BOOL)YES
-                                       isPlanar:(BOOL)NO

-                                       colorSpace:(NXColorSpace)NX_RGBColorSpace
-                                       bytesPerRow:(int)800*2
-                                       bitsPerPixel:(int)16
-                                       ];
-                               gfxvidinfo.pixbytes=2;
+                        for(i = 0; i < 4096; i++)
+                                {
+                                xcolors[i]=   NXSwapHostLongToBig(((i & 0x0f00)<< (20))|
+                                                ((i & 0x00f0) << (16))|
+                                                ((i & 0x000f) << (12))|
+                                                0xff);
+                                }
+
+                                bitmap=[[NXBitmapImageRep alloc]
+                                        initData:(unsigned char *)NULL
+                                        pixelsWide:(int)800
+                                        pixelsHigh:(int)(313-29)
+                                        bitsPerSample:(int)8
+                                        samplesPerPixel:(int)4
+                                        hasAlpha:(BOOL)YES
+                                        isPlanar:(BOOL)NO
+                                        colorSpace:(NXColorSpace)NX_RGBColorSpace
+                                        bytesPerRow:(int)800*4
+                                        bitsPerPixel:(int)32
+                                        ];
+                                gfxvidinfo.pixbytes=4;
                        break;
                        }
                case NX_EightBitGrayDepth:

_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group