[BITS 16]
[org 0]
[section .text]

start:
	mov ax,cs
	mov ds,ax
	mov es,ax

	mov ah,03
	mov bh,0
	int 10h

	call _main
	jmp 0x1000:0

global _main

[segment .text]

%include "io.asm"


%define _buffer -100
%define _ptr -102

_main:
	push bp
	mov bp,sp
	sub sp,word 102
	push word 0
	push 5
	pop bx
	pop dx
	add bx,dx
	push bx
	lea bx,[bp+_buffer]
	pop dx
	imul dx,word 1
	add bx,dx
	push bx
	pop ax
	mov [bp+_ptr],ax
	push ax
	pop ax
	push 0
	pop ax
	leave
	ret
%undef _buffer
%undef _ptr



[section .data]


[section .bss]

answer: resb 20

