Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

160x100 modeset not complete #2

Open
dschmenk opened this issue Feb 13, 2022 · 2 comments
Open

160x100 modeset not complete #2

dschmenk opened this issue Feb 13, 2022 · 2 comments

Comments

@dschmenk
Copy link

After trying your code, it didn't really work. I see what you're trying to do, so I re-thunk the approach. By using some of the built-in BIOS calls to get the state of the character generator and loading a bogus font with a quarter the cell height, the 160x100 mode can easily be set in a more compatible way. Here was my solution - hopefully you can use it for your mode set, too: https://github.com/dschmenk/LORES/blob/main/SRC/LORES.C

@drwonky
Copy link
Owner

drwonky commented Apr 2, 2023

I'm not quite sure what you mean by "modeset note complete". This code doesn't really change mode, just twiddles the scan lines per character and total scanlines. It doesn't fundamentally change the display mode (it remains text mode).

@dschmenk
Copy link
Author

dschmenk commented Apr 3, 2023

Your code wasn't fully compatible with the VGA I used. A simple BIOS call to change the character height fixed it an a way that should work across all VGAs. I also added EGA mode set to emulate the same 160x100x16 mode, too. It was much more involved. I moved the above code file to here, if you're interested: https://github.com/dschmenk/LORES/blob/main/SRC/LIB/LORES.C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants