A new feature of the latest EMU41 (http://www.jeffcalc.hp41.eu/emu41) is support for the PIL-Box (http://www.jeffcalc.hp41.eu/hpil). This allows a modern Windows-based PC to access HP-IL devices in the same manor an ancient DOS-based PC accesses HP-IL devices via the HP-IL ISA adapter.
This is great--if you run Windows. Fortunately, many of us do not run Windows, and fortunately there are DOS alternatives for non-Windows platforms. DOSBox (http://www.dosbox.com) happens to be one of them. DOSBox is available for just about any platform (I use it on my Mac). Because DOSBox emulates DOS and the x86 instruction set it will be slower (but still much faster than necessary) than Windows/DOS or Linux/DOSEMU. However, the upside is that if you have a Power Mac or a low power portable ARM-based Linux machine, then you are still in luck. DOSBox like Windows/DOS and Linux/DOSEMU also utilizes a shared file system directory making it easy to use your native OS environment to setup and edit files.
Getting EMU41/DOSBox to talk to the PIL-Box is fairly straightforward. I'll be using my Mac as an example.
- Install DOSBox from the URL above.
- Define a directory for all your DOS needs. I will be using /Users/egan/dosbox.
- Install EMU41 into your dosbox directory. E.g. /Users/egan/dosbox/EMU41.
- Install BNU 1.70 (http://www.pcmicro.com/bnu) into your dosbox directory. E.g. /Users/egan/dosbox/BNU.
- Edit your DOSBox Preferences. Read the DOSBox documentation to find the preferences file. E.g. on my OS/X machine I edit: /Users/egan/Library/Preferences/DOSBox\ 0.73\ Preferences (NOTE: the backslash space is because I edit files from the command line).
Make the following edits:
In the serial section:
[serial]
Where realport is the name of the PIL-Box. It will differ from platform to platform, the example above is for OS/X (NOTE: /dev/ is omitted).
serial1=directserial realport:cu.usbserial-FTE03NXR
serial2=disabled
serial3=disabled
serial4=disabled
In the autoexec section:
[autoexec]
Save and exit your editor.
mount c: /Users/egan/dosbox
c:
cd bnu
bnu
cd ..
- Edit EMU41.INI and add in the [DEVICES] section XIL COM1:. Follow the EMU41 documentation for more details on how to use the PIL-Box with EMU41.
- Run DOSBox.
- Start up EMU41:
cd emu41
emu41