This project is a small desktop program that converts image files to HACK assembly files. The assembly file is to be run on a HACK simulator/computer, where the code will output the original image to its screen. Since the HACK screen has only two possible values for each pixel, it can basically output binary images to it. So once you load an image to img2hack, the program will give you the possibility to fine-tune the conversion from non-binary to binary image over a graphical user interface (GUI).
Check this video to see img2hack operating:
https://www.youtube.com/watch?v=i8HHfCDsWSEHere are two sample files created with img2hack:
beatles.asm,
ramones.asmOver here you can find the source code:
https://github.com/benvenutti/img2hackAnd finally, the CPUEmulator running an example:
Have fun!