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

Hello Tom,
Tom Torfs wrote to Jan Wagemakers :
 TT> Not really, but I'm not familiar with Unix. I assume you're linking
 TT> in the required C libraries and startup module
Yes. that is not the problem.
I had read the following in the man-pages :
/*
TIME(2)             Linux Programmer's Manual             TIME(2)
NAME
       time - get time in seconds
       SYNOPSIS
              #include 
              time_t time(time_t *t);
       DESCRIPTION
              time returns the time since 00:00:00 GMT, January 1, 1970,
              measured in seconds.
              If t is non null, the return value is also stored  in  the
              memory pointed to by t.
*/
So, the following works perfect :-)
/* (tijd.s)
        .globl main
main:
        pushl $0
        call time
        addl $4,%esp
        pushl %eax
        pushl $.print_decimal
        call printf
        addl $8,%esp
        ret
.print_decimal:
        .string "%d"
.END
*/
But still I don't understand :-( why it doesn't work when I do
something like :
        pushl $currenttime
        call time
        addl $4,%esp
 TT> greetz, Tom tomtorfs@mail.dma.be
Bye.                                   - Jan Wagemakers - 
 
o_o COITUS INTERRUPTUS : a mission impossible                      (Fad 
Gadget) 
--- Terminate 5.00/Pro /Linux.DosEmu.JanW-DOS(PTS)
---------------
* Origin: Linux & Assembler : http://bewoner.dma.be/JanW (2:292/854.19)

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