Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MODE command (Developers)

posted by DosWorld, 22.10.2021, 03:35
(edited by DosWorld on 22.10.2021, 05:54)

> The MODE command

I am never keep this program on my hard drive (answer from 199x years)

> What do you think "best practice" should be?

(IMHO)
If you want develop in modern way - you must extend MODE and invent something new for BIOS call.
If you want develop in oldschool way - forget about MODE+BIOS and provide FOSSIL-driver api (MODE+FOSSIL ?).

FOSSIL-driver strong used in FTN-software (and many BBS).

C. Basic principles of a FOSSIL driver

    1)  Interrupt 14H.

    The one basic rule that the driver depends upon,  is the ability for ANY
    target machine to allow the vector for INT 14H (usually pointing to BIOS
    comm functions) to be "stolen" by the driver.  In a system where the INT
    14H vector is used already, it must be possible to replace the "builtin"
    functionality with that of a FOSSIL,  when an application that wants the
    use of a FOSSIL is to be run on the target machine.

...

D. Functions currently defined for FOSSILs

    AH = 00H    Set baud rate
                Input:  AL = baud rate code
                        DX = port number

    This works the same as the  equivalent IBM PC BIOS call,  except that it
    ONLY selects a baud rate.  This is passed in the high order 3 bits of AL
    as follows:

                010 =   300 baud
                011 =   600  ''
                100 =  1200  ''
                101 =  2400  ''
                110 =  4800  ''
                111 =  9600  ''
                000 = 19200  '' (Replaces old 110 baud mask)
                001 = 38400  '' (Replaces old 150 baud mask)


etc

http://ftsc.org/docs/fsc-0008.001
http://ftsc.org/docs/fsc-0015.001

---
Make DOS great again!

Carthago delenda est, Ceterum censeo Carthaginem delendam esse.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 237 users online (0 registered, 237 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum