Clearly the error message is wrong as there is a register operand in that line (%esp).
That leads me to believe that there must be an error in your source code. Check it carefully to make sure there are no spaces or hidden characters where there shouldn't be.
I have just cut-and-pasted the source from the wiki and it assembles just fine on my system. (It actually consists of just 5 instructions.)
iansjack wrote:Clearly the error message is wrong as there is a register operand in that line (%esp).
That leads me to believe that there must be an error in your source code. Check it carefully to make sure there are no spaces or hidden characters where there shouldn't be.
I have just cut-and-pasted the source from the wiki and it assembles just fine on my system. (It actually consists of just 5 instructions.)
It does work on my system, too.
My idea was that the GCC was not made correctly.
If you're running Windows, you can use ghost-i686-elf-tools.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
iansjack wrote:Clearly the error message is wrong as there is a register operand in that line (%esp).
That leads me to believe that there must be an error in your source code. Check it carefully to make sure there are no spaces or hidden characters where there shouldn't be.
I have just cut-and-pasted the source from the wiki and it assembles just fine on my system. (It actually consists of just 5 instructions.)
I retyped the code without the comments, it was probably just some commenting whitespace error. Thanks mate!