In this video, we explore how peripherals like the keyboard and display are mapped directly into memory using Memory-Mapped I/O (MMIO) in MIPS. You’ll learn how to read and write to specific memory addresses to interact with hardware — no system calls required.
We’ll walk through a fully commented MIPS assembly program that continuously reads characters from the Keyboard MMIO registers and displays them instantly using the Display MMIO registers in the MARS simulator.
By the end, you’ll understand:
How MIPS maps peripherals to specific memory regions
How the CPU uses lw and sw to communicate with devices
How to use the Keyboard and Display MMIO Simulator in MARS
Perfect for anyone studying MIPS I/O, computer architecture, or embedded systems.
📘 Key Topics Covered:
Memory-Mapped I/O (MMIO) fundamentals
MARS I/O register addresses and functions
Polling the keyboard and display control registers
Real-time input/output demonstration in MIPS
Source Code
https://gist.github.com/KCtops6/e27cf...