mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-12 23:54:04 +09:00
impl of screen ghosting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user