# # (C) Copyright 1992, ..., 2005 the "DOSEMU-Development-Team". # # # for details see file COPYING in the DOSEMU distribution # # vgaon.S, for dosemu 0.49, 4/16/93 # Robert Sanders, gt8134b@prism.gatech.edu # # this is dangerous! .code16 .text .globl _start16 _start16: #include "detect.h" movb $3, %al # dos helper I/O perms movw $0x70, %bx # starting port movw $2, %cx # # of ports stc # set means get I/Operms int $0xe6 movb $4, %al movb $1, %bl int $0xe6 movb $3, %al # dos helper I/O perms movw $0x70, %bx # starting port movw $2, %cx # # of ports clc # clear means release I/Operms int $0xe6 int $0x20 # exit # note: the VGA permissions are left on.