! vgaon.S, for dosemu 0.49, 4/16/93
! Robert Sanders, gt8134b@prism.gatech.edu
!
! $Date: 1994/06/12 23:16:59 $
! $Source: /usr/src/dosemu0.52/commands/RCS/vgaon.S,v $
! $Revision: 2.1 $
! $State: Exp $
!
! this is dangerous!

use16
.text
.data
.bss

.align 0

.globl _main              ! for ld86
_main:

      .org       0
	mov al, #3     ! dos helper I/O perms
	mov bx, #0x70  ! starting port
	mov cx, #2     ! # of ports
	stc            ! set means get I/Operms
	int #0xe6
	mov al, #4
	mov bl, #1
	int #0xe6
	mov al, #3     ! dos helper I/O perms
	mov bx, #0x70  ! starting port
	mov cx, #2     ! # of ports
	clc            ! clear means release I/Operms
	int #0xe6
	int #0x20  ! exit

! note: the VGA permissions are left on. 


