0000000003_ ๐ VDOS Step 03 โ Minimal Shell Keyboard Input - MohammadMovi/VDOS GitHub Wiki
๐ VDOS Step 03 โ Minimal Shell + Keyboard Input
๐ Purpose
This step adds the ability for user interaction by:
- Displaying a welcome screen
- Capturing user keystrokes
- Echoing typed characters
๐งฌ Technologies Used
- Real Mode (16-bit x86)
- BIOS interrupts:
int 10h
for screen outputint 16h
for keyboard input
๐ง Instruction Flow
- Start at memory
0x7C00
- Print welcome message using BIOS text output
- Enter a loop to wait for and echo keyboard input
- Continues infinitely like a primitive shell
๐ Instructions to Test
nasm -f bin shell.asm -o shell.img
qemu-system-x86_64 -drive format=raw,file=shell.img
๐งพ Output Example
๐ท Welcome to VDOS Shell
Type anything:
> VDOS is awesome!
๐ What We Learn
- Keyboard I/O at BIOS level
- How primitive OSes accepted user input
- Fundamentals of command shells
โญ Next
โ Add parsing logic
โ Display responses for commands like help
, ver
, clear
โ Prepare for file access