Pce-Macplus setup ?

About Mini vMac and all other 68k emulators, including SoftMac, Executor, and MESS.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
galgot
Granny Smith
Posts: 101
Joined: Thu Feb 13, 2014 3:59 pm

Pce-Macplus setup ?

Post by galgot »

Hi,
is there a guide to setup Pce-macplus on Mac OSX 10.4 PPC ?
I've downloaded and compiled the latest from here :
http://www.hampa.ch/pce/download.html
but when I try it i get a "Bus error"... see :

Riggan-Thomson:~ galgot$ pce-macplus
pce-macplus version 20160308-72f1e10
Copyright (C) 2007-2012 Hampa Hug <hampa@hampa.ch>
SYSTEM: model=mac-plus
*** RAM not found at 000000
CPU: model=68000 speed=0
VIA: addr=0xefe000 size=0x2000
SCC: addr=0x800000 size=0x400000
RTC: file=pram.dat realtime=1 start=<now> romdisk=0
KEYBOARD: model=1 international=0 keypad=keypad
IWM: addr=0xd00000
TERM: driver=null ESC=ESC aspect=4/3 min_size=512*384 scale=1 mouse=[1/1 1/1]
type 'h' for help
-g
Bus error

Documentation I've found on that emulator is minimal :/ Maybe the game is to find out how to make it work :)
User avatar
adespoton
Forum All-Star
Posts: 3063
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Pce-Macplus setup ?

Post by adespoton »

I didn't realize it had been compiled for any target except Windows-x86. Is all the code portable to PPC? Check to see if you've got any inline-asm that will need to be ignored during the config/make process.
galgot
Granny Smith
Posts: 101
Joined: Thu Feb 13, 2014 3:59 pm

Re: Pce-Macplus setup ?

Post by galgot »

Yes apparently it runs on PPC, saw that on the screenshot here :
http://www.hampa.ch/pce/pics-mac.html

Sorry, I don't understand what you mean by "inline-asm"...
I've just did a
./configure
make
make install

Tried another way, PCE is available through Tiger-Brew, so removed my previous installation and installed it again via brew. but same error :
Riggan-Thomson:~ galgot$ pce-macplus
pce-macplus version 0.2.2
Copyright (C) 2007-2012 Hampa Hug <hampa@hampa.ch>
SYSTEM: model=mac-plus
*** RAM not found at 000000
CPU: model=68000 speed=0
VIA: addr=0xefe000 size=0x2000
SCC: addr=0x800000 size=0x400000
RTC: file=pram.dat realtime=1 start=<now> romdisk=0
KEYBOARD: model=1 international=0 keypad=keypad
IWM: addr=0xd00000
TERM: driver=null ESC=ESC aspect=4/3 min_size=512*384 scale=1 mouse=[1/1 1/1]
type 'h' for help
unhandled message ("term.release", "1")
unhandled message ("term.fullscreen", "0")
-g
Bus error
User avatar
adespoton
Forum All-Star
Posts: 3063
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Pce-Macplus setup ?

Post by adespoton »

Configure might need some custom switches for PPC. "inline asm" relates to how C can embed assembly code in-line in the code, which is faster for some routines, but is processor specific.

You're getting both:

Code: Select all

*** RAM not found at 000000
and:

Code: Select all

TERM: driver=null ESC=ESC aspect=4/3 min_size=512*384 scale=1 mouse=[1/1 1/1]
type 'h' for help
unhandled message ("term.release", "1")
unhandled message ("term.fullscreen", "0")
-g
Bus error
I'm not sure what that -g is doing. But something's definitely not running as expected.
galgot
Granny Smith
Posts: 101
Joined: Thu Feb 13, 2014 3:59 pm

Re: Pce-Macplus setup ?

Post by galgot »

The -g is for running the thing apparently, see the help :

type 'h' for help
-h
bc [index] clear a breakpoint or all
bl list breakpoints
bs addr [pass [reset]] set an address breakpoint [pass=1 reset=0]
bsx expr [pass [reset]] set an expression breakpoint [pass=1 reset=0]
c [cnt] clock
d [addr [cnt]] dump memory
e addr [val|string...] enter bytes into memory
f addr cnt [val...] find bytes in memory
g run
gb [addr..] run with breakpoints at addr
ge [exception] run until exception
h print help
halt [val] set halt state [2]
load name [fmt] [a [n]] read a file into memory
m msg [val] send a message to the emulator core
p [cnt] execute cnt instructions, skip calls [1]
q quit
r reg [val] get or set a register
reset reset
rte execute to next rte
s [what] print status (cpu|mem|scc|via)
save name [fmt] [a n...] write memory to a file
t [cnt] execute cnt instructions [1]
u [[-]addr [cnt]] disassemble
v [expr...] evaluate expressions
y src dst cnt copy memory

Indeed there is something running well... :) but how to fix that ...
Post Reply