Problems with accessing command line arguments in linux from x86 asm

view full story

http://stackoverflow.com – I have a basic asm program that checks if a string is a digit. I was adding in code to read from command line arguements, put it keeps seg faulting. if what I have read is right, this should get the amount of arguments passed to the program, which should be stored in 0(%ebp). What am i doing wrong? The entirity of the code can be found here: http://pastebin.com/kGV2Mxx4 The problem is the first 3-5 lines of _start. upon Looking at lscpu's output, I have an i868 cpu. Although, it says it can operate in 32-bit and 64-bit. I am running 32 bit linux (Arch linux x86) I fixed the issue. I did 2 (HowTos)