flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > print macros for linux

Author
Thread Post new topic Reply to topic
greco558



Joined: 21 Jul 2016
Posts: 35
greco558
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


Description: fasm testprint.asm
fasm testprint64.asm

Download
Filename: 2020-08-26-print32_64.tar.gz
Filesize: 3.92 KB
Downloaded: 23 Time(s)

Post 26 Aug 2020, 17:38
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.