fix: passage au format CE, offset a 0 correction d'un bogue utilisation de la constante graphics plutot que l'emplacement mémoire graphic

This commit is contained in:
Nicolas Hordé 2004-11-19 17:21:20 +00:00
parent 3b37ee93a8
commit 876db618e0
1 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
smart smart
.code .code
org 0100h org 0h
include ..\include\bmp.h include ..\include\bmp.h
@ -308,6 +308,7 @@ ShowTime:
call showfixint call showfixint
pop edx cx ax pop edx cx ax
ret ret
db 'ICI'
;================SHOWNAME (Fonction 2Eh)============== ;================SHOWNAME (Fonction 2Eh)==============
;Affiche le nom pointé par SI ;Affiche le nom pointé par SI
@ -522,7 +523,7 @@ initattribs:
mul ah mul ah
shl ax,1 shl ax,1
cmp cs:mode,5 cmp cs:mode,5
setae cs:graphics setae cs:graphic
jb istext jb istext
shl ax,3 shl ax,3
istext: istext:
@ -534,7 +535,7 @@ istext:
mov al,cs:[di-36] mov al,cs:[di-36]
xor ah,ah xor ah,ah
shl ax,2 shl ax,2
mov cl,cs:graphics mov cl,cs:graphic
shr ax,cl shr ax,cl
mov cs:linesize,ax mov cs:linesize,ax
mov ax,cs:[di-43] mov ax,cs:[di-43]
@ -586,7 +587,7 @@ clearscreen:
mov cx,cs:pagesize mov cx,cs:pagesize
mov di,cs:adress mov di,cs:adress
shr cx,2 shr cx,2
cmp byte ptr cs:graphics,1 cmp byte ptr cs:graphic,1
jne erasetext jne erasetext
mov ax,0A000h mov ax,0A000h
mov es,ax mov es,ax
@ -791,7 +792,7 @@ showline:
jne scro jne scro
dec bl dec bl
mov cx,1 mov cx,1
cmp byte ptr cs:graphics,0 cmp byte ptr cs:graphic,0
je okscro je okscro
mov cx,8 mov cx,8
okscro: okscro:
@ -846,7 +847,7 @@ showinteger:
pop esi edx cx bx eax pop esi edx cx bx eax
ret ret
showbuffer db 35 dup (0FFh) showbuffer db 50 dup (0FFh)
;==========SHOWFIXINT (Fonction h)=========== ;==========SHOWFIXINT (Fonction h)===========
;Affiche un entier EDX aprés le curseur de taille cx ;Affiche un entier EDX aprés le curseur de taille cx
@ -1222,7 +1223,7 @@ scrolldown:
sub cx,si sub cx,si
mov di,cs:adress mov di,cs:adress
cld cld
cmp byte ptr cs:graphics,1 cmp byte ptr cs:graphic,1
jne textp jne textp
mov ax,0A000h mov ax,0A000h
mov es,ax mov es,ax
@ -1300,7 +1301,7 @@ setxy:
add di,ax add di,ax
shl di,1 shl di,1
mov cs:xy,di mov cs:xy,di
cmp byte ptr cs:graphics,1 cmp byte ptr cs:graphic,1
jne oktext jne oktext
mov bl,cs:x mov bl,cs:x
mov cl,cs:y 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 ;Ecrit le caractère ASCII CL attribut CH aprés le curseur, en le mettant à jours
charout: charout:
push ax bx cx dx di es push ax bx cx dx di es
cmp byte ptr cs:graphics,1 cmp byte ptr cs:graphic,1
jne textaccess jne textaccess
call emulatechar call emulatechar
jmp adjusttext jmp adjusttext