fix: correction d'un pointeur non précorrectioné et d'une erreur de frappe
This commit is contained in:
parent
cc272f8bff
commit
3942d63f1e
|
@ -26,10 +26,10 @@ declare seteoi
|
||||||
declare enablea20
|
declare enablea20
|
||||||
declare disablea20
|
declare disablea20
|
||||||
declare flatmode
|
declare flatmode
|
||||||
|
declare installirqhandler
|
||||||
|
declare irqhandler
|
||||||
ende
|
ende
|
||||||
|
|
||||||
include "8259a.asm"
|
|
||||||
|
|
||||||
;Affiche le nombre hexa dans %0[dword]
|
;Affiche le nombre hexa dans %0[dword]
|
||||||
PROC biosprinth FAR
|
PROC biosprinth FAR
|
||||||
ARG @num:dword
|
ARG @num:dword
|
||||||
|
@ -260,7 +260,16 @@ PROC mbcreate FAR
|
||||||
ARG @blocks:word,@size:word
|
ARG @blocks:word,@size:word
|
||||||
USES bx,cx,dx,si,di,ds,es
|
USES bx,cx,dx,si,di,ds,es
|
||||||
push gs
|
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]
|
mov cx,[@size]
|
||||||
shr cx,4
|
shr cx,4
|
||||||
inc cx
|
inc cx
|
||||||
|
@ -508,11 +517,11 @@ endp mbchown
|
||||||
;Alloue un bloc /data de CX caractere pour le process appelant -> ax
|
;Alloue un bloc /data de CX caractere pour le process appelant -> ax
|
||||||
PROC mballoc FAR
|
PROC mballoc FAR
|
||||||
ARG @size:word
|
ARG @size:word
|
||||||
USES ax,si,ds
|
USES si,ds
|
||||||
push cs
|
push cs
|
||||||
pop ds
|
pop ds
|
||||||
call mbcreate,offset @@data,[@size]
|
call mbcreate,offset @@data,[@size]
|
||||||
call mbchown,ax,[word ptr ss:bp+4]
|
call mbchown,ax,[word ptr ss:bp+2]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@data db '/data',0
|
@@data db '/data',0
|
||||||
|
|
Loading…
Reference in New Issue