Code: Select all
[BITS 16]
[ORG 0x7C00]
MOV AX,0x0003
INT 10
MOV AX, 0x0b800
MOV DS, AX
MOV [0x00], 'a'
MOV [0x01], 00000100b
JMP $
TIMES 510 - ($ - $$) db 0
DW 0xAA55
Code: Select all
[BITS 16]
[ORG 0x7C00]
MOV AX,0x0003
INT 10
MOV AX, 0x0b800
MOV DS, AX
MOV [0x00], 'a'
MOV [0x01], 00000100b
JMP $
TIMES 510 - ($ - $$) db 0
DW 0xAA55
D'oh!Karlosoft wrote:[/code]
...
INT 10
...[/code]
Try this:when i try to write in the video memory, the compiler give me an error, "operation size not specified"
Because it's in decimal, not hexadecimal. You need "int 0x10" or "int 10h" or "int 16".Karlosoft wrote:INT 10 is wrong??? why?
Your hint was enough - check the time stamps on our posts - I was one minute too late.AJ wrote:Sorry I was obviously too cryptic in my reply - thought that hint should be enough