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