Taking a look at the 8051 code in an LK201 keyboard has been an interesting and educational diversion from the 8051 code in the #VT320 terminal that I’m _really_ interested in. For starters, almost everything about a keyboard is smaller – no external RAM, ROM, NVRAM or DUART, just the inbuilt serial buffer, 4K of code and 128 bytes of RAM. It has provided a way to improve my 8051 emulator from a collection of hacks for one purpose to a more reusable, hookable system. #retrocomputing