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