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

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

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