Skip to content

Commit 2275e09

Browse files
author
Scrap Computing
committed
Increase EGA sampling offset to 25
1 parent ec1bf42 commit 2275e09

8 files changed

Lines changed: 939 additions & 5 deletions

firmware/src/EGAPio.cmake

Lines changed: 234 additions & 0 deletions
Large diffs are not rendered by default.

firmware/src/EGAPio.h

Lines changed: 235 additions & 1 deletion
Large diffs are not rendered by default.

firmware/src/EGASwitchCase_NegHSync_config_cpp

Lines changed: 117 additions & 0 deletions
Large diffs are not rendered by default.

firmware/src/EGASwitchCase_NegHSync_program_cpp

Lines changed: 117 additions & 0 deletions
Large diffs are not rendered by default.

firmware/src/EGASwitchCase_PosHSync_config_cpp

Lines changed: 117 additions & 0 deletions
Large diffs are not rendered by default.

firmware/src/EGASwitchCase_PosHSync_program_cpp

Lines changed: 117 additions & 0 deletions
Large diffs are not rendered by default.

firmware/src/TTLReader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,7 @@ bool __not_in_flash_func(TTLReader::readLineCGA)(uint32_t Line) {
517517
// Now fill in the line until HSync is high.
518518
uint32_t X = 0;
519519

520-
uint32_t XBorderAdj =
521-
(XBorder + /*FIFO sz=*/8 * /*Pixels per FIFO Entry=*/4) &
522-
0xfffffffc; // Must be 4-byte aligned!
520+
uint32_t XBorderAdj = (XBorder + /*FIFO sz=*/8 * /*Pixels per FIFO Entry=*/4);
523521
// Wait here if we are still in HSync retrace
524522
while (gpio_get(TTL_HSYNC_GPIO) != 0)
525523
;

firmware/src/gen_ega_pios.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pio_h=EGAPio.h
88
echo "// Automatically generated by $(basename ${0}) DO NOT EDIT!" > ${pio_h}
99
echo "#pragma once" >> ${pio_h}
1010

11-
MaxSamplingOffset=16
11+
MaxSamplingOffset=25
1212
echo "static constexpr const uint32_t EGAMaxSamplingOffset = ${MaxSamplingOffset};" >> ${pio_h}
1313

1414
for HSync in PosHSync NegHSync; do

0 commit comments

Comments
 (0)