So I’m trying to write an assembly program that displays the hex address of the command line arguments followed by the command line argument itself eg
0x01234567: command line argument 1
I’ve loaded the address of the string into a register, and I’m trying to put it into a buffer to convert it from hex to text so it displays properly in the terminal.
If I do the following to load the address of the first string into ebx,
lea ebx,[ArgPtrs+edi*4]
is there a way to move that value into a buffer?
Figured it out, it was just some assembly growing pains and poor syntax.
What I had initially was this-
Just needed to add on the dword to the mov instruction to make it a legal instruction..