So when I take an argument off the stack it seems that is in the form of a string, is there a way i can convert it to a integer so i can "cmp" it with another argument which i also wish to convert to an int? I am a newbie to ASM but i do realize this isn't going to be as easy as it is in higher level languages. Any help?
ov3rcl0ck
25
Junior Poster
Recommended Answers
Jump to PostSo when I take an argument off the stack it seems that is in the form of a string, is there a way i can convert it to a integer so i can "cmp" it with another argument which i also wish to convert to an int? I am a …
Jump to PostRight away I have to ask, are you popping the program's arguments off the stack? If you are then the values are pointers to strings and not the the strings themselves
Jump to PostWell your heading in the right direction, maybe a little ahead of yourself right now. Can you pop off a string pointer value from the stack and display it using the write system call?
All 9 Replies
gerard4143
371
Nearly a Posting Maven
ov3rcl0ck
25
Junior Poster
gerard4143
371
Nearly a Posting Maven
ov3rcl0ck
25
Junior Poster
gerard4143
371
Nearly a Posting Maven
gerard4143
371
Nearly a Posting Maven
ov3rcl0ck
25
Junior Poster
gerard4143
371
Nearly a Posting Maven
ov3rcl0ck
25
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.