* 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)
|