flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Ineterrupt 11(Hardware Spec) Goto page 1, 2, 3 Next |
Author |
|
System86 13 Apr 2008, 01:53
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.
|
|||
13 Apr 2008, 01:53 |
|
steward 13 Apr 2008, 18:56
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 |
|||
13 Apr 2008, 18:56 |
|
System86 13 Apr 2008, 19:04
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 |
|||
13 Apr 2008, 19:04 |
|
steward 13 Apr 2008, 19:32
thanks.but i want the code in assembly.
|
|||
13 Apr 2008, 19:32 |
|
edfed 13 Apr 2008, 19:42
Code: int 11h test al,1 jz nodrive test al,2 jz nocopross test al,4 jz nopointingdevice test al,8 jz notusedonPS2 .... ... .. Last edited by edfed on 13 Apr 2008, 19:44; edited 1 time in total |
|||
13 Apr 2008, 19:42 |
|
f0dder 13 Apr 2008, 19:43
steward wrote: thanks.but i want the code in assembly. _________________ - carpe noctem |
|||
13 Apr 2008, 19:43 |
|
steward 13 Apr 2008, 19:45
what is the meaning of 'test' in code?
|
|||
13 Apr 2008, 19:45 |
|
edfed 13 Apr 2008, 19:56
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 |
|||
13 Apr 2008, 19:56 |
|
System86 13 Apr 2008, 19:58
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 |
|||
13 Apr 2008, 19:58 |
|
edfed 13 Apr 2008, 20:00
cos(eax+eip*1024)
|
|||
13 Apr 2008, 20:00 |
|
steward 13 Apr 2008, 20:04
Thanks alot
|
|||
13 Apr 2008, 20:04 |
|
steward 13 Apr 2008, 20:16
Help me please.
complete source.please.i am in trouble |
|||
13 Apr 2008, 20:16 |
|
edfed 13 Apr 2008, 20:19
no, if you want to learn assembly art, you should learn to think by yourself.
non mais ho! c'est pas la fete ici... |
|||
13 Apr 2008, 20:19 |
|
f0dder 13 Apr 2008, 20:20
steward wrote: Help me please. f0dder wrote: Dump the assembly course, and try again next semester - but that time, pay attention in class. |
|||
13 Apr 2008, 20:20 |
|
steward 13 Apr 2008, 20:20
I said i am new.i am networkman not developer.
help please |
|||
13 Apr 2008, 20:20 |
|
edfed 13 Apr 2008, 20:22
if i help you, first, you should give me the documentations of my network card.
Accton EN2242 for omnibook. thanks. |
|||
13 Apr 2008, 20:22 |
|
steward 13 Apr 2008, 20:28
Thank you.sir.you are not a good man.I said i am in trouble.
|
|||
13 Apr 2008, 20:28 |
|
edfed 13 Apr 2008, 20:32
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. |
|||
13 Apr 2008, 20:32 |
|
steward 13 Apr 2008, 20:35
What do u want to do with its Documentation?i think u can find it easy in google.
|
|||
13 Apr 2008, 20:35 |
|
Goto page 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.