fastest way to put a string on the screen?
I am writing an assembly proc to put a text string on the screen without using int 21h and I'm looking for the fastest way to do it.
These two procedures are doing the job, but I want to know which one is faster, and maybe there is a faster way? The only specification is that it needs to run using BIOS commands, no DOS interrupts.
textOut1 proc
mov ax,@data
mov es,ax
mov bp,offset msg
mov ah,13h
mov al,1
mov bx,5
mov cx,12
mov dl,0
mov dx,0
int 10h
ret
textOut1 endp
textOut2 proc
mov ax,0b800h
mov es,ax
mov ax,@data
mov ds,ax
mov ah,3
mov cx,12
mov si,offset msg
xor di,di
;xor si,si ;shouldnt be here
WriteChar:
lodsb
stosw
loop WriteChar
ret
textOut2 endp

