;==============================================================
; Intel Asm
;==============================================================
         .486
         .model flat, stdcall
         option casemap :none
         include \masm32\include\windows.inc
         include \masm32\include\masm32.inc
         include \masm32\include\kernel32.inc
         include \masm32\macros\macros.asm

         includelib \masm32\lib\masm32.lib
         includelib \masm32\lib\kernel32.lib

;==============================================================
         .data
Txt db ?, 0
float_constant0      DQ   7.8

;==============================================================
; Entry point:
         .code
start:
         FINIT
         PUSH  EBP
         MOV   EBP,  ESP
         SUB   ESP,  12
         ; Let Td1_4 = 
         ; Double 7.8
         FLD   qword ptr [float_constant0]
         FSTP  qword ptr [EBP-8]
         ; Let Ti2_3 = 
         ; Apply direct min_caml_int_of_float
         PUSH  dword ptr [EBP-4]
         PUSH  dword ptr [EBP-8]
         CALL  min_caml_int_of_float
         ADD   ESP,  8
         MOV   [EBP-12],  EAX
         ; Apply direct min_caml_print_int
         PUSH  dword ptr [EBP-12]
         CALL  min_caml_print_int
         ADD   ESP,  4
         MOV   ESP,  EBP
         POP   EBP
         PUSH  0
         CALL  ExitProcess

;==============================================================
; need to copy min_caml_intel.asm from min-caml directory to output directoty
include min_caml_intel.asm

END start

;==============================================================

