Designer can modify the 8225 (use mode 0 only)or directly use it if don't care gate count, hook up GPIO in low speed bus(for example, ISA bus) in your chip.
Use gpio as debug tool, designer can add an 8 segment LED display to let software easilier debugging. It can show differnet number on it to identify what stage the software has excuted.