; This file was generated by MenuetBASIC Compiler
; Author: Jarek Pelczar
; E-mail: jarekp3@wp.pl
; 
; Input file: test.bas
; Output file: test.asm
org 0
use32
App_Header:
	db 'MENUET01'
	dd 1
	dd APP_START
	dd I_END
	dd 0x100000
	dd 0x09FFFF
	dd 0
	dd 0
APP_START:
mov esp,0x9FFFF
	mov eax,dword [B]
	push eax
	mov eax,1000
	add eax,dword [esp]
	add esp,4
	mov dword [A],eax
	mov eax,dword [A]
	mov ebx,eax
	mov eax,1
	cmp ebx,eax
	jne L2
	mov eax,LC1
	push eax
	push ebp
	mov ebp,esp
	call FOO
	mov esp,ebp
	pop ebp
	add esp,4
	mov dword [A],eax
	jmp L1
L2:
	mov eax,2
	push eax
	mov eax,dword [A]
	sub eax,dword [esp]
	not eax
	add esp,4
	push eax
	push ebp
	mov ebp,esp
	call FOO
	mov esp,ebp
	pop ebp
	add esp,4
	mov dword [A],eax
L1:
	jmp INTERNAL_app_exit
INTERNAL_app_exit:
	mov eax,-1
	int 0x40
	cli ; It MUST fail if exit didn't work (assasination :)
VAR_POOL_SIZE dd VAR_POOL_END-VAR_POOL_BEGIN
I_END:
_LC0:
	db "Compiled with MBASIC. Author: Jarek Pelczar",0
_LC1:
	db "Bar",0
VAR_POOL_BEGIN:
dummy_variable: rd 1
B: rd 1
A: rd 1
VAR_POOL_END:
