Generate assembly code from image.
Inspired by REpsych.
Install python library.
pip install toml
pip install opencv-python
Generate assembly code.
python img2asm.py cat.png
Then Native.asm
is generated.
- The Native.asm file can be built by incorporating it into a
Visual Studio, x64
project. - Project RightClick->Build Dependencies->Build Customizations->
masm
- Project RightClick->Properties->Linker->System->Enable Large Addresses->
No (/LARGEADDRESSAWARE:NO)
- Native.asm RightClick->Properties->Item Type->
Microsoft Macro Assembler
- Build
Have fun!!