Skip to content

VECHO / V8Power relies on video rows count BIOS variable being initialized, but it is not guaranteed to be initialized #4

Description

@skiselev

I've received the a pull request for my 8088 BIOS: skiselev/8088_bios#42

This pull request supposed to fix an issue where the 8088 BIOS does not initialize video row count BIOS variable at 0040:0084.

Upon closer investigation, it appears that the system BIOS is not guaranteed and not supposed to initialize this variable. VGA and EGA BIOS extensions do initialize it though.

The code here

mov bl, [es:0x0084]
should be updated to validate that the BIOS indeed populates the right value in that variable, or use some another way to detect the screen height

Activity

  1. shidel commented on Nov 7, 2025

    @shidel
    Contributor

    @skiselev, I apologize for either not seeing or forgetting about this issue until today. While V8PT only officially supports EGA or better, I plan on trying to allocate some time this coming weekend to look into this variable. I will likely add a test for a "sane" value. If the value is not within a reasonable range (14-60 rows), then assume it has not been initialized and use 25 rows.

  2. self-assigned this
    on Nov 7, 2025
  3. shidel commented on Nov 16, 2025

    @shidel
    Contributor

    @skiselev, Again, I am sorry it took so long to get to this. But finally, I added a Sanity Check to the initialization of the Row Count in the last commit. Hopefully, this will help on sub-EGA hardware.

    51750b6#diff-5ecac2b5b26fe54af95039c6cad832ac7cce727cee321d01f1f88b0bf281fb58R2149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions