Code: Select all
PutStr_32:
xor ax, ax
mov ds, ax
mov eax, screen_pos
.nextchar
lodsb
or al,al
jz .return
mov byte [ds:eax], al
inc eax
mov byte [ds:eax], 1Bh
jmp .nextchar
.return
mov [screen_pos], eax
ret
;data
screen_pos dd 0
Can anybody tell me what is the cause of this error? (I am in protected mode by the way)
Thanks in advance,
Jules