199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright (c) 2000 Peter Wemm
199767f8919635c4928607450d9e0abb932109ceToomas Soome# All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Redistribution and use in source and binary forms are freely
199767f8919635c4928607450d9e0abb932109ceToomas Soome# permitted provided that the above copyright notice and this
199767f8919635c4928607450d9e0abb932109ceToomas Soome# paragraph and the following disclaimer are duplicated in all
199767f8919635c4928607450d9e0abb932109ceToomas Soome# such forms.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# This software is provided "AS IS" and without any express or
199767f8919635c4928607450d9e0abb932109ceToomas Soome# implied warranties, including, without limitation, the implied
199767f8919635c4928607450d9e0abb932109ceToomas Soome# warranties of merchantability and fitness for a particular
199767f8919635c4928607450d9e0abb932109ceToomas Soome# purpose.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# $FreeBSD$
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# ph33r this
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome .globl __bangpxeentry, __bangpxeseg, __bangpxeoff
199767f8919635c4928607450d9e0abb932109ceToomas Soome .globl __pxenventry, __pxenvseg, __pxenvoff
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome .code16
199767f8919635c4928607450d9e0abb932109ceToomas Soome .p2align 4,0x90
199767f8919635c4928607450d9e0abb932109ceToomas Soome__bangpxeentry:
199767f8919635c4928607450d9e0abb932109ceToomas Soome push %dx # seg:data
199767f8919635c4928607450d9e0abb932109ceToomas Soome push %ax # off:data
199767f8919635c4928607450d9e0abb932109ceToomas Soome push %bx # int16 func
199767f8919635c4928607450d9e0abb932109ceToomas Soome .byte 0x9a # far call
199767f8919635c4928607450d9e0abb932109ceToomas Soome__bangpxeoff: .word 0x0000 # offset
199767f8919635c4928607450d9e0abb932109ceToomas Soome__bangpxeseg: .word 0x0000 # segment
199767f8919635c4928607450d9e0abb932109ceToomas Soome add $6, %sp # restore stack
199767f8919635c4928607450d9e0abb932109ceToomas Soome .byte 0xcb # to vm86int
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome__pxenventry:
199767f8919635c4928607450d9e0abb932109ceToomas Soome .byte 0x9a # far call
199767f8919635c4928607450d9e0abb932109ceToomas Soome__pxenvoff: .word 0x0000 # offset
199767f8919635c4928607450d9e0abb932109ceToomas Soome__pxenvseg: .word 0x0000 # segment
199767f8919635c4928607450d9e0abb932109ceToomas Soome .byte 0xcb # to vm86int