I've been trying to get it to work for several hours now and nothing seems to make the output to come out in either one or two lines. I've taken the second loop I had before with a string, changed a's to b's and even switched the order little by little.
Code:
[org 0x7c00]
mov ah, 0x0e
mov bx, varName
printString:
mov al, [bx]
cmp al, 0
je end
int 0x10
inc bx
jmp printString
end:
jmp $
varName:
db "Hello World", 0
mov bh, 0x0e
mov bl, 'Z'
int 0x10
loop:
dec bl
cmp bl, 'A' - 1
je exit
int 0x10
jmp loop
exit:
jmp $
times 510-($-$$) db 0
dw 0xaa55
current output: Hello World
I tried removing both, one at a time, and it works as intended ran separately.
Note: I'm using qemu, asm, vim and have been using vscode to help with any writing misspellings