forked from TCShenanigans/symphony_stdlib
19 lines
588 B
NASM
Executable File
19 lines
588 B
NASM
Executable File
; Addresses of global variables
|
|
|
|
; If not double buffering these point to the same buffer
|
|
pub const FB_DISPLAY_PTR = 16 ; U32 Currently displayed buffer
|
|
pub const FB_DRAW_PTR = 20 ; U32 Draw to this buffer
|
|
pub const FRAME_BUFFER_SIZE = 24 ; U32
|
|
pub const PIXEL_WIDTH = 28 ; U16
|
|
pub const PIXEL_HEIGHT = 30 ; U16
|
|
|
|
; Log2 of width in pixels, e.g.
|
|
; * 10 => 1024 * 768
|
|
pub const LOG_WIDTH = 32 ; U8
|
|
|
|
pub const BYTES_PER_PIXEL = 33 ; U8
|
|
; Log2 of bytes per pixel
|
|
; * 0 => 8 bits per pixel
|
|
; * 2 => 32 bits per pixel
|
|
pub const LOG_BPP = 34 ; U8
|