From e08a40c76013d935c255ea282761f1d17e8422de Mon Sep 17 00:00:00 2001 From: "Alexey Teplov (" Date: Tue, 10 Nov 2009 19:32:15 +0000 Subject: [PATCH] very small change. git-svn-id: svn://kolibrios.org@1264 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/bootcode.inc | 2 +- kernel/trunk/video/vga.inc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/trunk/boot/bootcode.inc b/kernel/trunk/boot/bootcode.inc index 8a9c6e2ea5..4cb0dd3d9d 100644 --- a/kernel/trunk/boot/bootcode.inc +++ b/kernel/trunk/boot/bootcode.inc @@ -42,7 +42,7 @@ printplain: @@: call putchar lodsb - cmp al, 0 + test al,al jnz @b popa ret diff --git a/kernel/trunk/video/vga.inc b/kernel/trunk/video/vga.inc index 12cc0f7dcd..bd23d1a1c2 100644 --- a/kernel/trunk/video/vga.inc +++ b/kernel/trunk/video/vga.inc @@ -175,8 +175,8 @@ checkVga_N13: cld m13pix: lodsd - cmp eax,0 - je .save_pixel + test eax,eax + jz .save_pixel push eax mov ebx,eax and eax,(128+64+32) ; blue @@ -259,8 +259,8 @@ VGA_draw_32_pixels: mov cl,8 .convert_pixels_to_VGA: lodsd ; eax = 24bit colour - cmp eax,0 - je .end + test eax,eax + jz .end rol eax,8 mov al,ch ror eax,8 @@ -335,8 +335,8 @@ VGA_putpixel: pushfd ; edi = address, eax = 24bit colour, ecx = bit no. (modulo 8) xor edx,edx - cmp eax,0 - je .p13cont + test eax,eax + jz .p13cont cmp al,85 jbe .p13green or dl,0x01