answer
November 27th, 2004, 01:19 PM
How may I draw on the screen?
This is what I got
[bits 16]
[ORG 0x7C00]
; sets up video mode to mode 13
mov ax, 0x0013
int 0x10
jmp main
; Just a loop to try and draw anything to screen
main:
mov [eax], bl
inc bl
inc eax
cmp eax, 0x0000A000 + 0xC000
je .reset
.back1
cmp bl, 0xFF
je nebx
jmp main
.reset
mov eax, 0x0000A000
jmp .back1
nebx:
mov bl, 9
jmp main
times 510 - ($-$$) db 0
dw 0xAA55
Thanks in advance!
This is what I got
[bits 16]
[ORG 0x7C00]
; sets up video mode to mode 13
mov ax, 0x0013
int 0x10
jmp main
; Just a loop to try and draw anything to screen
main:
mov [eax], bl
inc bl
inc eax
cmp eax, 0x0000A000 + 0xC000
je .reset
.back1
cmp bl, 0xFF
je nebx
jmp main
.reset
mov eax, 0x0000A000
jmp .back1
nebx:
mov bl, 9
jmp main
times 510 - ($-$$) db 0
dw 0xAA55
Thanks in advance!