1# 2# Copyright (c) 2000 Peter Wemm 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are freely 6# permitted provided that the above copyright notice and this 7# paragraph and the following disclaimer are duplicated in all 8# such forms. 9# 10# This software is provided "AS IS" and without any express or 11# implied warranties, including, without limitation, the implied 12# warranties of merchantability and fitness for a particular 13# purpose. 14# 15 16# ph33r this 17 18 .globl __bangpxeentry, __bangpxeseg, __bangpxeoff 19 .globl __pxenventry, __pxenvseg, __pxenvoff 20 21 .code16 22 .p2align 4,0x90 23__bangpxeentry: 24 push %dx # seg:data 25 push %ax # off:data 26 push %bx # int16 func 27 .byte 0x9a # far call 28__bangpxeoff: .word 0x0000 # offset 29__bangpxeseg: .word 0x0000 # segment 30 add $6, %sp # restore stack 31 .byte 0xcb # to vm86int 32# 33__pxenventry: 34 .byte 0x9a # far call 35__pxenvoff: .word 0x0000 # offset 36__pxenvseg: .word 0x0000 # segment 37 .byte 0xcb # to vm86int 38