mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-11-26 05:52:59 +01:00
a
This commit is contained in:
1 parent
472df35261
commit
96cd1ac97d
21 files changed
+11805
-3954
No files matched your search
+60
-1
@@ -24,6 +24,10 @@ captured for assertions; no guest examples print hello world.
|
||||
| File copy/rename/delete | `kernel/files.c` | `file_management` checks text and native programs, destination collision protection, full storage, slot reuse, names and malformed arguments |
|
||||
| Compile and run workflow | `kernel/compiler.c`, `kernel/shell.c` | `compile_workflow` checks default/explicit outputs, source preservation, line diagnostics and no stale execution on errors |
|
||||
| Startup/help/editor usability | `main.c`, `kernel/kernel.c`, `kernel/shell.c` | `usability` boots via --os, runs bob.c, exercises per-command help, unsaved quit protection, explicit discard, line navigation and undo/redo |
|
||||
| Persistent files | `storage.c`, trap 7, `kernel/files.c` | `persistence` checks explicit replacement, restart with text/programs, BASM/binary identity, checksum/metadata/truncation rejection with RAM preservation, changed-kernel text recovery, unavailable storage and program denial |
|
||||
| Shell editing/history/completion | `kernel/input.c`, traps 8/9 | `shell_editing` feeds key sequences for history limits/drafts, cursor edits, deletion, unique/ambiguous completion and overlong input recovery; redirected output has no redraw |
|
||||
| Native Windows console | `tests/test_console.c` | 16 checks use a hidden, test-owned console and real Windows key events to verify redraw, cursor edits, recall, completion, narrow width, maximum input and recovery after truncation |
|
||||
| Number/storage feedback | `kernel/shell.c`, `kernel/files.c` | `shell_editing` checks unsigned decimal addresses/values, overflow rejection, invalid sizes and used-slot totals |
|
||||
|
||||
`basm_route` additionally starts the supplied emulator at its ordinary filename
|
||||
prompt, passes `kernel.basm`, compiles/runs bob.c and checks return to the shell.
|
||||
@@ -32,4 +36,59 @@ binary images and verifies rejection before boot.
|
||||
|
||||
These checks establish this starter's functionality, not conformance to all of C
|
||||
or isolation between processes. The resident compiler is a documented subset;
|
||||
RAM storage is volatile, allocation has no free, and multitasking is absent.
|
||||
Files are volatile until save, allocation has no free, and multitasking is absent.
|
||||
|
||||
## UX goal completion audit
|
||||
|
||||
Final delivery was rebuilt with `build.exe --test`: 231 regression assertions
|
||||
and 28 real Windows console assertions pass on the delivered `bob.exe`.
|
||||
The generated kernel is 36,009 words at `0x0300`, ending below `0x9000`.
|
||||
|
||||
| Goal requirement | Verified evidence |
|
||||
| --- | --- |
|
||||
| 1. Simple startup/welcome | `usability` boots --os; `basm_route` boots kernel.basm through the original prompt; welcome offers help/go |
|
||||
| 2. History/editing/completion/prompts | `shell_editing` and `test_console.c` verify four-entry recall, drafts, insertion/deletion, cursor movement, unique/ambiguous completion, redirected input, narrow redraw and input limits |
|
||||
| 3. Discoverable help/errors/examples | Help lists commands and keys; command_help covers every shell command; `usability` exercises help and unknown names; tests cover recovery advice |
|
||||
| 4. Editor navigation/undo/save/discard/loss protection | `editor_and_aliases` and `usability` verify numbered lines, :p N, changes, undo/redo, save, safe :q, explicit :q! and rejected invalid edits; documented EOF behavior |
|
||||
| 5. Files/details/limits | `file_management` verifies copy/rename/delete for text/programs, collision rejection, full-table rename, slot reuse; ls/dir show kinds/lengths/used slots |
|
||||
| 6. C workflow/diagnostics/examples | `compile_workflow` verifies defaults, go, source preservation, first-error line/column and no stale execution; supplied bob.c prints bob! |
|
||||
| 7. Number/address feedback/protection | Signed/raw decimal and hex limits, overflow, protected poke and allocation feedback checked in console/allocator/shell_editing cases |
|
||||
| 8. Persistent save/load | `persistence` verifies save/restore across sessions, storage location override, RAM preservation on failure, binary compatibility and text recovery after kernel change |
|
||||
| 9. EOF/malformed/oversized/fault recovery | Input, editor, compiler, boot-image and program-recovery tests verify bounds/EOF/faults/timeouts while retaining the shell or unrelated files as applicable |
|
||||
| 10. Docs/tutorial | C_OS.md supplies startup, keys, command/editor references, go bob.c and restart/save tutorial; API and this audit describe contracts/limits |
|
||||
| 11. Native verification/delivery/cleanup | Build regenerates bob.exe, C tools, kernel.basm/B16K; complete C suites pass; temporary staged binaries, fixtures and logs removed after verification |
|
||||
|
||||
Interactive shell keys target native Windows console handles. Completion
|
||||
operates at the line end and undo retains one edit. Full C is not claimed.
|
||||
|
||||
## Nano-like editor update
|
||||
|
||||
Interactive `edit` now runs `kernel/nano.c`, with direct typing, two-dimensional
|
||||
cursor movement, scrolling, visible shortcuts, Ctrl+O save, Ctrl+X safe exit,
|
||||
Y/N/Cancel and Ctrl+Z undo/redo. Redirected tests retain the line fallback.
|
||||
The extended native console suite checks multiline insertion/navigation,
|
||||
save/exit, confirmation, cancellation, discard, undo/redo, 511-character limits
|
||||
and full-slot save failure without losing edits. Shared scratch/history were
|
||||
relocated into reserved RAM; all compiler and fallback regression cases still
|
||||
run against the resulting kernel.
|
||||
|
||||
## Host C compiler expansion
|
||||
|
||||
The current OS/compiler regression suite passes 503 checks. New native programs
|
||||
cover multidimensional storage and sizeof, row pointer scaling, nested/partial
|
||||
initializers, character-array rows and static nested address/pointer-array
|
||||
relocations. Negative cases verify malformed or excessive initialization is
|
||||
rejected while preserving earlier output files. These checks cover the host
|
||||
compiler additions; the resident compiler retains its documented smaller subset.
|
||||
The generated kernel remains 36,009 words.
|
||||
|
||||
Array-designator additions bring the regression suite to 543 checks. Tests execute
|
||||
native bob16 programs using selected scalar/row/pointer elements, inferred bounds,
|
||||
continuation and replacement. Malformed and out-of-bounds designators must reject
|
||||
without replacing previously generated BASM or binary files.
|
||||
|
||||
Recursive object/abstract declarators bring the suite to 583 checks. Native tests
|
||||
exercise pointer-to-array parameters/globals/locals, arrays of row pointers,
|
||||
grouped names, casts and sizeof array type names. Rejections verify incomplete
|
||||
pointee sizing/arithmetic, arrays of void, invalid casts and incompatible row
|
||||
pointer declarations. Kernel compilation still produces 36,009 words.
|
||||
Reference in new issue
Block a user