Example of memory address decode and simple LED and switch interfacing for programmed I/O (PIO) using a microprocessor.