The app now has a CP/M Terminal feature accessible from the main screen:
- CP/M Terminal button appears in the Document Browser (before selecting any file)
- CP/M Terminal button also appears in the editor toolbar (after opening a file)
Access the terminal anytime using the "CP/M Terminal" button!
┌──────────────────────────────────────────────┐
│ Document Browser [CP/M Terminal] │ ← Navigation Bar
├──────────────────────────────────────────────┤
│ │
│ [+] Create New Document │
│ │
│ My Programs │
│ killthebit.asm │
│ test.asm │
│ │
└──────────────────────────────────────────────┘
┌──────────────────────────────────────────────┐
│ [Documents] [Assemble] [Emulate] [Samples] │
│ [CP/M Terminal] [Done] │ ← Toolbar
└──────────────────────────────────────────────┘
Click "CP/M Terminal" from either location to:
- Load the Interactive Shell program
- Assemble it automatically
- Launch the full-screen terminal
Purpose: Run classic Intel 8080 sample programs with LED blinkenlights visualization
- Mode Selector: Shows "Samples" selected
- Code Editor: Editable assembly code
- Samples Button: Cycles through programs
- Assemble Button: Compiles the code
- Emulate Button: Launches LED emulator
- Kill the Bit - Classic game
- CP/M Echo Test - Simple console I/O test
- CP/M Disk Test - Disk read/write test
- CP/M File Operations Test - File create/read test
- CP/M Directory Operations - Search/rename/delete demo
- CP/M CCP Demo - Automated command demo
- Switch to Samples Mode (if not already)
- Click "Samples" to cycle through programs
- Click "Assemble" to compile
- Click "Emulate" to run with LED visualization
- Watch the blinking LEDs!
- Code editor is white/light background
- Code is editable - modify as you like
- LED emulator shows address bus and data bus
Purpose: Interactive CP/M 2.2 operating system with file system
When you click the "CP/M Terminal" button in the toolbar:
- The Interactive Shell program loads automatically
- Code is assembled automatically
- Terminal launches in full-screen mode
- You can start typing commands immediately
When you enter Terminal Mode, the system creates:
- WELCOME.TXT - Welcome message
- HELP.TXT - Command reference
- README.TXT - System information
-
Click "CP/M Terminal" button in toolbar
- Interactive Shell loads automatically
- Code auto-assembles
- Terminal opens automatically
-
Start typing commands
- Full-screen terminal with green-on-black retro styling
- Keyboard pops up automatically
- Commands are auto-converted to uppercase
-
Try these commands:
A>DIR A>TYPE WELCOME.TXT A>TYPE HELP.TXT A>ERA README.TXT A>EXIT
- Code editor has gray background (read-only)
- Code shows the Interactive Shell program
- Terminal is green-on-black with monospace font
List all files on disk
A>DIR
WELCOME .TXT HELP .TXT README .TXT
Display file contents
A>TYPE WELCOME.TXT
Welcome to CP/M 2.2!
Type DIR to see files.
Delete a file
A>ERA README.TXT
File deleted
Halt the system
A>EXIT
Goodbye!
- Use the "Samples" button to cycle through programs
- Click "Assemble" to compile
- Click "Emulate" to run with LED visualization
- Click "CP/M Terminal" button in toolbar
- Everything happens automatically - just start typing!
- Close terminal with "Close" button to return to samples
Open App
↓
[Edit/View Assembly Code]
↓
Click "Samples" → Cycle through programs
↓
Click "Assemble" → Compile code
↓
Click "Emulate" → LED Emulator opens
Click "CP/M Terminal" button in toolbar
↓
Interactive Shell loads automatically
↓
Code auto-assembles
↓
Terminal appears automatically (full-screen)
↓
Type commands (DIR, TYPE, ERA, EXIT)
↓
Click "Close" to return to editing
┌──────────────────────────────────────────────────┐
│ [Documents] [Assemble] [Emulate] [Samples] │
│ [CP/M Terminal] [Done] │ ← Toolbar
├──────────────────────────────────────────────────┤
│ │
│ ; Kill the Bit │ ← Editable Code
│ org 0h │ (White background)
│ lxi h, 0 │
│ ... │
│ │
├──────────────────────────────────────────────────┤
│ ; Assembled code │ ← Assembly Output
│ 0000: LXI H, 0000 │ (Paper background)
│ ... │
└──────────────────────────────────────────────────┘
┌──────────────────────────────────────┐
│ CP/M Terminal [Close]│
├──────────────────────────────────────┤
│ │
│ CP/M 2.2 Terminal │ ← Full-screen
│ Ready. │ Green text
│ │ Black background
│ A>DIR │
│ WELCOME .TXT HELP .TXT │
│ │
│ A>_ │ ← Cursor
│ │
├──────────────────────────────────────┤
│ [^C] [^Z] [ESC] [Done] │ ← Keyboard toolbar
└──────────────────────────────────────┘
- Auto-uppercase - All input converts to uppercase (CP/M standard)
- Echo - Characters appear as you type
- Backspace - Works correctly
- ^C - Send Control-C (interrupt)
- ^Z - Send Control-Z (EOF)
- ESC - Send Escape
- Done - Hide keyboard
- Close - Exit terminal, return to code view
- Reset - Clear terminal and restart emulator
- Edit freely - Modify the assembly code
- Try different programs - Click Samples to cycle
- Watch the LEDs - See the CPU in action
- Learn 8080 assembly - Great educational tool
- Don't edit code - It's auto-managed
- Use proper filenames - 8.3 format (FILENAME.EXT)
- Commands are uppercase - Type DIR not dir
- Watch debug output - Check Xcode console for system messages
- Mode switched before assembly completed
- Wait a moment and try again
- Or click "Assemble" manually
- Make sure keyboard is visible (tap text area)
- Try the Reset button in navigation bar
- Close and relaunch terminal
- Check you're in Samples Mode
- Code might be corrupted - tap Samples again
- You're in Terminal Mode (intentional)
- Switch to Samples Mode to edit freely
For Sample Programs:
- Use the "Samples" button to browse programs
- Click "Assemble" to compile
- Click "Emulate" to see LED visualization
For Interactive CP/M:
- Click "CP/M Terminal" in toolbar
- Everything loads automatically
- Start typing commands (DIR, TYPE, ERA, EXIT)
Simple, one-button access to CP/M! 🎉