flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > print macros for linux |
Author |
|
greco558 26 Aug 2020, 17:38
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 fasm testprint.asm fasm testprint64.asm Maybe someone will find them useful. feel free to use in your programs or cut & paste only what you need. Best Regards John
|
|||||||||||
26 Aug 2020, 17:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.