|
Re: assembly
|
Veit Kannegieser
|
Feb 27, 2004 05:20 PST
|
Chris Hoppman wrote:
| | asm
mov ah,04h
mov dx,FosPort
mov bx,4f50h
int 14h <--- this part.
mov t_ax,ax
end;
|
This uses function
INT 14 - SERIAL - EXTENDED INITIALIZE (CONVERTIBLE,PS)
AH = 04h
AL = break status
00h if break
01h if no break
BH = parity (see #00307)
BL = number of stop bits
00h one stop bit
01h two stop bits (1.5 if 5 bit word length)
CH = word length (see #00308)
CL = bps rate (see #00309)
DX = port number
Return: AX = port status code (see #00304,#00305)
| | I was am under the assumtion you could include calls
to bios interrupts via the asm code block.
|
Sure, but only for DOS targets. for 'real' operating
systems, you have to use filesystem like functions
(open COMx, do some control messages,..)
Usually, you would use some communication library unit.
Veit Kannegieser
|
|
 |
|