Message board for the users of flat assembler.
> Tutorials and Examples > print macros for linux
I pulled together my procedures that i use to convert binary to printable ascii characters in hex, decimal and 1's and 0's and made macros to make using them easier.
I got tired of cutting and pasting the procedures into my programs so now I
can just use an include 'printIt.asm' and use the macros.
I made a 32bit printIt.asm and 64bit printIt64.asm that has macros
print_hex value to convert & print, size=_BYTE _WORD _DWORD _QWORD
print_dec value to convert & print
print_bin value to convert & print, size=_BYTE _WORD _DWORD _QWORD
print string address, size of string
You can test it out and see usage by assembling the test programs: 32bit and 64bit
Maybe someone will find them useful.
feel free to use in your programs or cut & paste only what you need.
|26 Aug 2020, 17:38||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.