On 04/07/2016 17:26, Kevin O'Connor wrote:
4k, we need both character and attribute. But, yes, if we can allocate that somewhere in real mode address space without running into memory pressure this might be the best option.
Unfortunately, the screen can be larger than 80x25.
It can with SVGA BIOS, but Gerd here only supports mode 3, doesn't he?
Paolo
If a large buffer is desired, it's also possible to malloc_high() it and then use either: call32() to access it, or int1587 to read/write it (see ramdisk.c:ramdisk_copy() as an example). Either way it seems ugly.
At one point I looked through the sgabios code and was able to understand how it did caching. I'll take another look and see if I can describe it.