How moinnuddinnn/monos works
AtariOS is a small sample operating system with a bootloader, kernel, terminal shell, calculator, and disk-backed filesystem. The intended user workflow is to boot into the kernel, use keyboard input to interact with the shell, and issue commands for help, calculation, or file operations. The kernel sets up interrupt handling and the keyboard before initializing the filesystem and shell. The excerpts show shell command dispatch and filesystem-to-disk calls, but do not show a complete keyboard-to-shell input path; that connection is therefore omitted.
Main entry points: kernel.c Kernel startup · shell.c Command shell · fs.c Filesystem · calc.c Calculator
Components 17
Boot and kernel
- Bootloader
boot.asm - Kernel startup
kernel.c
Interrupt input
- IDT setup
idt.c - CPU exceptions
isr.c - IRQ controller
irq.c - Keyboard driver
keyboard.c
Terminal and commands
- Command shell
shell.c - Calculator
calc.c - Input mode
input.c - Terminal console
console.c
Disk filesystem
- Filesystem
fs.c - Disk directory
fs_disk.h
Hardware and utilities
- ATA disk access
ata.c - Port I/O
port_io.c - Reboot control
reboot.c - String utilities
string.c
Other components
- OS user
Connections 25
- Kernel startup → Terminal console: initializes and prints
kernel.c - Kernel startup → IDT setup: installs
kernel.c - Kernel startup → CPU exceptions: installs
kernel.c - Kernel startup → IRQ controller: installs
kernel.c - Kernel startup → Keyboard driver: installs
kernel.c - Kernel startup → Input mode: sets mode
kernel.c - Kernel startup → Filesystem: initializes
kernel.c - Kernel startup → Command shell: starts
kernel.c - IRQ controller → IDT setup: sets IRQ gates
irq.c - IRQ controller → CPU exceptions: uses registers
- Keyboard driver → IRQ controller: registers handler
keyboard.c - Command shell → Terminal console: prints output
shell.c - Command shell → Calculator: opens calculator
shell.c - Command shell → Filesystem: runs file commands
shell.c - Command shell → Reboot control: reboots system
shell.c - Filesystem → ATA disk access: reads and writes sectors
fs.c - Filesystem → Disk directory: uses entries
fs.c - Filesystem → Terminal console: prints file list
fs.c - Filesystem → String utilities: uses string operations
fs.c - ATA disk access → Port I/O: uses port access
ata.c - Calculator → Terminal console: prints results
calc.c - Calculator → Input mode: uses input mode
calc.c - Calculator → String utilities: uses string operations
calc.c - OS user → Bootloader: boots OS
README.md - OS user → Command shell: issues commands
shell.c