flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > 80x50 text mode |
Author |
|
Chewy509 19 Jun 2005, 23:50
Just switch to mode 03h, and load the 8x8 font.
Code: ;Set 80x50 text mode... mov ax, 0003h int 10h ;first set mode 03h xor bx, bx mov ax, 1112h int 10h ;load 8x8 font (we hope that controller has ; an internal font that we can use). After that, it works the same way as 80x25, except you now have more lines to play with. (If you would like the code to do it without using the BIOS, let me know and I'll post it up). |
|||
19 Jun 2005, 23:50 |
|
woody 20 Jun 2005, 00:29
Hi all.
So just to be clear, I can address this like normal (b800). Thanks in advance Woody P.S. Could you post the none BIOS code. Thanks. |
|||
20 Jun 2005, 00:29 |
|
Dex4u 20 Jun 2005, 01:09
You can use it just like 80x25, but if you are using it in your own OS you need to remember when making your screen functions, that the screen is "50" not "25" for things like scroll, clear screen etc.
My OS called "Dex4u" users that mode for the CLI. http://falconrybells.co.uk/screenshots.htm Also note that BOCHs may not display the fonts right, when emulating. |
|||
20 Jun 2005, 01:09 |
|
Chewy509 20 Jun 2005, 04:00
woody wrote: So just to be clear, I can address this like normal (b800). By all means, YES. For the non-BIOS version, goto: http://chewy509.atspace.com/index.html and download the LOST source. The files you are after are: Lost/SRC/DRIVERS/6845.asm <-- high level functions (write_str, move cursor, etc) Lost/SRC/DRIVERS/6845_txt.asm <-- contains the mode switch code. Lost/SRC/DRIVERS/mode03.fon <-- font Lost/SRC/DRIVERS/mode03.reg <-- Register equates The source is in NASM, so shouldn't be a problem to port over to FASM. The code is heavily based on the many mode switch tutorials available on the net, so I won't take credit for it. But AFAIK it is public domain. |
|||
20 Jun 2005, 04:00 |
|
woody 20 Jun 2005, 11:01
Hi all.
Thanks for the help Chewy509 the first reply works like a treat. There seems to be something wrong with your website, when I try to download the required files I think your host starts to complain with any error message. Thanks Woody. |
|||
20 Jun 2005, 11:01 |
|
smiddy 20 Jun 2005, 11:27
I got he same thing...404 no such file or directory.
|
|||
20 Jun 2005, 11:27 |
|
Chewy509 20 Jun 2005, 23:16
Fixed, you should be able to get the file now!
|
|||
20 Jun 2005, 23:16 |
|
woody 20 Jun 2005, 23:19
Thanks....
|
|||
20 Jun 2005, 23:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.