Strange error

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
d4n1l0d
Member
Member
Posts: 42
Joined: Sat Dec 02, 2006 4:12 pm

Strange error

Post by d4n1l0d »

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?
User avatar
d4n1l0d
Member
Member
Posts: 42
Joined: Sat Dec 02, 2006 4:12 pm

Post by d4n1l0d »

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 )
pcmattman
Member
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:

Post by pcmattman »

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 )
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.

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.
Ninjarider
Member
Member
Posts: 62
Joined: Fri Jun 29, 2007 8:36 pm

Post by Ninjarider »

are you sure you have a pheonix bios v4
Post Reply