1*e5b8bcedSEd Maste# 2*e5b8bcedSEd Maste# Copyright (c) 1998 Robert Nordier 3*e5b8bcedSEd Maste# All rights reserved. 4*e5b8bcedSEd Maste# 5*e5b8bcedSEd Maste# Redistribution and use in source and binary forms are freely 6*e5b8bcedSEd Maste# permitted provided that the above copyright notice and this 7*e5b8bcedSEd Maste# paragraph and the following disclaimer are duplicated in all 8*e5b8bcedSEd Maste# such forms. 9*e5b8bcedSEd Maste# 10*e5b8bcedSEd Maste# This software is provided "AS IS" and without any express or 11*e5b8bcedSEd Maste# implied warranties, including, without limitation, the implied 12*e5b8bcedSEd Maste# warranties of merchantability and fitness for a particular 13*e5b8bcedSEd Maste# purpose. 14*e5b8bcedSEd Maste# 15*e5b8bcedSEd Maste 16*e5b8bcedSEd Maste# 17*e5b8bcedSEd Maste# BTX system calls. 18*e5b8bcedSEd Maste# 19*e5b8bcedSEd Maste 20*e5b8bcedSEd Maste# 21*e5b8bcedSEd Maste# Globals. 22*e5b8bcedSEd Maste# 23*e5b8bcedSEd Maste .global __exit 24*e5b8bcedSEd Maste .global __exec 25*e5b8bcedSEd Maste# 26*e5b8bcedSEd Maste# Constants. 27*e5b8bcedSEd Maste# 28*e5b8bcedSEd Maste .set INT_SYS,0x30 # Interrupt number 29*e5b8bcedSEd Maste# 30*e5b8bcedSEd Maste# System call: exit 31*e5b8bcedSEd Maste# 32*e5b8bcedSEd Maste__exit: xorl %eax,%eax # BTX system 33*e5b8bcedSEd Maste int $INT_SYS # call 0x0 34*e5b8bcedSEd Maste# 35*e5b8bcedSEd Maste# System call: exec 36*e5b8bcedSEd Maste# 37*e5b8bcedSEd Maste__exec: movl $0x1,%eax # BTX system 38*e5b8bcedSEd Maste int $INT_SYS # call 0x1 39