use32 ORG 0x400000 ; where our program is loaded to jmp start ; jump to the start of program. db 'DEX2' ; Mark it a DexOS ver3 file. ;--------------------; ; Set up DexOS stuff ; ;--------------------; start: mov ax,18h ; set ax to nonlinear base mov ds,ax ; set ds to nonlinear base mov es,ax ; set es to nonlinear base. mov edi,Functions ; address of jump table (in dex.inc) mov ax,0x0a00 ; load table wih DexOS function addresses int 40h ;------------------; ; Code starts here ; ;------------------; ;---------------------------delete if not used----------------- call [Clstext] ; clear screen mov ax,0101h ; Overwrite Dex title block mov esi,Program_name call [SetCursorPos] call [PrintString] ;-------------------------------------------------------------- ;-------; ; Data. ; ;-------; Program_name:db '**** PUT PROGRAM NAME OR TITLE HERE',0 ;*** Delete if not used *** include 'Dex.inc'