.org 0xF800
mov sp,#STACK
call litedram_init
call INIT_INT_VECT_TABLE
INCLUDE brainfuck_compiler_v1.asm
prog:
INCLUDE hello_9086.bf.asm

INCLUDE dos_layer.asm
include LiteDram_init.asm

print:
mov al,[bx]
cmp al,#0
je print_exit
out byte #0xA5
inc bx
jmp print
print_exit:
ret

 .BLKB 18 ; Using the text as stack space for the compiled program
STACK: ; brainfuck_mandelbrot depends on stack being at the end

.ORG 0xFFF0
MOV AX,#0xF800
JMP AX


.ORG 0xFFFF
DB 0x00 ;Make sure a full 64KiB image
