horyzontally centered image in CRT

This commit is contained in:
Daniele Verducci su MatissePenguin 2021-02-12 19:23:08 +01:00
parent b395a4dd21
commit c90516ab51
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ main:
; test draw character routine
call cursor_pos_home
ldi r19, 12
ldi r19, 14
dctest:
ldi r18, 0x21
draw_chars:

View File

@ -29,7 +29,7 @@
.equ TIMER_DELAY_30US = 65535 - 690 ; 719 cycles @ 24Mhz (minus overhead)
.equ TIMER_DELAY_2US = 65535 - 17 ; 48 cycles @ 24Mhz (minus overhead)
.equ BACK_PORCH_DELAY = 258 ; 186 cycles back porch + 72 cycles to leave 3 chunks empty (image padding)
.equ BACK_PORCH_DELAY = 234 ; 186 cycles back porch + 48 cycles to leave 2 chunks empty (image padding)
; ********* FUNCTIONS CALLED BY INTERRUPT ***********
@ -1350,7 +1350,7 @@ draw_line:
; chunk 47, 48, 49 (blank)
clr A ; 1 cycle
out VIDEO_PORT_OUT, A ; 1 cycle
ldi VG_HIGH_ACCUM, 23 ; 1 cycle
ldi VG_HIGH_ACCUM, 31 ; 1 cycle
eol_porch_loop: ; requires 3 cpu cycles
dec VG_HIGH_ACCUM ; 1 cycle
brne eol_porch_loop ; 2 if jumps, 1 if continues