VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/utils/dos/WinExit.asm@ 93115

Last change on this file since 93115 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1; $Id: WinExit.asm 93115 2022-01-01 11:31:46Z vboxsync $
2;; @file
3; 16-bit windows program that exits windows.
4;
5; Build: wcl -I%WATCOM%\h\win -l=windows -k4096 -fm WinExit.asm
6;
7
8;
9; Copyright (C) 2018-2022 Oracle Corporation
10;
11; This file is part of VirtualBox Open Source Edition (OSE), as
12; available from http://www.virtualbox.org. This file is free software;
13; you can redistribute it and/or modify it under the terms of the GNU
14; General Public License (GPL) as published by the Free Software
15; Foundation, in version 2 as it comes in the "COPYING" file of the
16; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18;
19; The contents of this file may alternatively be used under the terms
20; of the Common Development and Distribution License Version 1.0
21; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
22; VirtualBox OSE distribution, in which case the provisions of the
23; CDDL are applicable instead of those of the GPL.
24;
25; You may elect to license modified versions of this file under the
26; terms and conditions of either the GPL or the CDDL or both.
27;
28
29
30
31;.stack 4096
32STACK segment para stack 'STACK'
33STACK ends
34
35
36extrn INITTASK:FAR
37extrn INITAPP:FAR
38extrn EXITWINDOWS:FAR
39extrn WAITEVENT:FAR
40
41_TEXT segment word public 'CODE'
42start:
43 push bp
44 mov bp, sp
45
46 ;
47 ; Initialize the windows app.
48 ;
49 call INITTASK
50
51 xor ax, ax
52 push ax
53 call WAITEVENT
54
55 push di ; hInstance
56 push di
57 call INITAPP
58
59 ;
60 ; Do what we're here for, exitting windows.
61 ;
62 xor ax, ax
63 xor cx, cx
64 xor dx, dx
65 push ax
66 push ax
67 push ax
68 push ax
69 call EXITWINDOWS
70
71 ;
72 ; Exit via DOS interrupt.
73 ;
74 xor al, al
75 mov ah,04cH
76 int 021h
77
78 mov sp, bp
79 pop bp
80 ret
81
82_TEXT ends
83
84end start
85
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette