[BITS 16]
[section text]

org 100h

jmp _main

global _main
global _gets
global _printf
global _scanf
global _fflush
global _getchar
global _putc
global _fopen
global _fprintf
global _fgetchar
global _fscanf
global _fgets
global _fseek
global _fread
global _fwrite
global _fclose

%include "io.asm"
%include "libc.asm"

struc __FILE
   ._fd resw 1
   ._track resw 1
   ._head resw 1
   ._sector resw 1
endstruc


[section text]

%define _a -2
%define _b -4

_main:
	push bp
	mov bp,sp
	sub sp,word 4
	mov [bp+_a],word 1
	mov [bp+_b],word 1
	push word [bp+_a]
	mov bx,word [bp+_b]
	pop ax
	and ax,bx
	cmp ax,word 0
	je .L1
	push C0
	call _printf
	add sp,word 2
	jmp .L0
.L1:	
	push C1
	call _printf
	add sp,word 2
.L0:	
	mov ax,word 0
	leave
	ret

%undef _a
%undef _b


[section .bss]

[section data]
C0: db 'a == true',10,13,0
C1: db 'a == false',10,13,0
