graphics: actually do 32-bit writes to VGA
authorH. Peter Anvin <hpa@zytor.com>
Fri, 31 Jul 2009 05:27:16 +0000 (22:27 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 31 Jul 2009 05:27:16 +0000 (22:27 -0700)
Use "rep movsd" to copy data to VGA memory, not "rep movsb".

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/graphics.inc

index 884776e..26925e9 100644 (file)
@@ -206,8 +206,8 @@ outputvga:
 .loop1:
                out dx,al       ; Select the bit plane to write
                push di
-               mov cx,640/8
-               rep movsb
+               mov cx,640/32
+               rep movsd
                pop di
                add ax,ax
                cmp al,8