Thursday, November 19, 2026

Q-emuLator 4.3 for Windows

This new update includes a compiler that can compile SuperBASIC programs directly to x86 code for much faster execution.

This project has been developed over many years, starting with a SuperBASIC grammar, then a hand-coded parser, a temporary interpreter to test the QDOS integration, and more recently the logic to perform type inference for variables and use a standard compiler backend library to generate the x86 code. 

Since the compiled BASIC program still runs in the emulator, it has access to the rest of QDOS and the QL hardware. It can also invoke loaded extension keywords and toolkits, although they run slower under normal emulation. Math functions (SIN, INT, etc.) and some other functions and procedures (DATE, BLOCK, etc.) are implemented natively to avoid emulation.

Floating point numbers use x86 double precision and the compiler automatically detects what variables can use faster integer math depending on their usage.

The compiler accepts the Sinclair SuperBASIC syntax, plus some Minerva and SMSQ/E extensions like integer for loop variables and hex constants. There are also a few limitations, for example computed GOTOs are not accepted.

The picture above is a screenshot from a demo animation that is available on the software page of my web site and allows to "fly" in a cityscape rendered in real-time by a SuperBASIC program. There is also a video illustrating the huge speed ups that the animation gained from running on the original QL to PC emulation and from there to PC compilation:


Q-emuLator version 4.3 also adds support for placing microdrive images in .qlpak packages. The GST 68K-OS qlpak on my web site has been updated to also include a microdrive read-only image (in GST format) of the system utilities cartridge.

Finally, a new FPS command is available in the debugger to display the frame rate of a QL game or animation.


Friday, October 16, 2026

Q-emuLator 4.2 for Windows

 Q-emuLator 4.2 is out. It is now possible to use Windows drag and drop to associate container files or directories to microdrive slots:

The BEEP command is a constant source of tweaks and this time I have also found and fixed a bug in some upward glissandos and improved the frequency accuracy of complex trills. A new 'Room Ambience' option makes the sound less dry.

The "Ext. ROMs" section of the QL Configuration window (corresponding to expansion ROMs at address $C0000 and up) now accepts ROMs of up to 256 KB.

At QL Speed, expanded RAM is now faster than the standard 128 KB QL RAM and runs at a speed comparable to Miracle Expanderam 512K and Sandy Super Q board.

For developers, the debugger has a "profile" command that collects machine code profiling information when running at QL Speed. Call it twice to start/stop collection.

Sunday, September 13, 2026

Q-emuLator 4.1

 Q-emuLator 4.1 has a new GPU graphics engine that uses less CPU and adds optional scanline and monitor persistence effects.


Variable pixel ratio - a feature requested by many users - is finally available. It allows  MODE 4 pixels to appear square at the expense of a squished image.

   

The built-in debugger now supports the 'step out' command and allows using the mouse to toggle breakpoints and inspect stack traces.



Friday, January 2, 2026

Q-emuLator 4.0 for Windows

Version 4.0 of Q-emuLator has been released for Windows 7 SP1 and later.


Extensive research went into making the CPU emulation cycle-accurate (also simulating its interaction with the ZX8301 video ULA and the 8049 coprocessor), creating a new lower-level format for microdrive images and studying the hardware of the ICL One Per Desk computer (a cousin of the QL).

Q-emuLator 4 also adds emulation of the QSound interface (3 sound channels), can run the pre-existing extended graphics modes inside a window, includes an improved ram disk driver and has more extensive debugging capabilities

For the nostalgic, there are monochrome monitor colour options and simulation of the microdrive motor and tape noise.

The overall experience of running the emulator should be smoother, with new features like default directories for ROMs/software/configurations, reduced audio latency, a Pause command (Windows-Alt-P), auto CPU speed setting, ability to create new empty MDV, MDVRAW, QXL.WIN and IMG file containers.

The manual has been updated and expanded and there are now an online troubleshooting page and a 'check for updates' command.

For a more detailed list of everything that's new in version 4, see this web page.

Sunday, January 8, 2023

Q-emuLator 2.2 for macOS

Q-emuLator for macOS version 2.2 has been released, now allowing the creation of subdirectories in QXL.WIN containers and on floppy disks. The included Toolkit 2 has been updated to a recent version that includes the SuperBASIC MAKE_DIR command.

Sunday, September 25, 2022

Q-emuLator 3.5 for Windows

The latest update of Q-emuLator for Windows implements the extended system call to create a new directory in a QXL.WIN container or floppy disk (in addition to a Windows directory, where it was already available). It's also bundled with a more recent version 2.34 of the Toolkit 2 that includes the MAKE_DIR command.

The built-in debugger (accessed by pressing F11 while the emulated QL is running) has been updated and it now supports conditional breakpoints, complex expressions and text that is more readable on large displays.

Friday, December 24, 2021

Q-emuLator updates

Q-emuLator versions 2.1 for OS X and 3.4 for Windows are now available for download.

SMSQ/e support has been improved when using the emulator-specific build of SMSQ/e (available here).

Both formats of microdrive images (mdump_task and QLay) are now supported by the unregistered version of the emulator, since supporting only one of them was confusing.

The version for Intel Macs also catches up with the TCP/IP driver improvements recently added to the PC version, and audio emulation has been made compatible with OS X 11 Big Sur.