Login  •  Register


The time is now: Wed Nov 21, 2018 5:42 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 22 posts ]
Print view Previous topic  |  Next topic
Author Message
 Post subject: PCE - Mac Plus Emulator
PostPosted: Wed Oct 21, 2009 9:27 am 
Offline
Site Admin
User avatar

Joined: Mon May 20, 2002 4:37 am
Posts: 3668
Location: Uiwang
Has anyone here heard of this:

http://www.hampa.ch/pce/about.html

"PCE/macplus is a Macintosh Plus emulator. It emulates a Macintosh 128K, Macintosh 512k, Macintosh 512ke or a Macintosh Plus."


Top
 Profile  
Reply with quote Post a reply  
 Post subject:
PostPosted: Wed Oct 21, 2009 9:45 pm 
Offline
Tinkerer

Joined: Thu May 14, 2009 10:53 pm
Posts: 49
Location: Sidcup, England
I haven't heard of that emulator before. Thanks for the link, ClockWise!

Mini vMac doesn't boot some Macintosh System disk images I have found, and I can't submit a bug report because I don't own a Mac Plus. It will be useful to try them in another currently-developed emulator.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Oct 22, 2009 12:32 pm 
Offline
Master Emulator
User avatar

Joined: Tue Aug 14, 2007 4:32 pm
Posts: 392
Location: People's Republic of China
ClockWise wrote:
Has anyone here heard of this:

http://www.hampa.ch/pce/about.html

"PCE/macplus is a Macintosh Plus emulator. It emulates a Macintosh 128K, Macintosh 512k, Macintosh 512ke or a Macintosh Plus."


Compiled PCE/macplus in my MinGW environment with SDL-1.2.13 enabled. It works like SoftMac, however you need to manually edit a config file and use a console to configure it.
Unlike SoftMac, It could boot from Mini vMac/BasiliskII/Sheepshaver disk image, however you need to wait for the SCSI scan before PCE could even find the Mini vMac/BasiliskII/Sheepshaver disk.
Image


Top
 Profile  
Reply with quote Post a reply  
 Post subject:
PostPosted: Tue Dec 01, 2009 1:57 am 
Offline
Site Admin
User avatar

Joined: Mon May 20, 2002 4:37 am
Posts: 3668
Location: Uiwang
This emulator was updated yesterday:

http://www.hampa.ch/pce/index.html

Now at version 0.2.0


Top
 Profile  
Reply with quote Post a reply  
 Post subject: REPLY!!!!!!!!
PostPosted: Sat Feb 05, 2011 8:40 pm 
Offline
Tinkerer
User avatar

Joined: Thu Jan 06, 2011 10:41 pm
Posts: 97
pce also uses direct mouse emulation, ignoring windows mouse settings. That way, the mac os mouse settings work perfectly!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 04, 2012 2:56 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4438
Location: Sittard, The Netherlands
Better late then never:

On 2011-09-07 PCE/macplus has been updated to version 2.1
http://www.hampa.ch/pce/index.html

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Dec 29, 2012 11:48 pm 
Offline
Student Driver

Joined: Fri Mar 02, 2012 11:46 pm
Posts: 10
Seems like we have a new version:
http://www.hampa.ch/pce/download.html


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Mar 17, 2013 2:59 pm 
Offline
Space Cadet

Joined: Sun Mar 17, 2013 2:41 pm
Posts: 2
edit: below
I got a recent version of this emulator, and it appears to work great, however I can't figure out how to add to the disk images or get it to accept my mniivmac disk images.

My disk images are in .dsk format, this emulator uses .img format. The img disks won't open in hfvexplorer.

Alternatively if someone can figure out how to get the emulator to read .dsk files that would be nice too. I modified the config file to try to load them but there is some error when it comes time to load the disks.

Almost forgot: I am using windows.

edit: Ok, I figured out how i can transfer files to these disk images (open them in basilisk II and copy the files there)

However, I need more memory. In the cfg file there is a config section entitled ram, that looks like this:

# Multiple "ram" sections may be present.
ram {
# The base address
address = 0

# The memory block size
size = 4096K

# The memory block is initialized with this value.
default = 0x00
}

I need 8092 ram I think (to run smalltalk-80). However I tried both increasing the block size to 8092, and adding a new "ram" section, in which i just duplicated the above code but changed the address to 1. Unfortunately I have no idea if "1" is an acceptable value for a memory address :)

does anyone have any ideas?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Feb 18, 2015 6:25 am 
Offline
Space Cadet

Joined: Wed Feb 18, 2015 12:12 am
Posts: 4
Quote:
My disk images are in .dsk format, this emulator uses .img format. The img disks won't open in hfvexplorer.

IMG to DSK is easy if you're on OSX 10.10 . Install Macfuse and rename both to DMG :) Now you can read and write it. Once complete then rename DMG back to IMG. That method worked great for me.

I have another problem with PCE. Hope, somebody can help me with that.
I want to set up serial port redirection on Windows version and was completely confused by PCE syntax.
it's straight forward on linux
Code:
driver = "tios:file=/dev/ttyS2"

Using same idea on Windows, like \\.\COM3 or \\\\.\\COM3 or COM3, I can't make it working.
The output to a file works great... )
please, help.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Feb 18, 2015 6:36 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2275
Location: Emaculation.com
Does this help?
https://stackoverflow.com/questions/194 ... o-txt-file

It's going the other way, but that just involves flipping the < to a > .


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2015 8:46 pm 
Offline
Space Cadet

Joined: Wed Feb 18, 2015 12:12 am
Posts: 4
Great news, PCE developer has sent windows binaries which have serial port support enabled! I tested it works


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2015 10:58 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2275
Location: Emaculation.com
k-Tracker wrote:
Quote:
My disk images are in .dsk format, this emulator uses .img format. The img disks won't open in hfvexplorer.

IMG to DSK is easy if you're on OSX 10.10 . Install Macfuse and rename both to DMG :) Now you can read and write it. Once complete then rename DMG back to IMG. That method worked great for me.



Forgot to answer this part. DSK, IMG and DMG are container formats, not drive formats. DMG is DiskCopy 6.x -- basically the modern format. IMG is usually DiskCopy 4.3 or NDIF format, and was the standard on the classic Mac for years. DSK is essentially NDIF with the checksum header stripped off -- so it's a raw disk image. Now Disk Utility is set up to handle DMG by default, but recognizes NDIF and other container formats transparently.

But then we get to the tricky part: the format of the disk inside the container. Apple has used MFS, HFS and various flavours of HFS+ over the years. The only thing I've found that has let me manage MFS partitions is Mini vMac with an OS that recognizes MFS.

MacFUSE was a great solution for handling older partition formats under OS X 10.5/10.6, but is incompatible with 10.7+ -- instead, you have to install OSXFUSE for FUSE support. Unfortunately the hfsfuse plugin is statically linked against MacFUSE and won't work under OSXFUSE -- which means no NDIF HFS support under OS X 10.10.

The serial support under Windows is promising though :)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2015 11:08 pm 
Offline
Space Cadet

Joined: Wed Feb 18, 2015 12:12 am
Posts: 4
Can't agree with that. It works for me under 10.10, I have both MacFuse and OSXFUSE running. Don't remember how exactly I did this magic, was lazy to document that at a time. But I have completely NO issues with writing to IMG images now at 10.10.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2015 11:41 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2275
Location: Emaculation.com
Can you please outline what version of MacFuse and fuseHFS you're using? This is something I would dearly like to get working again. And I've tried all sorts of things, including manually compiling fuseHFS as a filesystem plugin. Still won't help with MFS, but Apple hasn't supported THAT in over 25 years. They supported DOS and ProDOS partitions longer than that.

Oh, and here's the story from the dev side:
http://www.offthehill.org/articles/2010 ... w-leopard/

[edit] and our local thread: viewtopic.php?f=7&t=8181

...which of course indicates that I'm getting old :) It works -- sort of -- with OSXFUSE.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2015 5:51 am 
Offline
Space Cadet

Joined: Wed Feb 18, 2015 12:12 am
Posts: 4
You're right, seems I used that link, I'm running ISXfuse 2.7.2


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 16, 2017 5:19 am 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2275
Location: Emaculation.com
PCE got an update in February. It's now at PCE 20170208-df19414.

Does anyone have an OS X build kicking around? Hampa only has the source and the Windows builds.

Hmm... having said that, it builds pretty easily, and can be dropped into the Windows downloads and run with minimal modifications.

I could probably whip up one of my clickable builds if anyone's interested.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Aug 09, 2017 9:32 pm 
Offline
Student Driver

Joined: Fri Jul 21, 2017 3:27 am
Posts: 12
What is the configure line to be used for Mac OS X as a host?

Using this:
./configure -with-x --with-sdl --enable-tun --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios

fails at

CC src/lib/tun.o
src/lib/tun.c:36:10: fatal error: 'linux/if.h' file not found
#include <linux/if.h>
^
1 error generated.
make: *** [src/lib/tun.o] Error 1


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Aug 15, 2017 7:22 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2275
Location: Emaculation.com
It's possible I didn't enable tun on my builds. Either that, or you don't have the tun/tap libraries installed to build against? I think I've got them installed via homebrew.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Jun 29, 2018 7:43 pm 
Offline
Student Driver

Joined: Fri Jul 21, 2017 3:27 am
Posts: 12
I am trying to compile pce for my Mac OS X 10.13.
I tried two different configurations, which gave me different errors during compilation.

1) With tun/tap

./configure -with-x --with-sdl --enable-tun --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios

Code:
  CC     src/lib/tun.o
src/lib/tun.c:36:10: fatal error: 'linux/if.h' file not found
#include <linux/if.h>
         ^~~~~~~~~~~~
1 error generated.
make: *** [src/lib/tun.o] Error 1


Installing tup/tap now follows a different path:

Code:
$ brew tap homebrew/cask
$ brew cask install tuntap


which fails with

Code:
==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/tuntap/20150118/tuntap_20150118.pkg -target /


There is no tuntap under Caskroom

Code:
$ ls /usr/local/Caskroom
rar


2) Without tun/tap

./configure -with-x --with-sdl --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios

It fails with...

Code:
  LD     src/arch/atarist/pce-atarist
Undefined symbols for architecture x86_64:
  "_tun_close", referenced from:
      _chr_ppp_open in char-ppp.o
      _chr_ppp_close in char-ppp.o
      _chr_slip_close in char-slip.o
  "_tun_open", referenced from:
      _chr_ppp_open in char-ppp.o
      _chr_slip_open in char-slip.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/arch/atarist/pce-atarist] Error 1


3) Forcing to disable tun/tap

Code:
./configure -with-x --with-sdl --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios --disable-tun
...
  Sound drivers built:     null wav
  Sound drivers not built: oss sdl
  Enabled options:
  Disabled options:        readline tun


Fails with the same error.

Code:
  LD     src/arch/atarist/pce-atarist
Undefined symbols for architecture x86_64:
  "_tun_close", referenced from:
      _chr_ppp_open in char-ppp.o
      _chr_ppp_close in char-ppp.o
      _chr_slip_close in char-slip.o
  "_tun_open", referenced from:
      _chr_ppp_open in char-ppp.o
      _chr_slip_open in char-slip.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/arch/atarist/pce-atarist] Error 1


Any suggestions on how I can compile pce for my Mac OS X 10.13?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jul 02, 2018 7:51 pm 
Offline
Student Driver

Joined: Fri Jul 21, 2017 3:27 am
Posts: 12
I managed to have a clean compilation. The binary seems to be working. However, when I tried to use the ready-made packages it doesn't show any output besides the log .

Code:
$ ./configure -with-x --with-sdl --disable-char-ppp --enable-char-tcp --disable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios --disable-tun
$ make
$ make install


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jul 02, 2018 9:31 pm 
Offline
Student Driver

Joined: Fri Jul 21, 2017 3:27 am
Posts: 12
Ok. I managed to compile and make it work...

Code:
./configure ; make clean ; make ; make install


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Oct 04, 2018 1:24 am 
Offline
Inquisitive Elf
User avatar

Joined: Sat Feb 04, 2017 5:12 am
Posts: 28
Location: Argentina
I wonder if someone can make a GUI for it, it looks pretty good.

_________________
Compact Macs will rule supreme for all eternity! :twisted:


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 22 posts ]


Who is online

Users browsing this forum: No registered users and 4 guests


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
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group