Welcome Guest!
 VirtualPascal
 Previous Message All Messages Next Message 
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
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.