Sounds like the mighty Sinclair ZX-81!
Loved that little Z80 beast!
ZX-80, actually. Programmed that thing to the limits, which were extremely narrow. Learned a lot trying to cram program, OS, and video into just 1024 bytes. Even built a sound card for it, playing music the very hard way.