videochargen/const.h
2022-11-04 21:44:20 +01:00

21 lines
650 B
C

#pragma once
#define FRAME_SYSCLOCK_WIDTH 1024 // [sysclock]
#define FRAME_LINE_HEIGHT 256 // [line]
#define BACK_PORCH_SYSCLOCK_OFFSET 80 // [sysclock]
#define FRONT_PORCH_SYSCLOCK_OFFSET 40 // [sysclock]
#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)
// Time spent from the horizontal sync pulse,
// to the first displayed dot.
// 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)