Mercurial > public > hwos_code
comparison src/comm.asm @ 136:9a637c9bb19a
rename Deco Planner to Simulator
author | heinrichsweikamp |
---|---|
date | Thu, 17 Jul 2014 13:29:25 +0200 |
parents | bd74161c4292 |
children | fdd4e30846ae |
comparison
equal
deleted
inserted
replaced
135:42a2cfc3e85d | 136:9a637c9bb19a |
---|---|
658 movlw opt_name_length | 658 movlw opt_name_length |
659 movwf lo ; counter | 659 movwf lo ; counter |
660 comm_set_ctext_loop: | 660 comm_set_ctext_loop: |
661 call rs232_get_byte | 661 call rs232_get_byte |
662 btfsc rs232_recieve_overflow ; Got byte? | 662 btfsc rs232_recieve_overflow ; Got byte? |
663 bra comm_download_mode0 ; No, loop with timeout reset | 663 bra comm_set_ctext_loop_done ; no, abort |
664 movff RCREG1,POSTINC2 ; Store character | 664 movff RCREG1,POSTINC2 ; Store character |
665 decfsz lo,F | 665 decfsz lo,F |
666 bra comm_set_ctext_loop | 666 bra comm_set_ctext_loop |
667 comm_set_ctext_loop_done: | |
668 tstfsz lo ; Got opt_name_length bytes? | |
669 bra comm_set_ctext_loop_done2 ; no, clear remaining chars | |
670 bra comm_download_mode0 ; Done. Loop with timeout reset | |
671 comm_set_ctext_loop_done2: | |
672 clrf POSTINC2 | |
673 decfsz lo,F | |
674 bra comm_set_ctext_loop_done2 | |
667 bra comm_download_mode0 ; Done. Loop with timeout reset | 675 bra comm_download_mode0 ; Done. Loop with timeout reset |
668 | 676 |
669 ;----------------------------------------------------------------------------- | 677 ;----------------------------------------------------------------------------- |
670 ; Reply Serial (2 bytes low:high), firmware (major.minor) and custom text. | 678 ; Reply Serial (2 bytes low:high), firmware (major.minor) and custom text. |
671 ; | 679 ; |