dimanche 19 avril 2015

How to call printf in machine language

Let's say we have the assembly code that prints Z to the screen.



pushl $'Z'
call putchar
add $4, %esp


How can we write this in machine language code? I've checked both online resources and this code in gdb, but the former disagrees with the latter and the latter changes each time I run the code. Thank you for your help.


I'm using linux x86. Again, I'd like to say that I want to know how to write this in machine language code.


Aucun commentaire:

Enregistrer un commentaire