Fix numerous bugs in the scrolling segment module

This commit is contained in:
2022-11-22 20:07:39 +01:00
parent e0369944b4
commit c6b290a5c0
8 changed files with 222 additions and 42 deletions

View File

@@ -12,11 +12,11 @@ nop
scrolling_addr: .word 0x000F00A0
scrolling_count_addr: .word 0x000F00A4
scrolling_cnt_value: .word 0x20FC000 // for real board
// scrolling_cnt_value: .word 0x100 // for simulation
// scrolling_cnt_value: .word 0x20FC000 // for real board
scrolling_cnt_value: .word 0x500 // for simulation
w_cnt_top: .word 0x3FC000 // for real board
// w_cnt_top: .word 0x100 //for simulation
// w_cnt_top: .word 0x3FC000 // for real board
w_cnt_top: .word 0x100 //for simulation
pattern_ptr: .word =pattern1
@@ -29,17 +29,16 @@ pattern1:
pattern2:
.word 0x0F0E0E0B
.word 0x100D0A0E
.word 0x0D000000
.word 0x0D101010
pattern3:
.word 0x01101010
pattern4:
.word 0x02100310
.word 0x02031010
pattern5:
.word 0x00100010
.word 0x00100010
.word 0x00000000
.word 0x00101010
write_mask:
@@ -213,7 +212,9 @@ display_loop3:
// --------- 0 0 0 0 0 ---------
clr r7
clr r11
addi r11, 12 // iterations
addi r11, 8
// iterations
display_loop4:
addi r3, 0x01
call >display_char