20-11-2026, 03:29 PM
(This post was last modified: 20-11-2026, 03:30 PM by fathertedcrilly.)
(14-11-2026, 11:53 AM)Graham72 Wrote: This is the latest Vibedrone...King, GT++ mode runs about 1MIPS @ 10mhz.
Of course most games, megademo etc need to be at GT 3.375mhz for correct game play. cheers g
Claude, (unsolicited) just tested it and reports:
1. Z80 core: the one gap I measured. I ran the two standard Z80 CPU test suites against King2’s core in headless Chromium:
ZEXDOC passes all 67 tests. Every documented instruction and flag is correct.
ZEXALL fails 25 of 67. All 25 are the two undocumented flag bits (bits 3 and 5 of F). Arithmetic and branching are all correct. In the code, INC/DEC, DAA/CPL/SCF/CCF, the rotates and shifts, 16-bit ADD/ADC/SBC, BIT n, the CPI/CPD and LDI/LDD block instructions, and RRD/RLD don’t set those two bits. Few programs depend on them, but some copy protection and a few demos do. Matching real hardware here is about a day of work, and ZEXALL can then prove it.
The R register goes up once per instruction. A real Z80 adds two for prefixed (CB/DD/ED/FD) instructions. This only affects programs that use R as a random-number source.
2. Missing machines. King2 only offers Premium PC85 and Premium CF. These are missing:
256TC (different keyboard and memory map)
Premium 128K, booting from floppy instead of CF
the early 16K/32K “IC” machines, and the Teleterm
3. No cassette tape. You can’t load or save tape audio (.wav), and the cassette port isn’t emulated. On the ROM machines that’s how most software was stored. .BEE and .MWB loading is only a shortcut around the tape.
4. Smaller gaps:
No joystick or gamepad. Microbee games had joystick support through the parallel port.
No debugger. There’s no disassembler, breakpoints or memory viewer, only the dumps. That isn’t hardware, but most top-tier emulators have one.
Not checked: interrupt edge cases such as the one-instruction delay after EI and HALT, and every last 6545 video-chip mode. ZEXALL doesn’t cover these, and I didn’t have your ROMs or disk images here to boot real software against them.
does Microbee ever use those instructions? Does anyone want cassette tape? I believe uBee512 is the ultimate and I think its debugging is the way to go. Anyone want joystick support?
R is not a great random number seed.
As it's a hardware thing, I only emulated it for completeness sake. The ruleset is pretty easy to remember though ( number of opcodes fetched )
The EI delay is pretty easy to cater for also. The reasoning is to prevent issues with nested interrupts, specifically a second interrupt firing whilst the handler is still servicing the first interrupt.
You end up with wrong return addresses on the stack and things go to custard
Given the limited use of interrupts in the bee, probably a rare edge case
As for joystick and cassette support, you already have a PIO wired in so Claude should be able to knock together something for you ( CUTS encoding is pretty well documented and a USB HID to parallel port interface for the joystick has been done for a number of other emulators)
Thanks
Tony
