143561Skato# 243561Skato# Copyright (c) 1998 Robert Nordier 343561Skato# All rights reserved. 443561Skato# 543561Skato# Redistribution and use in source and binary forms are freely 643561Skato# permitted provided that the above copyright notice and this 743561Skato# paragraph and the following disclaimer are duplicated in all 843561Skato# such forms. 943561Skato# 1043561Skato# This software is provided "AS IS" and without any express or 1143561Skato# implied warranties, including, without limitation, the implied 1243561Skato# warranties of merchantability and fitness for a particular 1343561Skato# purpose. 1443561Skato# 1543561Skato 1650477Speter# $FreeBSD: stable/11/stand/pc98/btx/lib/btxsys.s 50477 1999-08-28 01:08:13Z peter $ 1743561Skato 1843561Skato# 1943561Skato# BTX system calls. 2043561Skato# 2143561Skato 2243561Skato# 2343561Skato# Globals. 2443561Skato# 2543561Skato .global __exit 2643561Skato .global __exec 2743561Skato# 2843561Skato# Constants. 2943561Skato# 3043561Skato .set INT_SYS,0x30 # Interrupt number 3143561Skato# 3243561Skato# System call: exit 3343561Skato# 3443561Skato__exit: xorl %eax,%eax # BTX system 3543561Skato int $INT_SYS # call 0x0 3643561Skato# 3743561Skato# System call: exec 3843561Skato# 3943561Skato__exec: movl $0x1,%eax # BTX system 4043561Skato int $INT_SYS # call 0x1 41