Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>int 15h, 40h (64) read/modify profiles convertible</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 15h,  40h (64)       Read/Modify Profiles                     Convertible

    Read or modify the system or modem parameters (PC Convertible only).

       On entry:      AH         40h
                      AL         Subservice
                                 0 - Read system profile
                                 1 - Modify system profile
                                          CX - System profile (see below)
                                          BX - System profile (see below)
                                 2 - Read internal modem profile
                                 3 - Modify internal modem profile
                                          BX - Internal modem profile (see
                                          below)

       Returns:       CF         Set if error, else cleared
                      AL         0 if successful, else non-0
                      BX         Modified for Subservices 0 (System Profile)
                                 and 2 (Modem Profile)
                      CX         Modified for Subservice 0 (System Profile)

  --------------------------------------------------------------------------

  System Profile

       BX format
       Bit 15         0  - Set system cold start mode
                      1* - Set system warm start mode

       Bit 14         0  - Disable low battery warning message
                      1* - Enable low battery warning message

       Bits 13,12     Startup video mode
                                 00  - Reserved
                                 01  - 40 x 25 monochrome using CGA/LCD
                                 10* - 80 x 25 monochrome using CGA/LCD
                                 11  - 80 x 25 monochrome using MONO/LCD

       Bits 11,10     LCD bright attribute
                                 00* - Ignore LCD bright attribute
                                 01  - Map LCD bright to underscore
                                 10  - Map LCD bright to reverse video
                                 11  - Map LCD bright to alternate font

       Bit 9          0* - Internal modem not available on battery power
                      1  - Internal modem available on battery power

       Bit 8          0* - RS-232/Parallel available on battery power
                      1  - RS-232/Parallel available on battery power

       Bits 7-0 (BL)  Reserved

   CX -- System Profile

       Bits 15-8      (CH)       Time before LCD will blank on lack of
                                 keyboard activity.
                                 Time is in minutes. A 0 disables this
                                 feature.
       Bits 7-0       (CL)       Time before system power off on lack of
                                 keyboard activity.
                                 Time is in minutes. A 0 disables this
                                 feature.

   BX -- Modem Profile

       Bits 15,14     Reserved
       Bit  13        0* - Manual Answer
                      1  - Automatic Answer
       Bits 12-10     Parity and framing
                                 000  - Mark, 7-bit data
                                 001  - Space, 7-bit data
                                 010  - Odd, 7-bit data
                                 011* - Even, 7-bit data
                                 100 - None, 8-bit data
                                 101 - Reserved
                                 110 - Reserved
                                 111 - Reserved
       Bits 9,8       Modem data rate
                                 00  - 110 bits per second
                                 01  - 300 bits per second
                                 10* - 1200 bits per second
                                 11 -- 2400 bits per second
       Bits 7-0       (BL)       Reserved

       * signals the default setting after power loss

  --------------------------------------------------------------------------

       Notes:         This service is available only for the PC
                      Convertible.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson