Skip to content

Transforms images ๐Ÿ–ผ into assembly variables ๐Ÿ‘จโ€๐Ÿ’ป which can be used for graphic applications and simple games written in assembly.

License

Notifications You must be signed in to change notification settings

einnhverr/Assembly-From-Image

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

76 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Assembly From Image

Getting started

Transform an image into an assembly variable.

Just drag & drop your PNG file to Serve.exe (or manually run the .py script with the png location as an argument) and you'll get a file containing the declaration of an assembly compatible variable.

image

Customization can be added if you run the application. A small interface with features like: selecting input/output location, selecting a variable name.

An input directory can be selected to convert all the images inside it. The directory input has priority over the file input in the case both are selected. Additionally, the directory should only contain image files.

image

Example project

The generated output is an .inc file which can be imported in any Assembly x86 code. For example, this could be used by a library with the capability to draw a canvas to show an image:

example output

Attention

Because of the limitation of the statement definition length, the generated .inc file will split the variable in multiple ones in case an image exceeds the horizontal length of 48px.

โœจ More features on the way โœจ

About

Transforms images ๐Ÿ–ผ into assembly variables ๐Ÿ‘จโ€๐Ÿ’ป which can be used for graphic applications and simple games written in assembly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.4%
  • Assembly 16.6%