as many of you predicted the stack was infact misaligned
Nasm does not seem to accept "equ" constants when aligning as when I replaced
Code: Select all
align STACK_ALIGN
Code: Select all
align 16
I did try the "-mgeneral-regs-only" flag but my implementation of printf requires SSE registers.
I should defiantly change that.
someone should probably update the wiki (I don't know how)
But everything works now!
Thanks for the help everyone!