I tried this function to determine ram size:
INT 15h
AX = E801h
Return:
CF clear if successful
AX = extended memory between 1M and 16M, in K (max 3C00h = 15MB)
BX = extended memory above 16M, in 64K blocks
CX = configured memory 1M to 16M, in K
DX = configured memory above 16M, in 64K blocks CF set on error
but my virtual machine just resets, what's wrong?
Strange error
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
If it jumps to the error routine if the carry flag is set on a real PC then you can probably assume that it's a problem in VMWare.d4n1l0d wrote:lol
On VMWARE ( LINUX) - The computer resets
On my real pc - goes to the error routine I route ( int 0x15; jc error )
On virtual pc - goes to the error routine I route ( int 0x15; jc error )
I would suggest not jumping to an error routine but instead jumping to a secondary method of detecting the amount of memory, and if every possible method fails then fail with an error.
-
- Member
- Posts: 62
- Joined: Fri Jun 29, 2007 8:36 pm