Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

General • Re: BBC BASIC on the Raspberry Pi Pico?

$
0
0
But for other display types it looks like it would get messy pretty quickly. I intended to just fudge mode changes anyway so a particular display would have a correct mode and other ...less than correct modes.
Given that writing to the display is done via what I guess we'd call ROM routines, even adding a dirty bit or something for when the display updates would be enough to really cut down on bandwidth usage.
Probably the best way to support SPI type displays (or other displays with their own frame buffer) is to write your own replacement for src/fbufvdu.c. You need to supply versions of the following routines:

Code:

void getcsr(int *px, int *py);int vpoint (int xp, int yp);int vtint (int xp, int yp);int vgetc (int x, int y);int widths (unsigned char *s, int l);void xeqvdu (int code, int data1, int data2);
Of these, xeqvdu is he main drawing routine. See the BBC BASIC manual for VDU commands to see the options. It is not necessary to support all of these, you can just generate an error for unsupported options. If the display comes with a driver library then it is only necessary to map the VDU commands onto calls to the relevant driver routines.

Statistics: Posted by Memotech Bill — Mon Nov 11, 2024 8:39 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles