Hi James,
James Vahn wrote to Jan Wagemakers :
>> But still, it doesn't work like I expected :-/
JV> I've found that it is necessary to define a data area under nasm,
JV> otherwise a segfault occurs. Seems like the assembler should flag it
JV> as an error.... Same for gas? section .text
JV> mov [currenttime], eax
JV> section .data ; <<<<<<<<<<<<<<<<<<
.data for the AT&T-gas syntax....
JV> currenttime dd 0
Yippie-a-he, indeed, that is the solution! Thanks James :-)
The only question I have, is :"What is the purpose of .data?, What does it
do?". Reading the info-files gives me the following information, but I
don't understand it. :-/
/*
`.data SUBSECTION'
==================
`.data' tells `as' to assemble the following statements onto the end
of the data subsection numbered SUBSECTION (which is an absolute
expression). If SUBSECTION is omitted, it defaults to zero.
*/
Regards - Jan Wagemakers -
o_o A good phrase is worth a thousand pictures....
--- Terminate 5.00/Pro /Linux.DosEmu.JanW-DOS(PTS)
2:292/854.19)
---------------
* Origin: - Belgi‰/Belgium - Internet : JanW@mail.dma.be
|