PO/ ARM Linux runs well on 32 bit color display. Color is supported in System and Text. However, characters are written in invert mode. From TextFrames.DisplayLine: Display.CopyPattern(R.col, patadr, X + x, Y + y, Display.invert) So on white background with black characters, you see exactly nothing. Is there a flexible/standard solution for these kinds of problems? Also, is there a standard to inititialze the colors? Frankly, I am absolutely fascinated by the compiler but less exited by the System. Sometimes I really wonder that it works at all. From Texts.Load: q.voff := ASR(LSL(bt, -24), 24); Regards, Peter
Hi
From TextFrames.DisplayLine: Display.CopyPattern(R.col, patadr, X + x, Y + y, Display.invert)
So on white background with black characters, you see exactly nothing.
When introducing colors to the FPGA Oberon system you indeed have to do change the line above to Display.CopyPattern(R.col, patadr, X+x, Y+y, Display.paint) But even here it can happen that you don‘t see anything if you write with red font on red background... BTW: there is some room for interpretation how to map the 0 in B/W patterns... What to do with 0 and the following modes: - paint: leave screen or set to bg color? - replace: leave screen or set to bg color? In my color implementation „paint“ and „replace“ are treated identically and the 0 leave the screen untouched.
Is there a flexible/standard solution for these kinds of problems? If yo really want TextFrames to work with B/W and color, you have to detect the nbr of colors from Display and set the mode accordingly.
Also, is there a standard to inititialze the colors? Every OS is free to use the colors as it likes. If you port an application from Linux to Windows to macOS and the application uses absolute colors, there is no need for a standard as the application defines the colors (eg 24bit RGB) If however the OS offers indexed colors, the application only uses indices in a color table, and the color table is NOT initialized by the application itself, then the application looks differently on the different OS.
I enhanced NWs original PO on FPGA from B/W to 16 indexed colors (by changing Verilog source and Display.Mod) and initialized the color table with these Master Color Values: (table 1) http://www.gno.org/pub/apple2/doc/apple/technotes/iigs/tn.iigs.063
Frankly, I am absolutely fascinated by the compiler but less exited by the System. Sometimes I really wonder that it works at all. The fascinating bit of the Oberon System is that it is so small: A working OS <111 kB (without compiler)
From Texts.Load: q.voff := ASR(LSL(bt, -24), 24);
Thats the „standard“ way to upscale a signed 8bit vale to a signed 32bit value😊 It’s equivalent to IF bt<127 THEN q.voff := bt ELSE q.voff := bt-256 END; Jörg
From Texts.Load: q.voff := ASR(LSL(bt, -24), 24);
Fascinating. Wonderful. I love it. I hope to never see anything like that in any program written by my employees. OK, so I am now ordering "Program Style, Design, Efficiency, Debugging, and Testing" 2nd Edition by Dennis Van Tassel from Amazon. W.
Am 09.12.2017 um 04:27 schrieb Jörg Straube:
I enhanced NWs original PO on FPGA from B/W to 16 indexed colors (by changing Verilog source and Display.Mod)
Is the source of Display.Mod available?
If yo really want TextFrames to work with B/W and color, you have to detect the nbr of colors from Display and set the mode accordingly.
I just want to port the system without touching many higher level modules.
and initialized the color table with these Master Color Values: (table 1) http://www.gno.org/pub/apple2/doc/apple/technotes/iigs/tn.iigs.063
Thanks. As someone already uses this definition, it makes sense for me to use the same. Than I suppose white is defined as 0FH? I think best definition would be -1. However I am kind of reluctant to change the interface.
Frankly, I am absolutely fascinated by the compiler but less exited by the System. Sometimes I really wonder that it works at all. The fascinating bit of the Oberon System is that it is so small: A working OS <111 kB (without compiler)
From Texts.Load: q.voff := ASR(LSL(bt, -24), 24);
I suppose this came from porting to Oberon-07 and was q.voff := ASH(SYSTEM.LSH(bt, 24), -24) before. As some code obviosly is not needed, it could even be smaller ;-) Peter
participants (3)
-
Jörg Straube -
Peter Matthias -
Skulski, Wojciech