names refactor

This commit is contained in:
Wolfgang Hottgenroth 2024-02-27 19:09:50 +01:00
parent c9b8fbba52
commit 40c49b6809
2 changed files with 10 additions and 4 deletions

View File

@ -3,9 +3,9 @@
.section ".rodata","a" .section ".rodata","a"
screendata_tmpl: screendata_tmpl:
.global screendata_tmpl .global screendata_tmpl
.byte _off .byte _blue
.byte _white .byte _green
.byte _off .byte _red
screendataend_tmpl: screendataend_tmpl:
.byte 0xff .byte 0xff

8
main.S
View File

@ -41,6 +41,12 @@
.macro clear_output_enable .macro clear_output_enable
bic #BIT1, &P1OUT bic #BIT1, &P1OUT
.endm .endm
.macro set_debug
bis #BIT2, &P1OUT
.endm
.macro clear_debug
bic #BIT2, &P1OUT
.endm
.section ".data" .section ".data"
screendata: screendata:
@ -171,7 +177,7 @@ mainloop_wait_for_isr_2:
mainloop_data_done: mainloop_data_done:
;; signal all data processed, isr finish ;; signal all data processed, isr finish
bis #SIGNAL_ALL_DATA_DONE, SIGNAL_REGISTER bis #SIGNAL_ALL_DATA_DONE, SIGNAL_REGISTER
bis #BIT2, &P1OUT set_debug
;; continue ;; continue
jmp mainloop jmp mainloop