comparison code_part1/OSTC_code_asm_part1/start.asm @ 576:ab2686087bce

faster font display, code cleaning
author heinrichsweikamp
date Sun, 22 Apr 2012 14:38:10 +0200
parents 3091628b2742
children fbd5e2b75a63
comparison
equal deleted inserted replaced
575:cbdcbbc91877 576:ab2686087bce
360 call PLED_startupscreen1 ; show startup sreen 360 call PLED_startupscreen1 ; show startup sreen
361 startup_screen1_2: 361 startup_screen1_2:
362 movlw d'10' ; timeout for startup screen 362 movlw d'10' ; timeout for startup screen
363 movwf temp1 363 movwf temp1
364 WAITMS d'200' 364 WAITMS d'200'
365 bcf switch_left 365 call wait_switches ; Waits until switches are released, resets flag if button stays pressed!
366 bcf switch_right
367 screen1_loop: 366 screen1_loop:
368 btfsc uart_dump_screen ; Asked to dump screen contains ? 367 btfsc uart_dump_screen ; Asked to dump screen contains ?
369 call dump_screen ; Yes! 368 call dump_screen ; Yes!
370 369
371 btfsc onesecupdate ; do every second tasks? 370 btfsc onesecupdate ; do every second tasks?
393 bra startup_screen1_2 392 bra startup_screen1_2
394 393
395 startup_screen3a:; WARNING: Also used for decodescriptions and CF Warning screen! 394 startup_screen3a:; WARNING: Also used for decodescriptions and CF Warning screen!
396 movwf temp1 395 movwf temp1
397 WAITMS d'200' 396 WAITMS d'200'
398 bcf switch_left 397 call wait_switches ; Waits until switches are released, resets flag if button stays pressed!
399 bcf switch_right
400 screen3_loop: 398 screen3_loop:
401 btfsc uart_dump_screen ; Asked to dump screen contains ? 399 btfsc uart_dump_screen ; Asked to dump screen contains ?
402 call dump_screen ; Yes! 400 call dump_screen ; Yes!
403 401
404 btfsc onesecupdate ; do every second tasks? 402 btfsc onesecupdate ; do every second tasks?