diff --git a/boot_code/brainfuck_compiler_v1.asm b/boot_code/brainfuck_compiler_v1.asm index 717cc56..791e4cf 100644 --- a/boot_code/brainfuck_compiler_v1.asm +++ b/boot_code/brainfuck_compiler_v1.asm @@ -31,10 +31,12 @@ mov bx,#compiling mov ah,#0x02 print2: mov dl,[bx] +cmp dl,#0 +je exit int #0x21 inc bx -cmp dl,#0 -jne print2 +jmp print2 +exit: MOV SI,#prog MOV DI,#output_program