werd, p
01-24-2003, 08:43 PM
rather simple goal, print the value of eax in STDOUT, but i don't know how to do it. Just an example would be great, I feel I learn best with examples. by the way, i can print out the classic "hello world", so i don't need any of those examples. Thanks for any help.
bwkaz
01-24-2003, 11:32 PM
Hmm. If you know how to print a string, then what you really need is a way to format an integer into a string. Maybe a look at the printf source would help? Actually, maybe that's not such a smart idea, because it's probably complicated...
Hmm... maybe the equivalent of a for loop that checks each digit (by dividing, then modding by 10), and once it hits a nonzero digit, concatenating each digit onto a temporary string?