user48998 Published in September 20, 2018, 10:22 pm
I'm using NASM, IA-32 (I think). The homework is to take ASCII from a .txt file and print it to the console in hexadecimal using linux shell input redirection. I think I've got the ascii to hex part figured out, but I'm having a hard time making it print the console correctly. I'm sure I'm just missing something small and silly. The file I'm reading just to test is something simple like this:
The output should be:
41 42 43 0A 31 20 32 20 33 20
The problem is happening in
I've tried changing more stuff around than I can fit in this post, and I can't figure out where I'm going wrong.
The only output I'm getting is:
41 42 43
The second part of the problem is that I need to be able to change how many hex bytes are shown per line in the console, but I can't start to tackle that until I get the first problem solved. Any nudge in the right direction would be appreciated!
linux assembly x86 nasm
share|improve this question
edited Feb 14 at 0:13
asked Feb 14 at 0:06
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
Browse other questions tagged linux assembly x86 nasm or ask your own question.