> But still, it doesn't work like I expected :-/
The .DATA directive seems to do the trick. How do we make this into a
TSR-type of program? I'd like to run it from the command line and
constantly display in the lower left of the screen, without forking
to the background, ala &. There must be more than one way to RET.
The cut&paste program called gpm would be a clue.
.globl main
main:
pushl $currenttime # push adres of currenttime on the stack
call time # call time
addl $4,%esp
movl currenttime,%eax # test-rout. print value in currenttime
pushl %eax
pushl $.printdec
call printf
addl $8,%esp
ret
.DATA
.printdec:
.string "%d\n"
currenttime:
.byte 0,0,0,0
.END
--- ifmail-tx (i386 Linux)
---------------
* Origin: jvahn@short.circuit.com (1:346/15.1@fidonet)
|