2004-10-29 20:24:09 +02:00
|
|
|
|
.model tiny
|
|
|
|
|
.486
|
|
|
|
|
smart
|
|
|
|
|
.code
|
|
|
|
|
|
2004-11-19 18:23:06 +01:00
|
|
|
|
org 0h
|
2004-10-29 20:24:09 +02:00
|
|
|
|
|
|
|
|
|
include ..\include\mem.h
|
|
|
|
|
include ..\include\divers.h
|
|
|
|
|
|
|
|
|
|
start:
|
2004-11-23 01:43:29 +01:00
|
|
|
|
header exe <,1,0,,,offset imports,,>
|
|
|
|
|
|
|
|
|
|
realstart:
|
|
|
|
|
push offset msg
|
|
|
|
|
call [print]
|
|
|
|
|
|
2004-10-29 20:24:09 +02:00
|
|
|
|
xor cx,cx
|
|
|
|
|
listmcb:
|
|
|
|
|
mov ah,4
|
|
|
|
|
int 49h
|
|
|
|
|
jc fino
|
|
|
|
|
inc cx
|
2004-11-23 01:43:29 +01:00
|
|
|
|
|
|
|
|
|
;placement m<>moire
|
|
|
|
|
mov dx,gs
|
|
|
|
|
inc dx
|
|
|
|
|
inc dx
|
|
|
|
|
push edx
|
|
|
|
|
|
|
|
|
|
;parent
|
|
|
|
|
cmp gs:[MB.Reference],0
|
|
|
|
|
je next
|
|
|
|
|
mov dx,gs:[MB.Reference]
|
|
|
|
|
dec dx
|
|
|
|
|
dec dx
|
|
|
|
|
push dx
|
|
|
|
|
push offset MB.Names
|
|
|
|
|
jmp suitemn
|
|
|
|
|
next:
|
2004-10-29 20:24:09 +02:00
|
|
|
|
push cs
|
2004-11-23 01:43:29 +01:00
|
|
|
|
push offset none
|
|
|
|
|
suitemn:
|
|
|
|
|
|
|
|
|
|
;Resident
|
|
|
|
|
cmp gs:[MB.IsResident],true
|
2004-10-29 20:24:09 +02:00
|
|
|
|
jne notresident
|
2004-11-23 01:43:29 +01:00
|
|
|
|
push offset resident
|
2004-10-31 12:46:47 +01:00
|
|
|
|
jmp suitelistmcb
|
2004-10-29 20:24:09 +02:00
|
|
|
|
notresident:
|
2004-11-23 01:43:29 +01:00
|
|
|
|
push offset nonresident
|
2004-10-31 12:46:47 +01:00
|
|
|
|
suitelistmcb:
|
2004-11-23 01:43:29 +01:00
|
|
|
|
|
|
|
|
|
;taille memoire
|
2004-10-31 12:46:47 +01:00
|
|
|
|
xor edx,edx
|
2004-11-23 01:43:29 +01:00
|
|
|
|
mov dx,gs:[MB.Sizes]
|
|
|
|
|
shl edx,4
|
|
|
|
|
push 6
|
|
|
|
|
push edx
|
|
|
|
|
|
|
|
|
|
;nom
|
|
|
|
|
push gs
|
|
|
|
|
push offset MB.Names
|
|
|
|
|
|
|
|
|
|
push offset line
|
|
|
|
|
call [print]
|
|
|
|
|
|
2004-10-31 12:46:47 +01:00
|
|
|
|
jmp listmcb
|
|
|
|
|
fino:
|
2004-10-29 20:24:09 +02:00
|
|
|
|
db 0CBh
|
2004-11-23 01:43:29 +01:00
|
|
|
|
resident db "oui",0
|
|
|
|
|
nonresident db "non",0
|
|
|
|
|
line db "%0P\h15%w\h24%0\h30%0P\h46%hW\l",0
|
|
|
|
|
msg db "Memory manager V1.5\lNom Taille Res Parent Mem\l",0
|
|
|
|
|
none db ".",0
|
2005-12-05 09:09:17 +01:00
|
|
|
|
|
2004-11-23 01:43:29 +01:00
|
|
|
|
imports:
|
|
|
|
|
db "VIDEO.LIB::print",0
|
|
|
|
|
print dd 0
|
|
|
|
|
dw 0
|
|
|
|
|
|
2004-10-29 20:24:09 +02:00
|
|
|
|
end start
|