Skip to content

Releases

Portfoliator 1.02

Choose a tag to compare

@delysio delysio released this 20 Nov 18:07

Changes since 1.00:

  • Recording: a new toolbar button saves the emulator's picture and sound to a video file, framed as the screen in its case or the screen alone
  • Raw ROM images shorter than a card are padded with FFh up to the chip size, and the card dialog names them as ROM extensions (reported by Petr)
  • The Portfolio's clock is now the NMI, as on the hardware: the time keeps step with the machine and Diary alarms ring (reported by x86vet)
  • The clock keeps running in OFF mode, and a Diary alarm switches the machine on (reported by x86vet)
  • Ports 8040h and 8041h read ticks since the last clock NMI and why the machine powered up (reported by x86vet)
  • Pulling a card out of slot A: in the middle of a read raises INT 15h, and DOS reports a read error (reported by x86vet)
  • Keys reach the Portfolio with the Inspector open, so the port log can be seen working; its first line no longer shows a negative cycle count (reported by x86vet)
  • The automatic power-off is the BIOS's own countdown, ending in OFF mode; the setting is now System → Automatic power-off, with corrected times for the longer options
  • System → Portfolio clock is ticked by default; it used to start cleared, which kept the clock in the page from running

Portfoliator 1.00

Choose a tag to compare

@delysio delysio released this 16 Nov 18:33

The emulator does not include any ROM files. They belong to Atari and DIP, so you have to find them on your own before you start. Four files are needed: the application ROM, the BIOS with DIP-DOS, the LCD character generator and the HD61830's internal character generator. You can drop the files onto the page. The emulator reads them on your computer only and remembers them in the browser; nothing is uploaded anywhere. It recognises them by their contents, so names and order don't matter. A combined 256 KB dump is accepted too. The tested revision is DIP-DOS 2.11 with ROM v1.072. Other revisions will run, but are marked as unknown.

Tested ROM files:

  • c101782-007.u4 — application ROM, 128 KB
    CRC32 C9852766, SHA-256 82ceb9b0a3541191525d87c04c2fe832905fad71bffd162f960b59c0dfb649e6
  • c101781-007.u3 — BIOS and DIP-DOS, 128 KB
    CRC32 B8FB730D, SHA-256 3fd92628ca0f8960149b20700f486c4109eb4a9c0ae7d5a857eb13e9f440c223
  • c101783-001a-01.u3 — LCD character generator, 32 KB
    CRC32 61FDAFF1, SHA-256 60a971516b85b160fb343141b12811af4e627423b8e4e1dc33ef16f19e542cd9
  • hd61830.bin — HD61830 internal character generator, 1472 B
    CRC32 06A934DA, SHA-256 8738511c6a2f02b0ef1be2cde90898458b4517151cb473ff28ae212dbd1c1737

Features in brief:

  • The 8088 core is a port of the core from MartyPC. It simulates the bus unit, the four-byte instruction queue and the multiply and divide microcode. I checked it in two ways:
    – on over 3 million instructions recorded from a real 8088, registers, flags and memory match in 100% of cases, and the cycle count and bus state in 97.5%;
    – against 647 measurements taken on a real Portfolio (by myself, with my own two hands and with the testers) the average error is 0.17%. In 568 cases the emulator gives exactly the same count as the hardware.
  • The HD61830 controller with its timing, the contrast register, panel inertia (a choice of four rise shapes), the dot grid and case artwork in four sizes.
  • PCD3311T sound, including DTMF tone dialling.
  • Memory cards in slot A:, and in slot B: with the HPC-104 expansion. Cards can be created, loaded, downloaded and edited file by file from the page.
  • HPC-101 (parallel port) supports printing to a file and the Portfolio file transfer protocol.
  • HPC-102 (serial port) supports a terminal, a real RS-232 port on your computer through Web Serial (Chrome or Edge), a virtual modem with tone dialling (telnet goes through a small Node relay you can download from the page), and a null-modem link between two browser tabs.
  • Machine state: three snapshot slots and a .pofostate file. A snapshot covers the whole machine, including the CPU, the cards and the attached hardware. Battery-backed memory, drive 😄 included, saves itself.
  • Inspector: registers, disassembler, memory view, port log, breakpoints on addresses and ports, stepping. Plus a view of PERMDATA.DAT, which is what the Portfolio remembers about itself.
  • User interface in Polish and English, switchable on the fly.

Supported browsers

Chrome or Edge 80+ (also Opera, Brave and other derivatives), Safari 15+ (also on iOS) and Firefox 114+. The serial port through Web Serial works only in Chrome and Edge.

  • Plain JavaScript and ES modules, no build step and no server-side code. To host your own copy, just copy the files to any web server.
  • The documentation (README in English and Polish) can also be read as a hardware description: memory and I/O maps, interrupts, power management, LCD timing, how the Portfolio was measured.
  • The test suite runs from Node. The emulator core also runs headless, without a browser, which can come in handy for writing and debugging your own software.
  • The hardware model was reconstructed from MAME sources (BSD-3-Clause), and the CPU core comes from MartyPC (MIT). Details are in the LICENSE file.

The emulator was tested by: Peri Noid, spkr/sfmx, MKM/Lamers, Cosi and tr1x/Agenda. Their tests, reports and comparisons against an original Portfolio found things I would certainly never have found on my own. Many thanks for helping this program along.

Disclaimer: I used an LLM to create it.