impl of screen ghosting

This commit is contained in:
minjaesong
2020-05-16 09:06:17 +09:00
parent 772354d2d1
commit 57c16bcb44
8 changed files with 217 additions and 113 deletions

View File

@@ -21,14 +21,14 @@ User area: 8 MB, hardware area: 8 MB
1024 kB
Peripheral #7
...
1024 kB
1024 kB (where Peripheral #0 would be)
MMIO and Interrupt Vectors
128 kB
MMIO for Peri #8
128 kB
MMIO for Peri #7
...
128 kB
128 kB (where Peripheral #0 would be)
MMIO for the computer
130816 bytes
MMIO for Ports, etc.
@@ -40,6 +40,7 @@ User area: 8 MB, hardware area: 8 MB
IO Device
Endianness: little
Note: Always takes up the peripheral slot of zero
MMIO
@@ -54,6 +55,8 @@ MMIO
close it. Keyboard buffer will be cleared whenever request is received, so
MAKE SURE YOU REQUEST THE KEY INPUT ONLY ONCE!
64..67 RO: User area memory size in bytes
--------------------------------------------------------------------------------
@@ -102,25 +105,25 @@ FI
MMIO
2 bytes RO
0..1 RO
Framebuffer width in pixels
2 bytes RO
2..3 RO
Framebuffer height in pixels
1 bytes RO
4 RO
Text mode columns
1 bytes RO
5 RO
Text mode rows
1 bytes RW
6 RW
Text-mode attributes
0b kkkk 00rc (k: currently using character rom, r: TTY Raw mode, c: Cursor blink)
1 bytes RW
7 RW
Graphics-mode attributes
0b 0000 000g (g: Use sprites(wipes out text buffer))
1 bytes RO
8 RO
Last used colour (set by poking at the framebuffer)
1 bytes RW
9 RW
current TTY foreground colour (useful for print() function)
1 bytes RW
10 RW
current TTY background colour (useful for print() function)
Text-mode-font-ROM is immutable and does not belong to VRAM