Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mxinden/imagetohack
https://github.com/mxinden/imagetohack
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mxinden/imagetohack
- Owner: mxinden
- Created: 2015-05-30T17:06:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-02T12:45:42.000Z (over 9 years ago)
- Last Synced: 2024-10-14T12:32:56.124Z (2 months ago)
- Language: Assembly
- Size: 230 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
###########################################
How to run the ImageToHack Program:
###########################################Call the program with the following parameters: input image file, asm or hack, output file
Examples:
//Testing the implementation with a suitable sized Image (= (256 x 512))
java -jar ImageToHack.jar FullSizeTestImage.png asm FullSizeTestImage.asm
java -jar ImageToHack.jar FullSizeTestImage.png hack FullSizeTestImage.hack//Testing the implementation with too large sized Image (> (256 x 512))
java -jar ImageToHack.jar LargeSizeTestImage.png asm LargeSizeTestImage.asm
java -jar ImageToHack.jar LargeSizeTestImage.png hack LargeSizeTestImage.hack//Testing the implementation with too small sized Image (< (256 x 512))
java -jar ImageToHack.jar SmallSizeTestImage.png asm SmallSizeTestImage.asm
java -jar ImageToHack.jar SmallSizeTestImage.png hack SmallSizeTestImage.hackIf the output file does not exist yet, ImageToHack creates it automatically.
Supported image formats: jpg, png
(Because of the compression in the jpg format there appears to be some wrong placed pixels on the CPU Emulator screen.)The instruction pdf did not clearly stated if an hack or an asm file as an output was demanded ("Hack assembler program", "executed by the CPU emulator without any modifications") so you can do both with this implementation.