minix/lib/i386/rts/_senda.s

23 lines
401 B
ArmAsm
Raw Normal View History

2008-12-11 15:37:02 +01:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.define __senda
SENDA = 16
SYSVEC = 33
MSGTAB = 8 ! message table
TABCOUNT = 12 ! number of entries in message table
.sect .text
__senda:
push ebp
mov ebp, esp
push ebx
mov eax, TABCOUNT(ebp) ! eax = count
mov ebx, MSGTAB(ebp) ! ebx = table
mov ecx, SENDA ! _senda(table, count)
int SYSVEC ! trap to the kernel
pop ebx
pop ebp
ret