Started with font rendering
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
.define DATA_DELAY 4
|
||||
.define LINE_IRQ 0
|
||||
.define HSHIFT_DELAY 0
|
||||
.define PUBLIC CLOCKS_PER_BIT DATA_DELAY + 2
|
||||
|
||||
.program cvsync
|
||||
@@ -85,15 +86,16 @@ hsync_video:
|
||||
; X = pixels_per_line - 1, preloaded once from C
|
||||
; Each line:
|
||||
; clear output
|
||||
; reload Y from X
|
||||
; wait for sync SM to raise LINE_IRQ
|
||||
; apply a small extra delay for horizontal positioning
|
||||
; reload Y from X
|
||||
; shift out one bit per loop
|
||||
|
||||
.wrap_target
|
||||
set pins, 0
|
||||
mov y, x
|
||||
wait 1 irq LINE_IRQ
|
||||
irq clear LINE_IRQ
|
||||
mov y, x
|
||||
|
||||
data_out:
|
||||
out pins, 1 [DATA_DELAY]
|
||||
|
||||
Reference in New Issue
Block a user