HP Forums
Anyone use X48? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Anyone use X48? (/thread-7827.html)



Anyone use X48? - EugeneNine - 02-25-2017 07:23 PM

https://sourceforge.net/projects/x48/files/

I couldn't get it to build unless I commented out some code in timer.c. I'm wondering if its still maintained.


RE: Anyone use X48? - Han - 03-01-2017 07:35 PM

(02-25-2017 07:23 PM)EugeneNine Wrote:  https://sourceforge.net/projects/x48/files/

I couldn't get it to build unless I commented out some code in timer.c. I'm wondering if its still maintained.

Can you post the errors and lines of code producing said errors?


RE: Anyone use X48? - Egan Ford - 03-02-2017 02:04 AM

(02-25-2017 07:23 PM)EugeneNine Wrote:  https://sourceforge.net/projects/x48/files/

I couldn't get it to build unless I commented out some code in timer.c. I'm wondering if its still maintained.

Not for a while. I have various patches here including Makefile, timer.c, action.c:

http://sense.net/zc/x48/

[Image: x48.png]

Just tested the binary I built for OS/X XQuartz from 2009, still runs.


RE: Anyone use X48? - Egan Ford - 03-02-2017 03:05 AM

(02-25-2017 07:23 PM)EugeneNine Wrote:  https://sourceforge.net/projects/x48/files/

I couldn't get it to build unless I commented out some code in timer.c. I'm wondering if its still maintained.

Try this source:

https://sourceforge.net/projects/x48.berlios/files/

Looks a newer than the other link you posted.


RE: Anyone use X48? - EugeneNine - 03-04-2017 06:28 PM

I ended up finding a simple fix for the .4 version, they left out an include for time.h, but when ahead and updated to the .6.

Even though the rom is in the museum downloads I dumped mine just to see it work.


RE: Anyone use X48? - EugeneNine - 09-21-2017 01:29 AM

Anyone interested, to compile on a Raspberry Pi I had to apply this patch

https://github.com/vocho/qnxpkgsrcmirror/blob/master/HEAD_650/pkgsrc/emulators/x48/patches/patch-src_emulate.c


RE: Anyone use X48? - Chris Dreher - 09-21-2017 04:48 AM

Droid48, an HP 48GX emulator for Android, was developed off of x48. The author of Droid48 might also be able to give some advice.

https://play.google.com/store/apps/details?id=org.ab.x48


RE: Anyone use X48? - EugeneNine - 09-21-2017 11:01 AM

I was posting in case anyone else wanted to, that patch got it working on the Pi.

I use droid 48 in 48sx mode on my phone and tablet.


RE: Anyone use X48? - EugeneNine - 09-23-2017 02:50 AM

This is what I was messing with, the HPi 48.

Yes I could have taken a screen shot but I think taking an actual picture illustrated it better as you an see the whole thing. Its the RPi foundation 7" display.


RE: Anyone use X48? - dmh - 01-08-2022 01:52 AM

I've just got x48 running under MacOS and it looks great :-).

I can't figure out how to get file transfer going though.

I've tried command line options, .Xdefaults etc and it never shows anything for "Wire".

Can anyone provide any tips or pointers for how to transfer between x48 and the Mac?

TIA, dmh


RE: Anyone use X48? - EugeneNine - 01-08-2022 04:49 PM

transfer to what? Are you trying to connect via a serial port to another HP? Or are you trying to connect the emulator to software on the mac like Kermit? The latter you'll need something to capture and redirect the serial device.


RE: Anyone use X48? - Mike T. - 01-09-2022 09:45 PM

You can actually run an X11 application without the desktop, which might look good in this case (providing it will automatically centre itself on the screen).

To do this don't install (or disable) the session manager (you only actually need the xserver). Then create ']/etc/rc.local' and use the following script to start your application directly (replace ' /usr/local/bin/x48' with the path to your program). Don't forget to make ']/etc/rc.local' executable!

Note - You must pipe the result through 'true' exactly as shown otherwise X won't start.
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the
# execution bits.
#
# By default this script does nothing.

/usr/bin/startx /usr/local/bin/x48 || true &

exit 0



RE: Anyone use X48? - EugeneNine - 01-09-2022 11:17 PM

OIC instead of running a desktop on the Pi, yeah I suppose I could, I was running other things on there too.

for dmh's question, when you specify a device for x48 to use its the actual hardware driver, i.e. its going to attempt to send data out a serial port like ttyUSB0 or whatever. If your trying to get x48 to task to software on the host you'll need something like socat to capture the hardware device and redirect it back so an internal device.

For anyone else interested the documentation isn't clear how to initialize it
you have to make a .hp48 directory in your home then copy in the rom and initialize from there

mkdir ~/.hp48
cp rom.dump ~/.hp48/
cd ~/.hp48 && x48 -initialize