[SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-01 Thread Paolo Bonzini
GWBasic relies on this, so implement it to enable some serious retrocomputing. There is no better way to do it than trying to match all characters one by one against the current font. This makes it possible to actually do something in SCREEN 1 and SCREEN 2 (without it, you can use graphics in the

Re: [SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-01 Thread Kevin O'Connor
On Thu, Jan 01, 2015 at 09:27:47PM +0100, Paolo Bonzini wrote: > GWBasic relies on this, so implement it to enable some serious retrocomputing. Heh. [...] > I couldn't find documentation for what to return as the attribute, but > experimenting with DOSBox suggests 0 (and GWBasic accepts it). Jus

Re: [SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-02 Thread Paolo Bonzini
On 02/01/2015 04:40, Kevin O'Connor wrote: > > I couldn't find documentation for what to return as the attribute, but > > experimenting with DOSBox suggests 0 (and GWBasic accepts it). > > Just for reference, for the "cbvga" text mode emulation, I grab the > background attribute by assuming the l

Re: [SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-02 Thread Rudolf Marek
Hi, If you want to go even more retro. Check ROM BASIC I extracted from old 286. I programmed a ROM loader to it, so SeaBIOS can load it from misc/ http://assembler.cz/rombasic.rom This is a complete ROM already. I have even an MP3 with cassette recored of IBM diag tools, which I converted to RO

Re: [SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-02 Thread Kevin O'Connor
On Fri, Jan 02, 2015 at 09:36:13AM +0100, Paolo Bonzini wrote: > On 02/01/2015 04:40, Kevin O'Connor wrote: > > > I couldn't find documentation for what to return as the attribute, but > > > experimenting with DOSBox suggests 0 (and GWBasic accepts it). > > > > Just for reference, for the "cbvga" t

Re: [SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-02 Thread Kevin O'Connor
On Thu, Jan 01, 2015 at 09:27:47PM +0100, Paolo Bonzini wrote: > GWBasic relies on this, so implement it to enable some serious retrocomputing. > There is no better way to do it than trying to match all characters one by one > against the current font. > > This makes it possible to actually do som

Re: [SeaBIOS] [PATCH 2/2] vgabios: implement read char in graphics mode

2015-01-02 Thread Paolo Bonzini
On 02/01/2015 18:43, Kevin O'Connor wrote: > On Thu, Jan 01, 2015 at 09:27:47PM +0100, Paolo Bonzini wrote: >> GWBasic relies on this, so implement it to enable some serious >> retrocomputing. >> There is no better way to do it than trying to match all characters one by >> one >> against the cu