Uploaded September 2025 | Updated November 2026, 2 days ago
🖥️ CP/M 3.0 on the Commodore 128
Telegram: https://t.me/projectCD_Chronicles
- Included Version: The C128 came with CP/M 3.0, also known as *CP/M Plus*, the most modern implementation for the Zilog Z80 CPU.
- Compatibility: Backward compatible with the widely used CP/M 2.2 and equipped with ADM31/3A terminal emulation.
- Available Software: A wide range of professional programs, including:
- WordStar – word processing
- Multiplan – spreadsheet
- dBase II – database
- Turbo Pascal – programming
- Other popular CP/M applications of the time
- Technical Limitations:
- The C128’s Z80 operated at an effective 2 MHz, although it was designed for 4 MHz, making it slower than other CP/M systems.
- CP/M 3.0 was heavier than 2.2, resulting in lower performance.
- Required a disk drive like the Commodore 1571 to function, increasing the cost for the average user.
- Real-World Use:
- Many buyers used it mainly as an enhanced C64, more for gaming than for CP/M.
- Disk format compatibility across CP/M vendors wasn’t perfect, but the 1571 drive could read some of these formats.
- CPU Communication: In theory, CP/M could communicate at a low level with the MOS 8502 CPU, but this potential was never meaningfully exploited.
BASIC 7.0 – Strings and Shoes
🔍 INSTR
- Type: String function
- Syntax:
basic
INSTR start, string, substring
- Function: Returns the index position of the first occurrence of `substring` within `string`, starting from position `start`.
⚠️ TRAP
- Type: Error handling instruction
- Syntax:
basic
TRAP line_number
- Function: If an error occurs during execution, the program automatically jumps to the specified `line_number` instead of stopping with an error message.
- Example:
basic
TRAP 100
OPEN 1,8,2,"FILE" : REM If error, jump to line 100
🚀 FAST
- Type: System instruction
- Function: Sets the C128’s 8502 CPU to 2 MHz frequency, but only in text mode—not in C64 mode.
- Typical use: Speeding up calculations or operations that don’t require constant video updates.
🐢 SLOW
- Type: System instruction
- Function: Returns the CPU to 1 MHz, necessary when working with graphics or accessing the VIC-IIe chip.
🔄 DO…UNTIL
- Type: Loop control structure
- Syntax:
basic
DO
instructions
LOOP UNTIL condition
- Function: Executes the block of instructions at least once and repeats until the condition becomes true.
- Example:
basic
DO
X = X + 1
LOOP UNTIL X 10
⏳ SLEEP
- Type: Timing instruction
- Syntax:
basic
SLEEP seconds
- Function: Pauses program execution for the specified number of seconds.
- Example:
basic
PRINT "WAITING..."
SLEEP 5
PRINT "WAIT OVER"
Unimplemented Commands
BASIC 7.0 also contains some unimplemented commands: typing `QUIT` or `OFF` results in a `?UNIMPLEMENTED COMMAND ERROR`. These commands are remnants from the BASIC developed for the never-released Commodore LCD—a portable computer with an integrated LCD screen. They were meant to exit the BASIC environment and ignore keyboard input during heavy processing sessions.
#RetroComputing #Commodore128 #BASIC70 #VintageTech #Nostalgia #8bit #HomeComputer
🖥️ CP/M 3.0 on the Commodore 128
Telegram: https://t.me/projectCD_Chronicles
- Included Version: The C128 came with CP/M 3.0, also known as *CP/M Plus*, the most modern implementation for the Zilog Z80 CPU.
- Compatibility: Backward compatible with the widely used CP/M 2.2 and equipped with ADM31/3A terminal emulation.
- Available Software: A wide range of professional programs, including:
- WordStar – word processing
- Multiplan – spreadsheet
- dBase II – database
- Turbo Pascal – programming
- Other popular CP/M applications of the time
- Technical Limitations:
- The C128’s Z80 operated at an effective 2 MHz, although it was designed for 4 MHz, making it slower than other CP/M systems.
- CP/M 3.0 was heavier than 2.2, resulting in lower performance.
- Required a disk drive like the Commodore 1571 to function, increasing the cost for the average user.
- Real-World Use:
- Many buyers used it mainly as an enhanced C64, more for gaming than for CP/M.
- Disk format compatibility across CP/M vendors wasn’t perfect, but the 1571 drive could read some of these formats.
- CPU Communication: In theory, CP/M could communicate at a low level with the MOS 8502 CPU, but this potential was never meaningfully exploited.
BASIC 7.0 – Strings and Shoes
🔍 INSTR
- Type: String function
- Syntax:
basic
INSTR start, string, substring
- Function: Returns the index position of the first occurrence of `substring` within `string`, starting from position `start`.
⚠️ TRAP
- Type: Error handling instruction
- Syntax:
basic
TRAP line_number
- Function: If an error occurs during execution, the program automatically jumps to the specified `line_number` instead of stopping with an error message.
- Example:
basic
TRAP 100
OPEN 1,8,2,"FILE" : REM If error, jump to line 100
🚀 FAST
- Type: System instruction
- Function: Sets the C128’s 8502 CPU to 2 MHz frequency, but only in text mode—not in C64 mode.
- Typical use: Speeding up calculations or operations that don’t require constant video updates.
🐢 SLOW
- Type: System instruction
- Function: Returns the CPU to 1 MHz, necessary when working with graphics or accessing the VIC-IIe chip.
🔄 DO…UNTIL
- Type: Loop control structure
- Syntax:
basic
DO
instructions
LOOP UNTIL condition
- Function: Executes the block of instructions at least once and repeats until the condition becomes true.
- Example:
basic
DO
X = X + 1
LOOP UNTIL X 10
⏳ SLEEP
- Type: Timing instruction
- Syntax:
basic
SLEEP seconds
- Function: Pauses program execution for the specified number of seconds.
- Example:
basic
PRINT "WAITING..."
SLEEP 5
PRINT "WAIT OVER"
Unimplemented Commands
BASIC 7.0 also contains some unimplemented commands: typing `QUIT` or `OFF` results in a `?UNIMPLEMENTED COMMAND ERROR`. These commands are remnants from the BASIC developed for the never-released Commodore LCD—a portable computer with an integrated LCD screen. They were meant to exit the BASIC environment and ignore keyboard input during heavy processing sessions.
#RetroComputing #Commodore128 #BASIC70 #VintageTech #Nostalgia #8bit #HomeComputer




![📟CrustyBASIC:💾 il compilatore BASIC moderno per sistemi 8‑bit 🕹️
Crusty Basic
CrustyBASIC è un cross‑compiler BASIC scritto in Rust, progettato per convertire programmi BASIC in codice macchina nativo per computer e console degli anni ’80.
Obiettivo: velocizzare l’esecuzione rispetto agli interpreti BASIC originali.
Funziona su Windows, macOS e Linux.
🖥️ Piattaforme supportate
CrustyBASIC può generare codice per una vasta gamma di sistemi retro:
- Apple: ][+, //c, //e
- Atari: 400/800/XL/XE, 5200, 2600
- Commodore: C64, C64u, 128, Plus/4, VIC‑20
- Tandy/Radio Shack: CoCo 1, 2, 3
- PC MS‑DOS: 16‑bit
- Windows: 64‑bit GDI e console, da XP a Win11
- Nintendo NES
⚙️ Funzionamento
CrustyBASIC:
- prende file .cbs Crusty BASIC Source
- li compila in assembly o direttamente in eseguibili per la piattaforma target
- può integrarsi con assemblatori esterni es. vasm per generare file .prg, .nes, .bin ecc.
📚 Documentazione disponibile
Il progetto include:
- Usage guide: comandi, target, dialetti BASIC, assemblatori, esempi
- Language reference: sintassi del linguaggio
- API reference: runtime portabile grafica, suono, input, capacità hardware
- Target documentation: note specifiche per ogni macchina supportata
CrustyBASIC è un tool moderno per sviluppare software retro, permettendo di scrivere in BASIC ma ottenere codice nativo veloce, con supporto per moltissime piattaforme storiche e una documentazione completa.
itch.io : https://telengard.itch.io/crustybasic
github : https://github.com/bsturk/crustybasic
vasm : http://www.compilers.de/vasm.html
nasm : https://www.nasm.us/pub/nasm/releasebuilds/3.02/win64/
#CrustyBASIC #RetroComputing #BASICCompiler #RustLang #C64Dev #AppleII #AtariXL #VIC20 #NESDev #RetroCoding #CrossCompiler #HomebrewDev #8bitDevelopment #RetroTech #CodingVintage 📟CrustyBASIC:💾 il compilatore BASIC moderno per sistemi 8‑bit 🕹️](https://i.ytimg.com/vi/Q6EUYB8XP7k/mqdefault.jpg)



![🚀 Programma Giochi 8-Bit nel Browser! Nuovo IDE Retro con C64, VIC-20 e BBC Micro ... 🕹 !!!
🕹️ IDE di Programmazione Retro Online: novità per BBC Micro, C64 e Vic 20!
Benvenuti nel mondo di RetroGameCoders IDE: un ambiente di sviluppo web per programmare giochi e demo su sistemi a 8 bit, direttamente dal browser. Dopo mesi di lavoro, è finalmente pronto per essere condiviso!
🚀 Novità principali
- Programmazione in C per BBC Micro con compilatore CC65 online
- Supporto Vic 20 in C, sempre via CC65
- Editor moderno per C e BASIC su C64, integrato con l’emulatore Vice64 nel browser
🔧 Avvia l’IDE
Supporta:
- C64 BASIC
- Vic 20
- BBC Micro + CC65
🛠️ Dietro le quinte: lo sviluppo dell’IDE
Ho creato un fork personalizzato di [8bitworkshop], un tool per C e Assembly con emulatori integrati. Sebbene sia eccellente, mancavano alcune funzionalità per i miei tutorial. Così ho deciso di espandere:
- Inclusione del Vic 20, il mio primo computer
- Supporto al BBC Micro, icona dell’informatica UK
- Migliorie al BASIC del C64: tokenizer, etichette, niente numeri di linea
🖥️ Piattaforme ed emulatori supportati
- Commodore 64
- VIC-20
- Atari 8-bit
- Apple II
- BBC Micro
- ZX Spectrum
- Amstrad CPC
- NES
- Sega Master System
- ColecoVision
- Z-Machine (narrativa interattiva)
- ...e altri in arrivo!
⚙️ Come funziona
L’editor usa CodeMirror, con evidenziazione della sintassi. Gli emulatori (Z80, 6809, 6502) sono basati su progetti JavaScript come Vice, Chips e JSBeeb. Per il C64, uso il Kernal di Vice, più preciso per le mie demo. I compilatori sono convertiti in WebAssembly tramite Emscripten, così tutto gira localmente nel browser, senza trasferimenti di dati.
📁 Gestione del codice
- Demo e esempi disponibili nei menu
- Il tuo codice è salvato in un file system virtuale nel browser: privato e locale
- Attenzione: la memoria locale può essere cancellata, quindi fai backup manuali
- Ho rimosso l’integrazione GitHub per semplicità e privacy
🔮 Piani futuri
Vorrei che alcune migliorie fossero integrate in 8bitworkshop, ma nel frattempo ecco cosa ho in mente:
- Supporto a Commodore PET, Tandy CoCo, Dragon 32
- Target CP/M
- Sistemi 16-bit: Amiga, Atari ST
- BBC Atom ed Electron
- Compilatore TRSE online
- Editor migliorato per scrittura più fluida
- Nuovi strumenti: editor sprite, caratteri, gestori dischi
❓ FAQ
- Gli emulatori attuali resteranno disponibili
- Bug o richieste? Scrivimi, valuterò se dipende da me o da progetti esterni
- Vuoi aiutare? Condividi il progetto e mandami feedback
⏭️ Prossimi passi
Prova l’IDE così com’è. Presto arriveranno più tutorial, funzionalità e piattaforme!
🔗 [Retro Game Coders – IDE Retro Online](https://retrogamecoders.com/bbc-cc65-c64-vic-20/)
#RetroCoding #C64Forever #VIC20 #BBCMicro #BasicProgramming #CC65 #8BitDev #GameDev #CodeInBrowser #EmulatorMagic #OldSchoolTech #WebIDE #NostalgiaDigitale 🚀 Programma Giochi 8-Bit nel Browser! Nuovo IDE Retro con C64, VIC-20 e BBC Micro ... 🕹 !!!](https://i.ytimg.com/vi/Tf1K-oWiND0/mqdefault.jpg)

