Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Assembly

Name: Anonymous 2011-04-25 15:40

Hey /prog/, I am learning Pentium Assembly on linux, using nasm assembler. I've been having trouble with the stack operations. Could somebody explain how I can simply push 4 integers(hex/dec) onto the stack, and then later pop them off? I get some really weird messages when I try to do this.

Thanks a lot.

Name: OP 2011-04-25 18:59

Hmm, I ended up figuring it out, thanks guys. Right now I'm trying to use the stack to convert from hex to decimal. Let's say I have the hex value: 2B3A. I first take each character, starting from the left, and push it on the stack. So if I had 2B3A, I would end up with this:

ESP -> 10
3
11
2

I'm trying to figure a good way to convert this to decimal

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List