tests¶
bus-tester-scripts/—CMD:OPERAND#scripts for the Bus Test Card (sent byembedded/command-sender/ortools/busdrv.py):ALU/*.new(2020 signal names),IO/,Index Register/,Memory Card Tests/,Gen Test Vectors/(C program that generates vector scripts),ramtest.logicsettings(Saleae Logic capture setup).deprecated/gen1-2016/= the 2016 gen-1 scripts in the OLD signal names (RESET, ALU-FUNC, RD-AC, WDATA…) plusfix, the sed converter that produced the.newfiles;deprecated/address-register-2020-07/= tests for the retired card.assembler/—yacc1test.asm, the CPU test program (2020-10-31), its 15 dated 2020 snapshots, a 2026 run log;ledcount/(the 16-byte switch-ROM LED counter);brur/(the BRUR $AD test,ABC0123on the emulator, 2026-09-22).memory/—rom_verify.py(~30 s): every ROM byte against the image assembled frombasic.img+monitor.img;memory_status.py(~1 min): boot remap, every ROM byte againstbasic.img+monitor.img(what the emulator loads;tools/romimage.py), low RAM spots, and a classification of every 4K block above $8000 (RAM / ROM / video / undecoded).memory_full_test.py(~16 min with the blocks-1 bus-tester firmware): ROM, address lines, two full RAM patterns over $0000-$CFFF written then verified in separate sweeps, the video RAM, ROM again. Logs beside them: 2026-09-21 all RAM cells good, ROM = sources, video RAM good.cf_test.py: the memory card v2.0's CF section through P8/P9 (reset, registers, 8-bit mode, IDENTIFY, sector 0;--quickseconds, the whole ~10 min;--holdholds a status read for the meter). 2026-11-03: ALL PASS, a TDK 125 MB card.sequencer/— run-mode boot transcripts of the sequencer-memory ATmega (2026-09-21): the clobbered copy with -BUS-EN asserted, the clean copy with the bus quiet, and the Sequencer4 boot (16 s copy, 29 s verify, RAM == EEPROM).video/—video_ram_test.py, the video card's display-RAM test over the bus tester (patterns, inverse, neighbour isolation, the block-0/9 write-through check, read stability); 8/8 on 2026-09-21 after the +5V/VCC join.gate.py(2026-10-11, inmake check): the card at gate level (y1ucemu -G) against the behavioural model, byte for byte with 0 bus events, and without each bench rework (the RS fix, the +5V wire) the faults they fixed.v40_netsim.py(2026-11-12, inmake check): the video card V4's netlist run as a circuit, every part a model with its data-sheet delays at both ends of their ranges (the simulatornetsim.py), against a model of the 6845 and of the microcode's strobes;bus_records.py(inmake check) checks in test.hex that the microcode drives the bus as that model does.docs/cards/video-v4.mdsections 5 and 7.basic/—test, a small BASIC program (LET/FOR loops) used to exercise the interpreter.io/rtc/— the I/O card V1.2's clock chip, a DS12885, in both emulators (2026-11-20, inmake check; no hardware: the card is designed, not built).run.pybuilds and runsmodel_test.c, the modelsoftware/rtcmodel.hon its own (the registers in binary and BCD, 12- and 24-hour, the calendar, UIP, SET and the oscillator's bits, the RAM, register C's flags, the chip on the host's clock), thenrtc.asmthrough the monitor on the instruction-level and the microcode emulator withY1IO_CARD=v1.2and a fixedY1RTC_TIME: a YACC1 program finds the chip on ports 6 and 7, reads it, sets it across the end of 2099 and waits for seconds to pass; both emulators must print the same. The same program with no card named finds no chip: the V1.1 card of the machine has nothing on those ports.compiler/— the C compiler's test programs (*.c+ expected.out/.in/.err) andrun.py, which compiles each withsoftware/compiler/y1cc.py --boot, assembles it and runs it onemulator -x;--oracleregenerates the expectations with the host C compiler throughhost_shim.h. 15/15 on 2026-09-22 (switch.c also compiled with--no-bruras switchnb.c);make cc-test. 22 programs since 2026-09-24 (the recursion testsrfact rmutual rlocals rcalc, errorsrecurse rmain adjstr). Beside it:corpus.py(every C program the tree compiles, with its options),diffcheck.py(an old y1cc.py from git against the working one over the corpus: identical assembly),twin.py(y1cc.py against its C twinsoftware/compiler/c/y1cc, also--16;--chain/--chain16against the multi-pass compilery1ccp, cc1..cc9),twinfuzz.py(random subset programs and 60 invalid ones through both compilers;--chaintoo),passes.py(each pass of the multi-pass compiler against the Y1/OS program area: image, tables, measured stack; the corpus through the passes with their Y1/OS table sizes). Since 2026-09-24run.py,twin.py,twinfuzz.py,passes.pyand../ucemu/run.pytake--xisa(every compile with y1cc's--xisa: the LDZ/STZ page, ADDIW, SHL16),xisa.c(// y1cc: --xisa) is the 23rd program, anddiffcheck.pyproves the default output unchanged.os/— Y1/OS:run.pybuildsos/disk.img, boots it on both emulators with the console scriptbasic.sessionafter the monitor'sOcommand, and diffs the transcripts (basic.int.out,basic.uc.out; the latter shows the monitor's input echo).make os-test.NOXISA=1 python3 tests/os/run.pyruns the same sessions with every/binprogram built by y1cc--no-xisa(make -C os NOXISA=1;--xisais the default since 2026-10-04); the program sizesls/loadprint are masked.ucemu/hold.py— the hold-step pass of the microcode generator removed only what the hardware does not need (2026-11-06,docs/system/MICROCODE.md5.8), judged with its own copy of the rules against the-DKEEPHOLDimage.native/— the toolchain under Y1/OS:run.py(native compile),selfhost.py,srcmake.py,mkdisk.py(the system rebuilt onto a new disk),profile.py(where one program's instructions go),clocks.py(2026-11-05: the fast emulator's clocks against the microcode,docs/system/SPEED.md), anderrors.py(2026-11-05:/bin/cc's error messages against y1cc.py's, the one path where a pass reads a second file).asm/— the native assemblers/bin/asmc(asm.c, 2026-09-25) and/bin/asm(asm.asm, in YACC1 assembly, 2026-09-26;run.pyalso runs it under Y1/OS on the instruction-level emulator on the whole corpus and compares its messages and files with asm.c's,--uc27 sources on the microcode emulator too):run.pybuildsos/commands/asm.cfor the Mac against an emulation of the Y1/OS syscalls (host_asm.c,host_sys.c: int = unsigned short, unsigned char) and compares it with the host assembler RC/asm on every source in the tree (the y1cc corpus plain and--xisa, the firmware, the hand-written tests,y1os.asm, andsrc/:quirks.asmwith two INCLUDE levels,longline.asmwith lines of 100 to 254 characters, nine sources both must refuse), as Intel hex and as program files: 357 sources, 0 different (2026-11-11). Before the corpus RC/asm is put at its own limits - a line of 254 characters and one of 255, names of 30 and 40 characters as operands, a label of 30, the cross-reference of a 29-character label: the exit status and the message of each (all but the label ended it on a signal with no message until 2026-11-11); a source RC/asm dies on is a failure, never one "refused by both".run.py --target(target.py,target.session, the transcriptstarget.int.out/target.uc.out) runsasmunder Y1/OS on both emulators - y1cc programs assembled and run, the ROM monitor,isa.asm, compiler pass cc4 - and compares every file it wrote with RC/asm's output.make asm-test; both inmake check.ybasic/— BASIC in assembly against BASIC in C (2026-11-11):run.pyruns each session (expr,prog,files,limits) on a copy of the disk, whose/bin/basicisos/commands-asm/basic.asm, and on a copy with the C BASIC (os/commands/basic.c,/bin/basicc) in its place: the console transcripts must be the same byte for byte and so must the files left behind. Thentests/os/ybasic.sessionwith the C BASIC against the OS tests' expected transcripts on both emulators, and both interpreters counted in instructions on a loop (the assembly one must need under a quarter).--ucruns the sessions on the microcode emulator too. (tests/basic/is the ROM's uBASIC, not this.)disasm/—/bin/disasm(os/commands/disasm.c, 2026-09-29):run.pybuilds it for the Mac (host_disasm.c,host_sys.c: int = unsigned short, OPEN/GETC/CLOSE/ENTRY/SEEK and peek emulated) and round-trips -disasm -s, RC/asm, the same bytes, the listing true to them - over tests/asm's corpus, every program of the OS build, the ROM from memory, random bytes and every opcode + operand byte (382, ~20 s), then START/COUNT ranges and the errors;tools/gen_y1_distab.py --checkfirst. The run on Y1/OS istests/os/disasm.session.make disasm-test; inmake check.ucemu/— the same programs (andassembler/brur) on the MICROCODE-level emulatorsoftware/ucemuwith the monitor ROM loaded (run.py, 14/14 on 2026-09-22,chars.ucout= the expectation with the monitor's input echo), andisa.asm, a differential test of every instruction whose port-2 byte stream must be identical on both emulators (it is, BRDEV aside; since 2026-09-24 it covers LDZ/STZ/ADDIW/SHL16 too, 114 bytes, andtests/benchruns it on the machine).y1dbg/— the debugger (2026-10-11):y1ucemu -D's debug server andsoftware/y1dbgdriven by script - a breakpoint at the monitor'scmdloop, the registers, stepping, the disassembly and trace, the monitor's video driver on the screen (V I,V M1) and poked inverse glyphs, BASIC typed throughkey, a run paused and stopped by a write watch, reset, the-ccommand line, the emulator's exit when the debugger closes or drops the connection - and the curses UI in a pty (its screen pane captured withsnap). Inmake check.y1term/—tools/y1term.py --sendagainst the microcode emulator through a pty (2026-10-08):good.bas(lower case, a tab, a blank line, a#comment, FOR/NEXT) sent with--new --runmust printHello 1 2 3 21;bad.basmust exit 1 naming itsprint !line as SYNTAX ERROR, the other lines stored. Inmake check.kermit/—/bin/kermit(2026-09-26):run.pyboots Y1/OS on both emulators with the console on a pseudo-terminal and runstools/y1kermit.pyagainstkermit -r,-sand-x: text, all 256 byte values, a 70K file, long runs, an empty file, a name to clean; block checks 1-2, 8th-bit prefixing, text mode,-n,-a; damaged, missing and unanswered packets both ways, three Ctrl-Cs; the server's SEND/GET/FINISH. Files compared on the host and on the disk image (p8xfs.py get, fsck); the throughput from the instruction-level emulator's PC histogram;--calibchecksos/kermit_io.asm's timing on the microcode emulator (a timeout second = 1,000,176 clocks, 217 clocks a received character, with the 2026-09-29 microcode). Inmake check(~2.5 minutes).- Hardware findings of 2026-09 (memory-card block map, EPROM identity, video-card write-through) are in the card READMEs.
Last updated 20 November 2026