I suppose BIOS interrupt 8 (timer) should come 18.2 times per second, but it doesn't on qemu. See the following example:
$ cat c.asm
init:
.segments:
mov ax, 0x07C0
mov ds, ax
mov ax, 0
mov fs, ax
.interrupt:
mov [fs:0x08*4], word timer
mov [fs:0x08*4+2], ds
main:
hlt
jmp main
timer:
mov ah, 0x0e
mov al, 0x41
int 0x10
iret
times 510-($-$$) db 0
dw 0xaa55
$ nasm -f bin c.asm -o c.bin && qemu-system-x86_64 c.bin
Qemu window appears, and only one 'A' displayed, not continuously.
What's wrong with my code, if I hope interrupt 8 comings again and again.
I use nasm 1.14.02, qemu 4.2.1 and ubuntu 20.04.