]>
wirehaze git hosting - BOS.git/blob - kernel/16bit/mem.asm
0446e02ac7a70889033187fad91c6a596a6bb55c
1 ;----------------------------------------------------------;
2 ; BOS kernel Christoffer Bubach, 2003-2005. ;
3 ;----------------------------------------------------------;
5 ; Get memory size, only using E801 right now. ;
7 ;----------------------------------------------------------;
9 ;-----------------------------------------;
12 ; out: eax = mem in bytes, 0 = error ;
13 ;-----------------------------------------;
27 jmp .end ; failed! :'(
41 shl eax, 16 ; eax = eax * 65536
45 shl eax, 10 ; eax = eax * 1024