From 876db618e0c02ca369d13a3164127998180dc574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 19 Nov 2004 17:21:20 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20passage=20au=20format=20CE,=20offset=20a?= =?UTF-8?q?=200=20correction=20d'un=20bogue=20utilisation=20de=20la=20cons?= =?UTF-8?q?tante=20graphics=20plutot=20que=20l'emplacement=20m=C3=A9moire?= =?UTF-8?q?=20graphic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/video.asm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/noyau/video.asm b/noyau/video.asm index 0c8b133..1d144a1 100644 --- a/noyau/video.asm +++ b/noyau/video.asm @@ -3,7 +3,7 @@ smart .code -org 0100h +org 0h include ..\include\bmp.h @@ -308,6 +308,7 @@ ShowTime: call showfixint pop edx cx ax ret + db 'ICI' ;================SHOWNAME (Fonction 2Eh)============== ;Affiche le nom pointé par SI @@ -522,7 +523,7 @@ initattribs: mul ah shl ax,1 cmp cs:mode,5 - setae cs:graphics + setae cs:graphic jb istext shl ax,3 istext: @@ -534,7 +535,7 @@ istext: mov al,cs:[di-36] xor ah,ah shl ax,2 - mov cl,cs:graphics + mov cl,cs:graphic shr ax,cl mov cs:linesize,ax mov ax,cs:[di-43] @@ -586,7 +587,7 @@ clearscreen: mov cx,cs:pagesize mov di,cs:adress shr cx,2 - cmp byte ptr cs:graphics,1 + cmp byte ptr cs:graphic,1 jne erasetext mov ax,0A000h mov es,ax @@ -791,7 +792,7 @@ showline: jne scro dec bl mov cx,1 - cmp byte ptr cs:graphics,0 + cmp byte ptr cs:graphic,0 je okscro mov cx,8 okscro: @@ -846,7 +847,7 @@ showinteger: pop esi edx cx bx eax ret -showbuffer db 35 dup (0FFh) +showbuffer db 50 dup (0FFh) ;==========SHOWFIXINT (Fonction h)=========== ;Affiche un entier EDX aprés le curseur de taille cx @@ -1222,7 +1223,7 @@ scrolldown: sub cx,si mov di,cs:adress cld - cmp byte ptr cs:graphics,1 + cmp byte ptr cs:graphic,1 jne textp mov ax,0A000h mov es,ax @@ -1300,7 +1301,7 @@ setxy: add di,ax shl di,1 mov cs:xy,di - cmp byte ptr cs:graphics,1 + cmp byte ptr cs:graphic,1 jne oktext mov bl,cs:x mov cl,cs:y @@ -1536,7 +1537,7 @@ getchar: ;Ecrit le caractère ASCII CL attribut CH aprés le curseur, en le mettant à jours charout: push ax bx cx dx di es - cmp byte ptr cs:graphics,1 + cmp byte ptr cs:graphic,1 jne textaccess call emulatechar jmp adjusttext