Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:14 05 Dec 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : A MMbasic editor, compiler and runtime for Windows and Linux

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 03:25pm 06 Sep 2026
Copy link to clipboard 
Print this post

# pc3host 0.8.0 - the Pico Computer 3's BASIC, on a PC

https://github.com/UKTailwind/pc3host/releases/tag/v0.8.0

Two packages, one for Linux and one for Windows. Both carry the same thing: Based on the the Pico Computer 3's own Fuzix toolchain, built from the machine's own sources, running on a PC.

You write MMBasic using the standard MMBasic editor `mmbedit`, `cc` compiles it, and it runs in a window that is the PC3's screen - the kernel's display code, its keyboard decoder and its sound engine, compiled into a small server that plays the part the kernel plays on the board. A program that runs here runs on the board, and it draws the same pixels: the graphics tests are compared against
images captured from the machine itself.

| `pc3host_0.8.0_amd64.deb` | Debian, Ubuntu, Mint and their kin |
| `pc3host-0.8.0-win64.zip` | Windows 10 or later, 64-bit |

## Linux

```
sudo dpkg -i pc3host_0.8.0_amd64.deb
```

Everything but the display server is statically linked, so it installs on any distribution of that age or newer; the server needs the X11 libraries, which a desktop already has. It puts itself under `/opt/pc3` and links the names a PC has no other use for into `/usr/bin`.

The compiler is called `cc`, as it is on the board, and that name is deliberately not taken from your system. Use `pc3` to get a shell with the PC3's tools first on the PATH, or `pc3cc` to call the compiler directly:

```
pc3                                   # a shell with the tools first
cc -r /opt/pc3/share/examples/gfx1.bas
```

## Windows

Unpack the zip anywhere - your Documents folder is fine - and run **`install.cmd`** inside it. It puts the tools on your account's PATH and tells Windows that a `.bc` file is a program. No administrator rights are needed, nothing is copied into Windows itself, and `uninstall.cmd` beside it undoes both. **Open a new command prompt afterwards**: the one you have still holds the old environment.

To try it without changing anything, run `pc3.cmd` instead, which opens a prompt with the tools on its PATH for as long as that window is open.

Windows will not know the programs and will say so the first time: they carry no signature. Right-click the zip, tick **Unblock** in its Properties before extracting, and you will be asked less. A machine running Smart App Control, or under a Device Guard policy, refuses unsigned programs outright and there is nothing in the package that can change that.

## The first five minutes, on either

```
cc -r hello.bas          build it and run it
cc hello.bas             build it: hello.bc
bcrun hello.bc           run what you built
mmbedit hello.bas        the editor; F2 saves, builds and runs
```

On Windows a built program is also `.\hello.bc` in a command prompt, or a double click in Explorer. It will not run as a bare `hello`: a `.bc` is not a Windows  executable, it is a file that `bcrun` runs, the way the `#!` line has the board run it.

The editor is `mmbedit`, not `mmedit`: MMEdit is Jim Hiley's Windows IDE for MMBasic and this is not it.

Things to try, wherever the package put its examples (`/opt/pc3/share` or `share\` in the folder you unpacked):

```
cc -r share/examples/gfx1.bas        a picture
cc -r share/examples/keydemo.bas     the keyboard
cc -r share/examples/pc3bench.bas    what each kind of thing costs here
cc -r share/examples/samples/breakout.bas    breakout game using tilemap
cc -r share/examples/samples/bubble.bas      bubble universe
```

The Windows package also has **`selftest.cmd`**: it compiles the eclipse
predictor - 3,213 lines of real astronomy - with the shipped compiler,
checks its output to the last digit, and then opens the window.

## What is in box

The compiler and its passes, the BASIC translator, the bytecode runtime,
the editor, the image loaders, the four audio players and the display
server. Beside them: 83 sample programs, the 112 test programs with the
output each must produce, the whole translator source, the manuals, and
the test scripts.

## What is not

The board's hardware. There are no pins on a PC, so `SETPIN`, `PIN`,
`I2C`, `SPI`, `PWM`, the counting inputs and the real-time clock
registers answer "not available" rather than pretending. Everything
else - graphics, sound, the keyboard, files, and the `WEB` family over
your machine's own network - is real.

Timing is the other difference worth knowing. Frame pacing is a timer
rather than a monitor's vertical blanking, and a graphics statement here
is a message to the display server where on the board it is a register
write, so a program that races the frame will feel slightly different.
`pc3bench.bas` measures it on the machine in front of you.
 
tgerbic
Senior Member

Joined: 25/07/2019
Location: United States
Posts: 123
Posted: 05:49pm 06 Sep 2026
Copy link to clipboard 
Print this post

Just get a 404 on that link.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 06:00pm 06 Sep 2026
Copy link to clipboard 
Print this post

works for me and I've checked it is definitely public
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 790
Posted: 06:29pm 06 Sep 2026
Copy link to clipboard 
Print this post

Hello Peter,

I’ve tried this on win11: ...\pc3host>pc3.cmd
")" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

Translated:
")" cannot be processed syntactically at this point.

The selftest.cmd file worked perfectly.

Matthias
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3891
Posted: 06:31pm 06 Sep 2026
Copy link to clipboard 
Print this post

Works for me in Canada:

  Quote  C:\dl2\pc3host>cc -r share\examples\gfx1.bas
wrote gfx1.mb.c
...................................................................................................................................................................................................................................................................

C:\dl2\pc3host>cc -r share\examples\keydemo.bas
wrote keydemo.mb.c
..............................................................................................................................................................................................................................................................

C:\dl2\pc3host>cc -r share\examples\pc3bench.bas
wrote pc3bench.mb.c
..................................................................................................................................................................................................................................................................
pc3bench
                                   this machine     reference
round trip (GETPIXEL)              92.5 us      27 us
interpreter, 2M adds              828 ms       (about 130 ms)
FRAMEBUFFER COPY F, N              74.5 us      51 us
FRAMEBUFFER COPY F, N, B           17.26 ms   16.80 ms (one frame)
INKEY$ with nothing pressed        65.2 us      10 us (from a terminal)
BOX 90x50 filled                  727.1 us     246 us
TEXT (one crossing each)          261.0 us      72 us
CLS                               182.1 us      74 us
done - paste this with the last line pc3d --verbose prints on exit

C:\dl2\pc3host>cc -r myprog.bas
wrote myprog.mb.c
....................................................................................................................................................................................................................................................
Hello, MMBasic World

C:\dl2\pc3host>cat myprog.bas
print "Hello, MMBasic World"


What a world we live in. (MMBasic World)

~
Edited 2026-09-07 04:33 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 650
Posted: 07:09pm 06 Sep 2026
Copy link to clipboard 
Print this post

  lizby said  What a world we live in. (MMBasic World)

I wish it were possible to program the world of TIC-80 in MMBasic.
https://tic80.com/
It understands a variety of scripting languages, but so far it's only unknown about MMBasic.
DISPLAY   240x136 pixels, 16 colors palette.
INPUT     4 gamepads with 8 buttons / mouse / keyboard.
SPRITES   256 8x8 tiles and 256 8x8 sprites.
MAP       240x136 cells, 1920x1088 pixels.
SOUND     4 channels with configurable waveforms.
CODE      64KB of lua, ruby, js, moon, fennel, scheme, squirrel, wren, wasm, janet or python.

https://github.com/nesbox/TIC-80
The TIC-80 community says that with enough determination and skill, you can add support for your favorite programming language to this fantasy computer project.
I like MMBasic and would like to make a couple of demos for the TIC-80 using it too.
Edited 2026-09-07 05:14 by javavi
 
tgerbic
Senior Member

Joined: 25/07/2019
Location: United States
Posts: 123
Posted: 09:19pm 06 Sep 2026
Copy link to clipboard 
Print this post

Can reach it now. Charter/Spectrum is in the middle of a network upgrade in my area. Maybe a DNS problem.
 
gadgetjack
Senior Member

Joined: 15/07/2016
Location: United States
Posts: 247
Posted: 10:45pm 06 Sep 2026
Copy link to clipboard 
Print this post

I have tried it on a few programs and games. It works on picovaders but chokes on frogger and gnr. Has problem with redefined character sets and defining "Break".
Pretty cool so far.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6647
Posted: 06:10am 07 Sep 2026
Copy link to clipboard 
Print this post

Windows11 pro
Print Time$ returns UTC instead of local time.


Calculating Pi to 2000 decimal places
MMBdos  688mS to calculate and  62mS to format and print
MMB4W   372mS to calculate and  29mS to format and print
PC3host 126mS to calculate and 105mS to format and print.

All 3 use similar CPU time when running in a DO : LOOP UNTIL Inkey$ <>""

Jim
Edited 2026-09-07 17:24 by TassyJim
VK7JH
MMedit
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 08:05am 07 Sep 2026
Copy link to clipboard 
Print this post

  Quote  It works on picovaders but chokes on frogger and gnr.


There is a basic file picofrog.bas that should work. One gotcha is that the transpiler comments out any basic lines it doesn't understand - could be things like "WII NUNCHUCK OPEN". Normally this is OK, however, if it forms part of a block structure then commenting it out can break the program logic causing various C compilation errors. In this case the program needs editing properly before running CC.
 
darthvader
Senior Member

Joined: 31/01/2020
Location: France
Posts: 108
Posted: 09:23am 08 Sep 2026
Copy link to clipboard 
Print this post

It's very fast  

pc3bench
                                   this machine     reference
round trip (GETPIXEL)              13.0 us      27 us
interpreter, 2M adds              131 ms       (about 130 ms)
FRAMEBUFFER COPY F, N              13.1 us      51 us
FRAMEBUFFER COPY F, N, B           16.86 ms   16.80 ms (one frame)
INKEY$ with nothing pressed        10.8 us      10 us (from a terminal)
BOX 90x50 filled                   78.7 us     246 us
TEXT (one crossing each)           21.9 us      72 us
CLS                                26.2 us      74 us
done - paste this with the last line pc3d --verbose prints on exit


Here i use the Alienware m18 R1 , in 3 week when i'm back home i will try on the main PC
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
okwatts
Regular Member

Joined: 27/09/2022
Location: Canada
Posts: 93
Posted: 05:06pm 09 Sep 2026
Copy link to clipboard 
Print this post

I am quite impressed that this is possible and done at all. I particularly appreciate the speed increase from running on a desktop PC and for text oputput etc. this is really great.
One quibble I note in using this with Ubuntu26.04 on WSL is that the graphics don't always show up on the first run and if the window is moved then they are not redrawn (gfx1.bas) or move with the window. As well the Window that appears is much larger than the resolution specified (nominal 320x240) and the header says mode 7 while the text on screen says mode 2. It is possible that there is an issue in my setup but using the emulator for Micropython this has not been a problem. Perhaps this is just early days or my setup (and understanding) is lacking but I thought I would raise the issue.
Thanks for this and looking forward to future development.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 11:07am 03 Dec 2026
Copy link to clipboard 
Print this post

pc3host 0.11.1: the Pico Computer 3's BASIC on a PC

3 December 2026. Compared with 0.8.0, the last version announced on the Back Shed. 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.10.0 and 0.11.0 were released on GitHub without a word on the forum: what they brought is here, with what has come since. 0.11.1 is 0.11.0 with the Windows installer fixed.

pc3host is the Pico Computer 3's own toolchain, built from the machine's own sources, running on a Linux or Windows PC: the BASIC translator, the C compiler, the bytecode runtime and the editor. Programs run in a window that is the PC3's screen, keyboard and sound, drawn by the PC3 kernel's own display code. A program that runs here runs on the board. Please report problems in this thread.

The packages are at https://github.com/UKTailwind/pc3host/releases/tag/v0.11.1 : pc3host_0.11.1_amd64.deb for Debian, Ubuntu, Mint and their kin, and pc3host-0.11.1-win64.zip for Windows 10 or later.

0.11.1 brings:

• The picture on the first run, and after the window is moved. Under WSL the window could stay black or half drawn (okwatts' report). It is now given its picture again every quarter of a second.
• pc3.cmd works. Run on its own it failed with ") was unexpected at this time" for everyone, homa's ") kann syntaktisch an dieser Stelle nicht verarbeitet werden".
• install.cmd replaces an older pc3host, wherever that one was unpacked, and leaves the rest of the PATH as it found it.
• TIME$ is the local time, not UTC (TassyJim's report).
• The translator follows the PicoMite to V8: threads, the raster commands, the VGA and HDMI PicoMite's framebuffers and layers, and the language changes of V7.
• A PC's memory and MODE 3: the board's limits are gone where a PC has no need of them, and MODE 3 is the PicoMite's 640x480 in sixteen colours. MMbg, Matthias Hollatz's backgammon program, plays itself.
• A PC's own serial ports, through OPEN "COM3:..." on Windows and OPEN "/dev/ttyUSB0:..." on Linux.
• LOAD PNG on Linux, which never worked, progressive JPEGs, SAVE PNG and the Print Screen key.
• Programs that use ON ERROR run at full speed again.
• mmbedit keeps a paste, and colours V8's keywords.


Before you update
On Linux, install over the top:

sudo dpkg -i pc3host_0.11.1_amd64.deb


The package stops the old display server, and the next program starts the new one.

On Windows, close any PC3 window first: the display server outlives the program that opened it. Then unpack the new zip anywhere, run its install.cmd, and open a new command prompt. install.cmd takes an older pc3host's folder off the PATH as it puts its own on, and says so; the old folder can then be deleted.

Your programs: a .bc built by an earlier version still runs (one built by 0.8.0 and one by 0.10.0 were tried). Build it again from its .bas to have this version's translator and runtime, which is where most of what follows is.


What is new
The window
• The picture is drawn again when it is lost. A frame drawn before the desktop had shown the window was lost, and so was one a window lost when it was uncovered, and nothing drew either again: a program that draws once and stops, such as gfx1.bas, could leave the window black or half drawn until something else drew. An idle window is now given its picture again every quarter of a second.
• The title says what a program draws in: "320x240, 16 colours", not "MODE 7", which was the display's own number for MMBasic's MODE 2.
• PC3_SCALE (1 to 4) sets the window's size. The window is the picture the board sends its monitor, 640x480, shown at twice that on a PC, so MODE 2's 320x240 fills a 1280x960 window. Set PC3_SCALE=1 before the first program runs for the monitor's own size.
• The sound starts at a quarter of full scale. A program's PLAY is full scale, which suits a PicoMite's small speaker and not a PC's. Ctrl+Alt+Up and Ctrl+Alt+Down change it in steps of 5, the title shows the level for two seconds, and PC3_VOLUME sets where it starts. The program never sees those keys.

The translator follows the PicoMite to V8
0.9.0 brought the translator up to the PicoMite's V7, and 0.11.0 to V8:

• Threads: THREAD START and the rest of V8's threads. INPUT lets the other threads run while it waits.
• The raster commands: FRAMEBUFFER WARPH, WARPV, AFFINE and SPAN, BLIT RESIZE, MATH CLAMP, and MATH SCALE and ADD between float and integer arrays. The PicoMite's own warp_demo.bas, warp_test.bas and affine_test.bas run unchanged.
• The VGA and HDMI PicoMite's framebuffers: F, L, framebuffer 2 and the top layer T, shown live as that firmware shows them, T over L over the screen. A program that MERGEs its layer gets the TFT behaviour instead.
• MM.INFO(WRITEBUFF) is a real address: PEEK, POKE and MEMORY COPY reach the pixels, which are in the PicoMite's order. PIXEL() reads MMBasic's fixed colours whatever MAP has done.
• More of the PicoMite's programs: OPTION PICOMITE, LIBRARY LOAD, whole-array assignment a() = b(), MM.INFO(HEAP), RESOLUTION 640, MM.INFO(PIN n), DefineFont 1 to 16, DRAW3D, DIR$ with a directory, MEMORY COPY and SET, #INCLUDE and #DEFINE, RESTORE with an expression, TIME$ = n, a FOR or DO inside a single-line IF, a command's name used as a variable, and LOAD DATA and SAVE DATA. Arrays and TYPEs are laid out as MMBasic lays them out, so PEEK(INTEGER) and MEMORY COPY INTEGER find an array where the firmware would. Elite's demonstration shows its title picture, Picanoid reaches its title screen, and picofrog translates.
• MM.VER answers 8.000005, the PicoMite version the translator follows.
• What it does not translate it lists by name and comments out, and the translation carries on: DEVICE(WII ...), say, or a RUN at the end of a program.

A PC's memory, and MODE 3
The toolchain used to keep the board's limits even where a PC has no use for them. Now a program may have more than 128 arrays and strings and need more than the board's 1,024 compiler symbols or 32K string table; its heap is 64MB; and a statement may hold 256 strings at once. MODE 3 is the PicoMite's 640x480 in sixteen colours, as on a PicoMite with HDMI, and FRAMEBUFFER, BLIT, flood fill and TILEMAP reach its whole screen. Between them they run MMbg, a 5,500-line backgammon program with neural-net players, which loads its nets in a few milliseconds and plays itself:

cc mmbg_pc3.bas
bcrun mmbg_pc3.bc


(At its "(h)elp >" prompt, C then 2, each followed by Enter. Its bgext.ini sends its log to b:/mmbg/log/: here B:/ is the current folder, so set logdir=log/ and make that folder beside the program.) A program that relies on any of this runs here and not on the PC3, which has neither the memory nor the room for MODE 3.

Pictures
• LOAD PNG works in the Linux package. It never had: every PNG was a "truncated file". It takes 8-bit RGB, grey and grey with alpha, a crop and offsets, and SPRITE LOADPNG a part of the picture.
• Progressive JPEGs load.
• SAVE PNG is new, and SAVE IMAGE writes the PicoMite's compressed BMPs. V4 and V5 BMPs read their colour masks properly.
• OPTION PRINTSCREEN: the Print Screen key saves the screen.
• Sprites: the PicoMite's sprite fixes (SWAP drawn over the stored background, WRITE as a stamp, a sprite's orientation kept through MOVE), and SPRITE(B).
• TILEMAP LOAD passes the PicoMite's own test of it, unchanged.

Sound
• PLAY VOLUME left, right keeps the two sides apart, and a PLAY VOLUME before the first note counts.
• PLAY MODSAMPLE's rate, pan, LOOP, CHANGE and STOP make the same calls to the player as the firmware does.
• MM.INFO(BBC BUFFER), and the BBC note queues are 16 deep, as the PicoMite's.

Serial ports, the web and the disk
• A PC's serial ports, named as the system names them, with LINE INPUT, INPUT$, LOC, EOF, LOF and the receive interrupt. LIST SERIAL PORTS says what the machine has:

OPEN "COM3:115200" AS #1              ' Windows
OPEN "/dev/ttyUSB0:115200" AS #1      ' Linux


• The web server keeps a request that arrives in pieces, and gives a slow reader 5 seconds without progress rather than 5 seconds in all. WEB CONNECT with no arguments rejoins.
• MM.INFO(FREE SPACE) is translated, and MM.INFO(DISK SIZE) answers on Windows, where it was 0.

The editor
• mmbedit keeps a paste. Everything after the first line or so was lost.
• The file's last line keeps its ending, Esc leaves even when a line is too long to save, F9 says why a file did not load, and PgUp in a file one line short of a whole number of screens no longer leaves a blank top row.
• V8's keywords are coloured: THREAD, SQL, ZMODEM and the rest were plain text. The colours also say correctly which keywords the translator takes.

Windows
• pc3.cmd opens its prompt. Run on its own, as it is meant to be, it failed with ") was unexpected at this time" whatever the folder.
• install.cmd works from a folder with a bracket in its name, such as the "pc3host-0.11.1-win64 (1)" a second download makes.
• install.cmd replaces an older pc3host (0.11.1). A new version unpacked beside the old and installed from there went at the end of the PATH, and the old one, still ahead of it, went on being found: the old cc, the old bcrun. install.cmd now takes the other folder off as it puts its own on, and names it. It knows one by its programs, or, if its folder has been deleted since, by its being the folder .bc files ran from.
• The rest of the PATH is left as it was (0.11.1). install.cmd and uninstall.cmd rewrote the whole PATH: an entry written with a variable, such as %USERPROFILE%\AppData\Local\Microsoft\WindowsApps, which a new account's PATH is, came back with the variable expanded. They now change only their own entries. (A PATH that an earlier install.cmd rewrote stays as that one left it, which works the same.)

Fixes
• TIME$ gave UTC (0.8.1). DATE$, TIME$, DATETIME$(), EPOCH() and DAY$ are now the wall clock, as on the board, and the board and a PC give the same EPOCH() for the same moment.
• FORMAT$ with a long text around its specifier overran a buffer; on Linux the program was killed with no output. It now says "String too long" when it is. FORMAT$ also gives exactly the firmware's digits.
• A BBC ENVELOPE with no pitch steps hung the sound engine.
• LOAD PNG refuses a damaged picture instead of reading past its buffer; the MOD and PNG decoders refuse a file that runs past their tables.
• A LOCAL array whose size is worked out when the routine runs is given back on every way out; a SUB called often enough ran out of memory.
• END SUB or END FUNCTION after a ":" or a label ends the routine for the /* */ rule.
• ON KEY k counts only a k that comes while it is armed.


What behaves differently
• TIME$ and the other clock functions give the local time (0.8.1).
• Expressions follow the PicoMite (0.9.0): operators take the firmware's precedence, left to right, so 2^3^2 is 64; NOT and INV bind to the value after them; integer ^ integer is an integer; MAX and MIN return a float; PRINT's comma counts to 8-column stops.
• An error the firmware raises only when a line runs (a GOTO to a missing label, OPTION EXPLICIT's "is not declared") is raised when the translated line runs, so a program that never reaches it never sees it (0.9.0).
• /* */ follows the manual: each must be the first thing on its line and outside any SUB or FUNCTION, and a line that breaks the rule is refused (0.9.1).
• The source is read as LOAD reads it: bytes masked to seven bits, a NUL dropped, a TAB a space (0.9.1).
• Error messages and ON ERROR may differ from the firmware's (0.10.0). The translator is for programs that already run correctly under MMBasic: such a program prints, draws and computes here what it does there. Which message an error gives, which of two bad subscripts is reported, and what a failed statement under ON ERROR SKIP leaves behind may differ. The checks that matched the firmware there had made a program with ON ERROR up to two and a half times slower.
• MM.VER is 8.000005, the PicoMite version the translator follows. 0.9.0 and 0.10.0 gave the Fuzix release, 0.29 and 0.30.
• SAVE IMAGE writes a compressed BMP, as the PicoMite does, where it wrote 24-bit colour.
• The window's title, size setting and starting volume (see The window).


Tested
0.11.1 changes only the Windows installer, so the Linux tests below were made on 0.11.0, whose programs are 0.11.1's; 0.11.1's .deb passed its own test again.

On Linux (Ubuntu 26.04 under WSL2, on the PC the packages were built on):

• The host test suites: all 18 pass, but for the threads timing test below. They cover the translator's 223 test programs, compiled and run against their expected output; the display, sound and keyboard through the display server, with the pictures compared against stored images; the editor through a pseudo-terminal; the network; and the C compiler. Among them is the new check that PC3_SCALE=3 gives a 1920x1440 window.
• The .deb, extracted rather than installed: its compiler, runtime and launcher built and ran the examples against the same images.
• The window under WSL: gfx1.bas run from cold 11 times with 0.10.0's display server drew an incomplete first picture twice, which stayed through a move and a trip off the screen until the window was minimised; 0.11.0's drew the whole picture 10 times in 10. The title read "320x240, 16 colours".
• Old programs: a program built by 0.8.0 and one built by 0.10.0 gave, under 0.11.0's bcrun, what they gave under their own.
• mmbedit's colours, read from its output through a pseudo-terminal: THREAD, LIST, EOF, LOC, LOF, BASE$ and HEX$ in the translatable colour, SQL, ZMODEM and BLUETOOTH in the interpreter-only one.

On Windows 11, from the 0.11.1 zip unpacked:

• The translator's 223 test programs: 223 pass.
• The end-to-end tests: 26 pass. Among them are the pictures against the same stored images as on Linux, the keyboard, the raster and image programs, threads, and PC3_SCALE.
• The network: 12 pass, including a live HTTPS fetch through the Windows certificate store.
• A real window, with PLAY through the PC's sound device: 2 pass.
• The upgrade, with the real installers: 0.11.0 installed from its own unpacked zip by its own install.cmd, then 0.11.1 from another folder by its install.cmd. 0.11.0's folder was taken off the PATH, and a new command prompt's cc and the .bc files' bcrun were 0.11.1's. 0.11.1's uninstall.cmd then left nothing of either.
• The installer with stand-in folders: an entry %USERPROFILE%\... kept as written through an install and an uninstall, the PATH still expandable; an older folder deleted before the install found through the .bc files' handler and taken off. The account's PATH, PATHEXT and .bc settings were saved before each of these tests and are as they were.

On 0.11.0's zip, which differs from 0.11.1's only in the installer:

• selftest.cmd: the eclipse predictor, 3,213 lines, compiled with the shipped compiler and right to the last digit, then the window.
• pc3.cmd opens its prompt with the tools first on its PATH, and runs a command given it whole, ")" and all; install.cmd from a folder named "pctest (1)" reaches its own message where it failed.


Known problems
• SETTICK on a PC is as punctual as the PC. A tick can come a few milliseconds late when the machine is busy, and one is dropped when it stalls for longer than the tick's period, as on the board when a routine runs long. The threads test that wants every 5ms tick within 3ms of its time failed 2 runs in 20 on Linux here, and 1 of the 2 runs of the Windows tests.
• The board's hardware is not here: SETPIN, PIN, I2C, SPI, PWM, the counting inputs and the real-time clock registers answer "not available". WEB SCAN finds no radio, because a PC's network is not the PC3's Wi-Fi.
• CSUBs are not translated: they are PicoMite machine code, and the translator says so ("CSUB is not translated").
• MODE 3 and the larger limits are the PC's alone: a program that uses them does not run on the board.
• Timing differs: frames are paced by a timer, not a monitor, and a graphics statement is a message to the display server where on the board it is a register write. pc3bench.bas measures what each kind of statement costs on the PC in front of you.
• The Windows programs are not signed. Windows asks about them the first time; ticking Unblock in the zip's Properties before unpacking makes it ask less. Smart App Control and Device Guard refuse them outright.
• mmbedit has no automatic test on Windows, where it was tried by hand; on Linux it is tested through a pseudo-terminal.

 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026