img2hack: convert images to HACK code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

img2hack: convert images to HACK code

Diogo
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=i8HHfCDsWSE

Here are two sample files created with img2hack: beatles.asm, ramones.asm

Over here you can find the source code: https://github.com/benvenutti/img2hack

And finally, the CPUEmulator running an example:

CPUEmulator running an example from img2hack

Have fun!
Reply | Threaded
Open this post in threaded view
|

Re: img2hack: convert images to HACK code

ybakos
AWESOME