https://gitlab.com/osen/openbsd_drmfb_gnuboy
don't know your level of programming expertise but this emulator uses the framebuffer and openbsd, might learn something from the code how to go about it.
maybe try putting a single pixel on the screen then go from there.