;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; win.asm - I missed Microsofts win command for getting back to Windows ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; This is not the win program that now comes with DexOS, so you will need to rename it ;----------------------------------------------------; ; Application Header. ; ;----------------------------------------------------; use32 org 0x400000 jmp initialise db 'DEX2' ;----------------------------------------------------; ; Initialised Data. ; ;----------------------------------------------------; wait_string db 'Remove DexOS Disk',0 didnt_string db 'The reboot did not work',0 ;----------------------------------------------------; ; Code Section. ; ;----------------------------------------------------; initialise: mov ax,0x18 ; Setup the segment registers mov ds,ax mov es,ax mov edi,Functions ; This is the interrupt we use mov al,0 ; we use to load the DexFunction.inc mov ah,0x0a ; with the address to dex4u functions. int 40h quit_app: call [Clstext] ; Remove disk worning mov ax,1a20h mov esi,wait_string call [SetCursorPos] call [PrintString] mov ax,0025h call [SetDelay] call [RebootSystem] mov ax,1a20h ; Didn't work notice, as if they didn't know mov esi,didnt_string call [SetCursorPos] call [PrintString] mov ax,0035h call [SetDelay] ret ; End application ;----------------------------------------------------; ; Uninitialised Data. ; ;----------------------------------------------------; include "Dex.inc" ; Call-table include file