Commit graph

4 commits

Author SHA1 Message Date
c13f25ab08 Bytecode-Compiler, Cpu6809-Emulator, BASIC-Interpreter-Optimierungen
- Expression-Bytecode-Compiler für den BASIC-Interpreter: Ausdrücke
  werden beim Eintippen in ein kompaktes int[]-Bytecode übersetzt und
  per stackalloc-Stack ohne Heap-Allokation ausgewertet
- Variablen-Dictionary durch int[26]-Array ersetzt (A=0…Z=25),
  Bytecode emittiert jetzt direkte 0-basierte Indizes
- GOTO/GOSUB: _lineIndex-Dictionary entfernt, stattdessen
  Array.BinarySearch auf dem sortierten _lines-Array
- Debug-Print in Execute() entfernt
- REG_MODE=0 (Textmodus) bei END und Programmende;
  Ctrl+Pause: Textmodus nur wenn kein Programm lief, sonst Bild stehen lassen
- Cpu6809: vollständiger Motorola-6809-Emulator (alle Opcodes,
  Adressierungsarten, ALU, Stack, SWI-Halt)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 12:26:52 +02:00
45ff3d2ff2 Entkopplung BASIC-Interpreter vom SDL2-Frame-Takt
- InputInterpreter läuft jetzt in eigenem Background-Thread (Vollgas)
- ManualResetEventSlim (_runSignal) blockiert Thread bis RUN aufgerufen wird
- SemaphoreSlim (_inputSignal) ersetzt Busy-Wait bei INPUT
- Stop() und StopThread() entsperren alle Waits sauber vor Join
- _running/_waitingForInput als volatile
- MemoryModel: internes Locking (lock(Lock)) auf allen Read/Write/ReadFlat/WriteFlat
- Lock-Objekt öffentlich für Bulk-Operationen (Renderer)
- MicrononaRenderer: hält Lock für gesamten Frame statt pro ReadFlat-Aufruf

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 07:58:50 +02:00
5cdf17de8c Add NonaBasic interpreter, DiskManager, ScrollLockLed
- Full TinyBasic interpreter (InputInterpreter) with tick-based execution:
  PRINT, LET, IF/THEN, GOTO, GOSUB/RETURN, INPUT, FOR/NEXT, REM,
  END, RUN, LIST, NEW, SAVE, LOAD, POKE/PEEK, POKEX/PEEKX, RND, MOD
- Expression evaluator with hex literals ($xx), operator precedence,
  variables A-Z, and functions (PEEK, PEEKX, RND)
- CTRL+C / CTRL+PAUSE to break running programs
- DiskManager: USB stick detection via netlink, udisksctl mount,
  Micronona stick initialization
- ScrollLockLed: Scroll Lock LED indicates stick presence via sysfs
- ConsoleHelper: ReadLine follows ASCII-31 wrap markers across lines
- udev rule for LED brightness write permissions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 07:50:39 +02:00
e422b5b561 First Commit 2026-04-03 10:49:53 +02:00