TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: DANNY PHILLIPS
from: JAMES VAHN
date: 1997-11-02 09:20:00
subject: Re: Interupts

> What about in Linux or UNIX??  How would I make an interupt call in
> Linux or UNIX.  Does Linux or UNIX make interupt calls even?  What do
> they use? Where are the interupts stored??  Please, someone tell me...
It is best to use libc calls- everything uses libc and you should too.
Two simple examples: 
; hello.asm
;
; nasm -f elf hello.asm -o hello.o
; gcc hello.o -o hello
;
section .text 
extern puts
global main
main:
        push dword msg
        call puts
        add esp, byte 4
        ret
msg:    
        db 'Hello World' , 0
  	   =============
/* hello.S
 * gcc hello.S -o hello
 *
 */
.global main, msg
        main:
                pushl $msg
                call puts
                addl $4,%esp
                ret
        msg:
                .string "Hello World!"
--- 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™.