INT 5C - NETBIOS INTERFACE                          

        ES:BX -> Network Control Block
          Subfunction in first NCB field (or with 80h for non-waiting call)
                10h start session with NCB_NAME name (call)
                11h listen for call
                12h end session with NCB_NAME name (hangup)
                14h send data via NCB_LSN
                15h receive data from a session
                16h receive data from any session
                17h send multiple data buffers
                20h send unACKed message (datagram)
                21h receive datagram
                22h send broadcast datagram
                23h receive broadcast datagram
                30h add name to name table
                31h delete name from name table
                32h reset adapter card and tables

                33h get adapter status
                34h status of all sessions for name
                35h cancel
                36h add group name to name table
                70h unlink from IBM remote program (no F0h function)
                71h send data without ACK
                72h send multiple buffers without ACK
                78h find name
                79h token-ring protocol trace

Return: AL = status
                00h successful
                01h bad buffer size
                03h invalid NETBIOS command
                05h timeout
                06h receive buffer too small
                08h bad session number
                09h LAN card out of memory
                0Ah session closed
                0Bh command has been cancelled
                0Dh name already exists
                0Eh local name table full
                0Fh name still in use, can't delete
                11h local session table full
                12h remote PC not listening
                13h bad NCB_NUM field
                14h no answer to CALL or no such remote
                15h name not in local name table
                16h duplicate name

                17h bad delete
                18h abnormal end
                19h name error, multiple identical names in use
                1Ah bad packet
                21h network card busy
                22h too many commands queued
                23h bad LAN card number
                24h command finished while cancelling
                26h command can't be cancelled
                FFh NETBIOS busy

        Structure of Network Control Block:
                BYTE  ncb_command
                BYTE  ncb_retcode
                BYTE  ncb_lsn
                BYTE  ncb_num
                DWORD -> ncb_buffer
                WORD  ncb_length
             16 BYTEs ncb_callname
             16 BYTEs ncb_name
                BYTE  ncb_rto
                BYTE  ncb_sto
                DWORD -> ncb_post       /* int (far *ncb_post)(); */
                BYTE  ncb_lana_num
                BYTE  ncb_cmd_cplt
             14 BYTEs ncb_reserve

        Structure name:
             16 BYTEs nm_name
                BYTE  nm_num
                BYTE  nm_status

        Structure status:
              6 BYTEs as_id
                BYTE  as_jumpers
                BYTE  as_post
                BYTE  as_major
                BYTE  as_minor
                WORD  as_interval
                WORD  as_crcerr
                WORD  as_algerr
                WORD  as_colerr
                WORD  as_abterr
                DWORD as_tcount
                DWORD as_rcount
                WORD  as_retran
                WORD  as_xresrc
              8 BYTEs as_res0
                WORD  as_ncbfree
                WORD  as_ncbmax
                WORD  as_ncbx

              4 BYTEs as_res1
                WORD  as_sespend
                WORD  as_msp
                WORD  as_sesmax
                WORD  as_bufsize
                WORD  as_names
             16 name structures  as_name

Note:   Sytek PCnet card uses DMA 3.


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .