Code: Select all
[ORG 0x7c00]
start:
mov ah, 0ah
mov al, "X"
mov cx, 1
int 10h
Code: Select all
[ORG 0x7c00]
start:
mov al, 12h
mov ah, 0
int 10h
jmp Draw
msg db "Hello, World!$"
Draw:
mov ah, 13h
mov bh, 0
mov bl, 0101b
mov cx, 13
mov dl, 10
mov dh, 2
mov bp, msg
mov al, 1
int 10h
jmp end
end:
jmp $
times 510 - ($ - $$) db 0
Code: Select all
[ORG 0x7c00]
Even if I assign integers to the variables and try to change the color of a single pixel with it's x and y coordinates set to the variables, the wrong pixel gets colored!
it seems that the variables are buggy no matter what I do and all of my code is correct.
I looked around for a long time and couldn't find anything.