TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JAN WAGEMAKERS
from: TOM TORFS
date: 1997-12-01 22:32:00
subject: leal

* Reply to a message in personal_mail.
Jan Wagemakers wrote in a message to Tom Torfs:
 JW> Ok, Tom, I think that I understand this a little-bit. Now with the
 JW> above in mind, can you tell me what is wrong with the following
 JW> piece of code that gives a nice segmentation fault? :
 JW> /* (tijd.s)
 JW>         .globl main
 JW> main:
 JW>         movl $current_time,%eax
 JW>         pushl %eax
 JW>         call time
 JW>         addl $4,%esp
 JW>         ret
 JW> current_time:
 JW>         .word
 JW> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 
 JW> .END
Not really, but I'm not familiar with Unix. I assume you're linking in the 
required C libraries and startup module ?
greetz,
Tom
tomtorfs@mail.dma.be
--- timEd/2 1.10+
---------------
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)

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™.