solved Task 3c

This commit is contained in:
Schrom01
2022-11-11 10:32:09 +01:00
parent a7f58af664
commit f58771a1b5
9 changed files with 338 additions and 228 deletions
+24
View File
@@ -112,6 +112,30 @@ case_blue
; Show Diff on 7-Segment
LDR R3, =ADDR_7_SEG_BIN_DS3_0
STRB R2, [R3]
; Show Bits on lcd Display
LDR R3, =0x8
SUBS R3, R3, R2
BLS case_8_bit
LDR R3, =0x4
SUBS R3, R3, R2
BLS case_4_bit
case_2_bit
LDR R4, =DISPLAY_2_BIT
B end_case
case_4_bit
LDR R4, =DISPLAY_4_BIT
B end_case
case_8_bit
LDR R4, =DISPLAY_8_BIT
end_case
LDR R3, =ADDR_LCD_ASCII
LDR R4, [R4]
STRB R4, [R3]
BL write_bit_ascii
B main_loop
case_red