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 output
    • int 16h for keyboard input

๐Ÿง  Instruction Flow

  1. Start at memory 0x7C00
  2. Print welcome message using BIOS text output
  3. Enter a loop to wait for and echo keyboard input
  4. 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