TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JAMES VAHN
from: JAN WAGEMAKERS
date: 1997-12-30 18:32:00
subject: Re: leal

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

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.