[Oberon] FPGA - Display.Mod 4-bit colour
Skulski, Wojciech
skulski at pas.rochester.edu
Fri Aug 10 13:52:29 CEST 2018
________________________________________
From: Oberon [oberon-bounces at lists.inf.ethz.ch] on behalf of Tomas Kral [thomas.kral at email.cz]
Sent: Friday, August 10, 2018 7:38 AM
To: Oberon at lists.inf.ethz.ch
Subject: [Oberon] FPGA - Display.Mod 4-bit colour
Hi,
I wish to modify `Display.Mod' to accept 4-bit colour. Standard
interface currently supports 1-bit colour only.
PROCEDURE Dot*(col, x, y, mode: INTEGER);
PROCEDURE ReplConst*(col, x, y, w, h, mode: INTEGER);
PROCEDURE CopyPattern*(col, patadr, x, y, mode: INTEGER);
PROCEDURE CopyBlock*(sx, sy, w, h, dx, dy, mode: INTEGER);
PROCEDURE ReplPattern*(col, patadr, x, y, w, h, mode: INTEGER);
I have a version of VID.v with 4-bit pixels and a 16 entry colour
lookup table. So `col' parameter in the range {0..15} defines index
into that table.
Looking at the code, I realise each display line takes 128 bytes 1-bit.
4-bit it must be 4*128. While single word sets 1-bit colour of 32
pixels, and only 8 pixels of 4-bit colour, correct?
I am generally seeking advice for the good starting point, also hwoto
set up a test environment for quick tests turnaround? My idea was to
make a standalone boot program accepting draw commands over serial.
I may start with `ReplConst' (font rendering), and `ReplConst' (line
drawing).
I wonder how much of the original code I could reuse, just extending
the loop count, and some 4-bit manipulation?
Many thanks in advance.
--
Tomas Kral <thomas.kral at email.cz>
--
Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.inf.ethz.ch_mailman_listinfo_oberon&d=DwICAg&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=uUiA_zLpwaGJIlq-_BM9w1wVOuyqPwHi3XzJRa-ybV0&m=rgc4UlGJzkV0C0pi7Xsmf4LQ8NvkToduvf4OWisbBlA&s=Ihyl9pTNMCya05s4QzVnlF4GNIGd0QCGHTpOWcd69Rc&e=
More information about the Oberon
mailing list