Twig is a 32-bit protected mode, single-tasking operating system built for educational purposes. It is written in C and x86 Assembly and provides a minimal environment to understand low-level systems programming.
- VGA text-mode interface
- Basic shell with built-in commands:
about,clear,reboot,echo,ls,cat,touch,write,rm,help,meminfo
- Multiboot-compliant bootloader
- GDT and IDT setup
- IRQ remapping and keyboard driver (Scancode Set 0)
- Custom hybrid bump + freelist allocator
alloc()andfree()api- Defined heap using linker symbols
- In-memory file storage
- 32 files, each up to 4KB
- Shell support for viewing, creating, and modifying files
- Custom string and ring buffer implementations
- Minimal kernel runtime (no C stdlib)
- multitasking? Framebuffer graphics? we'll see i guess.
- Cross-compiler:
i686-elf-gcc - QEMU:
qemu-system-i386 - Netwide Assembler (nasm)
make clean
make build
make run