I turn once again to the wisdom of the internet:
I have attached my two files to this post as to not use up a whole lot of space. The program is a mock "assembler" it takes mock assembly code and turns it into a file with hex values that represent the commands.
What I have compiles fine, but when I try to run it against the input.s file attached I get a segfault. Running the program through valgrind, I get 8 entries of "Conditional jump or move depends on uninitialised value(s)" but each say that the "Uninitialised value was created by a stack allocation" so I don't think that there is anything that I can do.
Can someone take a look at my code and tell me where I went wrong?
Edited 6 Years Ago by xcr: n/a