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, 21h (33) read or write post error log ps/2</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 15h, 21h (33)          Read or Write POST Error Log           PS/2

        Used internally by BIOS in Power-On Self Test (POST).

   AL = 00 Read POST Error Log

             On entry:          AH     21h

                                AL      00 . Read POST Error Log

             Returns:           ES:DI   Address of POST Error Log
                                BX      Number of POST error codes stored
                                CF      0
                                AH      00h

  ---------------------------------------------------------------------------
   AL = 01h Write Error to POST Log

             On entry:          AH     21h

                                AL      01 . Write to POST Error Log

                                BX      POST 16-bit error code
                                        BH = device code
                                        BL = device error

         Returns:               CF      = 0 . success
                                        = 1 . log is full

                                AH      = 0 . success, error stored
                                        = 1 . log is full, error not stored

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

     This service is used by BIOS during the Power-On Self Test (POST). If
     errors occur, they are recorded in the POST log. The Power-On Self Test
     is concerned with hardware; there is little of value to the applications
     programmer in this service.

     If you want to read the POST log, use Subservice 00h. On return,
     ES:DI will point to the error log, which contains two-byte POST error
     codes.

     To place error codes in the POST log (only BIOS should do this), use
     Subservice 01h. Place the 16-bit error in BX (BH = device code, BL
     = device error). If the carry flag is not set on return, the error has
     been stored in the log.



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