use32
	ORG   0x400000					; where our program is loaded to
	jmp   start					; jump to the start of program.
	db    'DEX5'					; We check for this, to make shore it a valid Dex4u file.


;=======================================================  ;
; Start of program.                                       ;
;=======================================================  ;
start:							  ;
	mov	ax,18h					  ;                    
	mov	ds,ax					  ;            
	mov	es,ax					  ;           
;=======================================================  ;
; Get calltable address.                                  ;
;=======================================================  ;
	mov	edi,Functions				  ; fill the function table
	mov	al,0					  ; so we have some usefull functions
	mov	ah,0x0a 				  ;
	int	50h					  ;

	call	[WaitForKeyPress]
	ret
include 'Dex.inc'					  ; Dex inc file
