names refactor
This commit is contained in:
		
							
								
								
									
										6
									
								
								colors.S
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								colors.S
									
									
									
									
									
								
							@@ -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
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.S
									
									
									
									
									
								
							@@ -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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user