flat assembler
Message board for the users of flat assembler.
Index
> Main > writing more than byte to port |
Author |
|
Pavia 20 Jul 2007, 01:28
Is undoc.
IMHO For all ports. Code OUT DX,AX write AL in DX and AH in DX+1. Execpt only HDD Data Register |
|||
20 Jul 2007, 01:28 |
|
revolution 20 Jul 2007, 04:47
The I/O system is similar to the memory system as far as where the bytes go.
You can write OUT dx,ax and two bytes are sent the port, the lsb to dx, and msb to dx+1. The same for a 32bit write, lsb to dx and msb to dx+3. If you have an older machine (ISA bus) then some hardware cards did not support 16 bit writes so you also need to be mindful of what device you are writing to. |
|||
20 Jul 2007, 04:47 |
|
MazeGen 20 Jul 2007, 07:23
Intel Basic Architecture Manual wrote: Any two consecutive 8-bit ports can be treated as a 16-bit port, and any four consecutive Intel Instruction Set Manual wrote: The size of the I/O port being accessed is determined by the opcode for an 8-bit I/O Code: OUT DX, AL ; 8-bit port OUT DX, AX ; 16-bit port OUT DX, EAX ; 32-bit port Note that there is no OUT DX, RAX instruction. |
|||
20 Jul 2007, 07:23 |
|
vid 20 Jul 2007, 09:30
thanks...
|
|||
20 Jul 2007, 09:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.