From 3942d63f1e7fe3155db248fc84590ba936cbbd89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Tue, 27 Mar 2007 10:22:47 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20correction=20d'un=20pointeur=20non=20pr?= =?UTF-8?q?=C3=A9correction=C3=A9=20et=20d'une=20erreur=20de=20frappe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/mcb.asm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/noyau/mcb.asm b/noyau/mcb.asm index c2180ce..8756c01 100644 --- a/noyau/mcb.asm +++ b/noyau/mcb.asm @@ -26,10 +26,10 @@ declare seteoi declare enablea20 declare disablea20 declare flatmode +declare installirqhandler +declare irqhandler ende -include "8259a.asm" - ;Affiche le nombre hexa dans %0[dword] PROC biosprinth FAR ARG @num:dword @@ -260,7 +260,16 @@ PROC mbcreate FAR ARG @blocks:word,@size:word USES bx,cx,dx,si,di,ds,es push gs - mov gs,[ss:bp+4] + mov ax,[ss:bp+4] + mov dx,ax + dec dx + dec dx + mov gs,dx + cmp [word ptr gs:0x0],'NH' + je @@oktoset + mov ax,memorystart +@@oktoset: + mov gs,ax mov cx,[@size] shr cx,4 inc cx @@ -508,11 +517,11 @@ endp mbchown ;Alloue un bloc /data de CX caractere pour le process appelant -> ax PROC mballoc FAR ARG @size:word - USES ax,si,ds + USES si,ds push cs pop ds call mbcreate,offset @@data,[@size] - call mbchown,ax,[word ptr ss:bp+4] + call mbchown,ax,[word ptr ss:bp+2] ret @@data db '/data',0