[FYI] VGA, 50xH, single cog, per cell colour ("Despair and Hope" release)
kuroneko
Posts: 3,623
This took some head scratching but you know how it is with impossible things here. The new driver features:
Despair and Hope
Have fun!
- per cell colour (foreground and background)
- monochrome mode (when you're short on hub memory)
'' mailbox layout '' '' long[par][0]: screen: [!Z]:addr = 16:16 -> zero (accepted), required during startup '' long[par][1]: font: size:[!Z]:addr = 8:8:16 -> zero (accepted), required during startup '' long[par][2]: palette: c/a:Z:[!Z]:addr = 1:1:14:16 -> zero (accepted), optional colour [buffer] '' long[par][3]: frame indicator '' '' The colour buffer is either an address (%00-//-00) or a colour value (%10-//---).Apologies for the rather fat cog image. Note, the demo won't run when compiled with bst[c]. PropTool and spin (rev 33+) are fine.
Despair and Hope
Have fun!
Comments
Great work BTW!
I can feel a new display driver coming on for CP/M, wordstar, Catalina C etc etc. You could add the ANSI escape sequences for color.
Great work, well done.
Do we have a config for WordStar that works in 50 columns?
Great work Marko!
@all
FYI, I have some work done mating code from PocketTerm by Vince Briel and PullMoll's 80x30 vga-0.3 driver.
But it's aimed at a stand-alone ANSI terminal, more or less what Smalldog was asking in the other thread (dual serial port, and 7 cogs total).
Also adapted to Potatohead's text driver, so there's TV version too. Will post asap, little busy now.
This new driver from Kuroneko is best for stand alone emulators: free resources to play "Despair and Hope" theme
Edit: Also, what crystal are you using?
OBC
Added a very basic "plot" command, could use some refinement as it uses an entire character at the moment.
Todo: Figure out how to redefine a character on the fly.
OBC
OBC
Question, (See attached)
Is there a way to get color fonts and plot working at the same time? If I remark the vga.setn(2, @palette{0}) line, the plot command works well. If I leave it in, the plot command is influence by the text colors which were on the screen.
jeffs_demo2.zip
OBC
So as a quick fix add cext := @plte{0} before the driver.init() call e.g. and don't call setn from the top level object.
Note that the plot command only affects the foreground colour so the top of the screen will retain the background from the previous text output.
/me goes back to working on an easy UI....
OBC
OBC
Got carried away cleaning up the "Document" version of the code which displays that.
Fixed in original link.
OBC
Edit: it works when compiled by Propeller Tool under Windows... What is wrong with bst??
with this:
... and it now works with bst (and no need to boot Windows)
OBC