videochargen/const.h

21 lines
650 B
C
Raw Normal View History

2021-06-27 19:57:02 +00:00
#pragma once
2022-11-04 20:02:53 +00:00
#define FRAME_SYSCLOCK_WIDTH 1024 // [sysclock]
#define FRAME_LINE_HEIGHT 256 // [line]
2021-07-03 13:44:01 +00:00
2022-11-04 20:02:53 +00:00
#define BACK_PORCH_SYSCLOCK_OFFSET 80 // [sysclock]
#define FRONT_PORCH_SYSCLOCK_OFFSET 40 // [sysclock]
2022-11-04 19:51:43 +00:00
2022-11-04 20:02:53 +00:00
#define SPRITE_PIXEL_WIDTH 80 // [sysclock]
#define SPRITE_LINE_HEIGHT 64 // [line]
#define SYSCLOCK_PER_PIXEL 4
#define SPRITE_SYSCLOCK_WIDTH (SPRITE_PIXEL_WIDTH * SYSCLOCK_PER_PIXEL)
2022-11-04 19:51:43 +00:00
// Time spent from the horizontal sync pulse,
// to the first displayed dot.
2022-11-04 20:02:53 +00:00
// This is given as the sum of:
// + HSYNC_INT_TUNE
// + HSYNC_TIMER_TUNE
// + sysclock duration of "C" interrupt part
#define HSYNC_SYSCLOCK_TUNE 70 // [sysclock] (approx)