Writeing to Video Memmory
Video Memmory is Located at
0x0B800
so we setup our String Registers es and si
videomem db 0xb800 ;points to video memory
hello db 'Hello World Via Video Memmory',0
mov es,[videomem]
mov si,hello
call WriteVideo
alright everything is setup now for the magic suace of WriteVideo
WriteVideo:
pusha
lodsb
.next:
cmp al,0
je .end
stosw
jmp .next
.end
popa
ret
So what this does is read in each char from the si and check if its 0
if it is then we return if not we store the value into es which points to video memory :)
now keep in mind if you called this function again it would just write over the prevous memory meaning we wouldnt actually move our cursor
however thats for another time