I am a newbie to assembly language and currently working with interrupts in x86 architecture. Following is the code
BITS 16
start:
mov ax, 07C0h
add ax, 288
mov ss, ax
mov sp, 4096
mov ax, 07C0h
mov ds, ax
mov si, text
lodsb ;Load a bit to al
mov ah, 09h ;Write charecter and attribute at cursor position
mov cx, 03h ;No.of times to write the charecter
mov bh, 00h
mov bl, 02h
int 10h
text db 'Hello',0
times 510-($-$$) db 0
dw 0xAA55
According to https://en.wikipedia.org/wiki/INT_10H, the code should display the character 'H' three times on the screen. But this is not happening. I would like to know what the error is.
I am using NASM
in Linux