View Single Post
Old 18 February 2010, 03:09   #32
xaind
Registered User
 
Join Date: Apr 2006
Location: Sydney / Australia
Posts: 113
@MagerValp: You shouldn't need to make any changes to have PUAE work with the SDL framework installed in /Library/Frameworks. That is exactly where I have SDL installed and my builds of PUAE pick it up just fine.

@GnoStiC: I was wondering if uncommenting that line might be all that was needed

I have just tried puaex_2010_2_17-2.tar.gz. There are some changes to the joystick code that break the Cocoa GUI code. I have attached a new version of cocoaui.m that fixes these (I think.) I replaced references to JSEM_NONE with JSEM_END, and references to XXXprefs.jport0 with XXXprefs.jports[0].id etc... So if the user selects "None" from the menu for the first joystick port, it will set changed_prefs.jports[0].id to JSEM_END. Is that the right thing to do? Or should I remove the "None" option altogether?

In any case, the attached version of cocoaui.m compiles, at least. The new version seems to get a *lot* further. It comes up, the background flashes from dark-grey to lighter-grey to white, but then the power "led" down the bottom starts flashing and I get an exception message, then it appears to reboot. This just keeps cycling over and over. Output below.

P.S. I don't think anyone has said this yet, but many, many thanks for all your work on this. I think there are quite a few people looking forward to an updated version of UAE for non-windows platforms.

Code:
PUAE 2.0.2
Build date: Feb 18 2010 12:47:07
SDLGFX: Initialized.
SDLGFX: Using SDL version 1.2.14.
SDLGFX: Display is 32 bits deep.
SDLGFX: Found screenmode: 1920x1200.
SDLGFX: Found screenmode: 1600x1200.
SDLGFX: Found screenmode: 1600x1000.
SDLGFX: Found screenmode: 1344x1008.
SDLGFX: Found screenmode: 1280x960.
SDLGFX: Found screenmode: 1344x840.
SDLGFX: Found screenmode: 1280x800.
SDLGFX: Found screenmode: 1024x768.
SDLGFX: Found screenmode: 1024x640.
SDLGFX: Found screenmode: 960x600.
SDLGFX: Found screenmode: 800x600.
SDLGFX: Found screenmode: 800x500.
SDLGFX: Found screenmode: 640x480.
Found 0 joystick(s)
Found quartz raw keyboard mapping
Using raw keymap
Opening cfgfile '/Users/myname/default.uaerc'...failed
Opening cfgfile 'default.uaerc'...failed
Testing the RDTSC instruction ... done.
Calibrating TSC frequency...TSC frequency: 2660.777520 MHz
Found quartz raw keyboard mapping
Using raw keymap
Found quartz raw keyboard mapping
Using raw keymap
Entered action_replay_load()
ROM loader..
SDLGFX: Added P96 mode: 640x480x32
SDLGFX: Added P96 mode: 640x480x8
SDLGFX: Added P96 mode: 800x600x32
SDLGFX: Added P96 mode: 800x600x8
SDLGFX: Added P96 mode: 1024x768x32
SDLGFX: Added P96 mode: 1024x768x8
SDLGFX: Added P96 mode: 1920x1200x32
SDLGFX: Added P96 mode: 1920x1200x8
SDLGFX: Added P96 mode: 1600x1200x32
SDLGFX: Added P96 mode: 1600x1200x8
SDLGFX: Added P96 mode: 1600x1000x32
SDLGFX: Added P96 mode: 1600x1000x8
SDLGFX: Added P96 mode: 1344x1008x32
SDLGFX: Added P96 mode: 1344x1008x8
SDLGFX: Added P96 mode: 1280x960x32
SDLGFX: Added P96 mode: 1280x960x8
SDLGFX: Added P96 mode: 1344x840x32
SDLGFX: Added P96 mode: 1344x840x8
SDLGFX: Added P96 mode: 1280x800x32
SDLGFX: Added P96 mode: 1280x800x8
SDLGFX: Added P96 mode: 1024x640x32
SDLGFX: Added P96 mode: 1024x640x8
SDLGFX: Added P96 mode: 960x600x32
SDLGFX: Added P96 mode: 960x600x8
SDLGFX: Added P96 mode: 800x500x32
SDLGFX: Added P96 mode: 800x500x8
No disk in drive 0.
CPU cycleunit: 256 (0.500)
Building CPU table for configuration: 68000 prefetch 24-bit
1876 CPU functions
Building CPU, 44316 opcodes (0 1 1)
CPU=68000, FPU=0, JIT=0.
CPUID level=10, Family=6, Model=15, Mask=6, Vendor=GenuineIntel [0]
JIT: Building Compiler function table
JIT: Supposedly 42101 compileable opcodes!
CPU cycleunit: 256 (0.500)
SDL: sound driver found and configured at 44100 Hz, buffer is 100 ms (17640 bytes).
BEAMCON0 0000 -> 0020
PAL mode V=50Hz H=15600Hz (227x312)
chipmem cleared
CPU cycleunit: 256 (0.500)
Illegal instruction: 4e7b at 00FC0564 -> 00FC0582
PAL mode V=50Hz H=15600Hz (227x312)
Exception 3 (fc0fe3) at fc0fe0 -> fc081a!
PAL mode V=50Hz H=15600Hz (227x312)
Illegal instruction: 4e7b at 00FC0564 -> 00FC0582
PAL mode V=50Hz H=15600Hz (227x312)
Exception 3 (fc0fe3) at fc0fe0 -> fc081a!

   <--- I pressed the "QUIT" button here

DMACON: 23f0 INTENA: 206c INTREQ: 20 VPOS: 0 HPOS: 1
COP1LC: 00000420, COP2LC: 00c00276 COPPTR: 00000420
DIWSTRT: 2c81 DIWSTOP: f4c1 DDFSTRT: 0038 DDFSTOP: 00d0
BPLCON 0: 1000 1: 0000 2: 0024 3: 0c00 4: 0011
Average frame time: 3849420.55 ms [frames: 812 time: -1169237808]
EDIT: I just noticed the "exception 3" I am getting appears to be the same one that gilgamesh was getting. Sounds like it might be something related to the GUI?
Attached Files
File Type: txt cocoaui.m.txt (16.2 KB, 311 views)

Last edited by xaind; 18 February 2010 at 08:48.
xaind is offline  
 
Page generated in 0.04619 seconds with 12 queries