flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Ineterrupt 11(Hardware Spec)

Goto page 1, 2, 3  Next
Author
Thread Post new topic Reply to topic
steward



Joined: 04 Apr 2008
Posts: 24
steward
Hi,

I want to write a program in assembly that Shows hardware spec and its model and vendor .....

I know that i should use INT 11 and Int 12 (RAM Capacity) but i dont know how to use INT 11?

If it is possible,guid me please.

Thanks in advance
Post 12 Apr 2008, 21:05
View user's profile Send private message Reply with quote
System86



Joined: 15 Aug 2007
Posts: 77
System86
Just put int 11h, that will call the interrupt (it doesn't matter whats in any register before you call int 11h, int 11h always does the same thing). Int 11h returns equipment information in ax. See Ralf Brown Interrupts List or HELPPC as to what exactly the bits in ax returned mean.
Post 13 Apr 2008, 01:53
View user's profile Send private message Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
Please help,

I am new in assembly,and i have few times to do this project.

help please.if it does not matter ,i want the source code.

help please
Post 13 Apr 2008, 18:56
View user's profile Send private message Reply with quote
System86



Joined: 15 Aug 2007
Posts: 77
System86
Use this:

int 11h
;after this, equipment installed returned in ax (or eax, most 386+ systems use the high bits as well)

The meaning of the bits is as follows:
---- ---- ---- ---X 1 = disk drive(s) installed
---- ---- ---- --X- 1 = math coprocessor installed
---- ---- ---- XX-- System memory 00=16k 01=32k 10=48k 11=64k (non PS/2)
---- ---- ---- -X-- 1 = pointing device installed (PS/2)
---- ---- ---- X--- not used on PS/2
---- ---- --XX ---- initial video mode: 01=CO40 10=CO80 11=MONO
---- ---- XX-- ---- disk drives 00=1 01=2 10=3 11=4 (zero if bit 1=0)
---- ---X ---- ---- 1 = no DMA available
---- XXX- ---- ---- number of serial ports installed (000=0 001=1 etc)
---X ---- ---- ---- 1 = game port adapter installed
--X- ---- ---- ---- 1 = internal modem installed (PS/2)
--X- ---- ---- ---- 1 = serial printer attached (non PS/2)
XX-- ---- ---- ---- number of printers installed (00=0 01=1 10=2 11=3)

above list from http://www.comp.nus.edu.sg/~malin/materials/C_lib/libc_67.html
Post 13 Apr 2008, 19:04
View user's profile Send private message Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
thanks.but i want the code in assembly.
Post 13 Apr 2008, 19:32
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
Code:
int 11h
test al,1
jz nodrive
test al,2
jz nocopross
test al,4
jz nopointingdevice
test al,8
jz notusedonPS2
....
...
..

    


Very Happy


Last edited by edfed on 13 Apr 2008, 19:44; edited 1 time in total
Post 13 Apr 2008, 19:42
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
steward wrote:
thanks.but i want the code in assembly.
Dump the assembly course, and try again next semester - but that time, pay attention in class.

_________________
Image - carpe noctem
Post 13 Apr 2008, 19:43
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
what is the meaning of 'test' in code?
Post 13 Apr 2008, 19:45
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
and, without operand corruption.
did you read the manual of fasm?????

there are many versions, on line, in all packages, and maybe in intel manuals.
sure, google can answer cvery well and very fast to your request.


Last edited by edfed on 13 Apr 2008, 19:59; edited 1 time in total
Post 13 Apr 2008, 19:56
View user's profile Send private message Visit poster's website Reply with quote
System86



Joined: 15 Aug 2007
Posts: 77
System86
test is an opcode that is like and, but does not change the operands, it only affects the flags in the same way as and. Please see the fasm documentation or Intel/AMD processor manuals.

For example:
test al, 1
;ZF set after this if bit 0 of al clear
Post 13 Apr 2008, 19:58
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
cos(eax+eip*1024)
Post 13 Apr 2008, 20:00
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
Thanks alot
Post 13 Apr 2008, 20:04
View user's profile Send private message Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
Help me please.

complete source.please.i am in trouble
Post 13 Apr 2008, 20:16
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
no, if you want to learn assembly art, you should learn to think by yourself.

non mais ho! c'est pas la fete ici... Very Happy
Post 13 Apr 2008, 20:19
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
steward wrote:
Help me please.

complete source.please.i am in trouble

f0dder wrote:
Dump the assembly course, and try again next semester - but that time, pay attention in class.
Post 13 Apr 2008, 20:20
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
I said i am new.i am networkman not developer.

help please
Post 13 Apr 2008, 20:20
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
if i help you, first, you should give me the documentations of my network card.

Accton EN2242 for omnibook.

thanks.
Post 13 Apr 2008, 20:22
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
Thank you.sir.you are not a good man.I said i am in trouble.
Post 13 Apr 2008, 20:28
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4238
Location: 2018
edfed
where is the spec of my card? i need it, i seek it since two weeks, and i didn't find. as you're a networkman, you can find it, no?

give me the doc, i give you the solution.
Post 13 Apr 2008, 20:32
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
What do u want to do with its Documentation?i think u can find it easy in google.
Post 13 Apr 2008, 20:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.