File size: 400 Bytes
3c6d809 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | drawIntroFrame:
push es
push 0xb800
pop es
; Increase the frame tick counter to make the intro run faster
mov byte [frameTickCounter], 5
; Check if message is already fully displayed
cmp si, messageLength
jae .end
mov di, si
imul di, 2
mov byte al, [si+message]
mov byte [es:di], al
mov byte [es:di+1], 0xf0
inc si
mov [frameIndex], si
.end:
pop es
ret
|