I decided to use an assembler file for startup and then call the main C-function (because of the problems I get, when I want to include my Multibootheader in C).
So I will use NASM. My questions:
1. Where can I get information on the syntax of NASM?
2. Where can I get a good tutorial for programming under Linux using NASM?
NASM for Linux
Re: NASM for Linux
Hi,
You can try the official Website of Nasm for the syntax.
http://nasm.octium.net/
If you need a tutorial, I can send you my multiboot NASM Code.
Roswell
You can try the official Website of Nasm for the syntax.
http://nasm.octium.net/
If you need a tutorial, I can send you my multiboot NASM Code.
Roswell
Re: NASM for Linux
This is the Linux Assembly howto, it has a section on NASM:
http://www.linuxdoc.org/HOWTO/Assembly-HOWTO/index.html
K.J.
http://www.linuxdoc.org/HOWTO/Assembly-HOWTO/index.html
K.J.
Re: NASM for Linux
Hm, I saw some code that looked like that:
.
.
.
dw 'ab'
dw 'bc'
What does the dd mean? I think it stands for double word, but I always thought you have to declare a variable like this:
variable1 dw 'ab'
variable2 dw 'bc'
What's wrong?
.
.
.
dw 'ab'
dw 'bc'
What does the dd mean? I think it stands for double word, but I always thought you have to declare a variable like this:
variable1 dw 'ab'
variable2 dw 'bc'
What's wrong?
Re: NASM for Linux
"variable1" and "variable2" are actually nothing but memory references to the assembler progam.
There is probably a reference lurking nearby. If so, the address to this information is known because it's location is determined by the size of the surrounding data (or code).
It could also be some good old turkey stuffing.
There is probably a reference lurking nearby. If so, the address to this information is known because it's location is determined by the size of the surrounding data (or code).
It could also be some good old turkey stuffing.
Re: NASM for Linux
What is 'lurking'?
So you mean, that the memory is reserved without beeing pointed by a variable name? If yes, what is that good for?
So you mean, that the memory is reserved without beeing pointed by a variable name? If yes, what is that good for?