comparison src/rx_ops.asm @ 631:185ba2f91f59

3.09 beta 1 release
author heinrichsweikamp
date Fri, 28 Feb 2020 15:45:07 +0100
parents cd58f7fc86db
children 4050675965ea
comparison
equal deleted inserted replaced
630:4cd81bdbf15c 631:185ba2f91f59
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File rx_ops.asm combined next generation V3.03.7 3 ; File rx_ops.asm combined next generation V3.03.8
4 ; 4 ;
5 ; RX (Tank Pressure Transmitter) Routines. 5 ; RX (Tank Pressure Transmitter) Routines.
6 ; 6 ;
7 ; Copyright (c) 2018, heinrichs weikamp, all right reserved. 7 ; Copyright (c) 2018, heinrichs weikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
223 btfsc ex,2 ; - bit 2 of battery voltage set? 223 btfsc ex,2 ; - bit 2 of battery voltage set?
224 bcf ex,char_transmitter_low_bat ; - YES - revoke low battery warning 224 bcf ex,char_transmitter_low_bat ; - YES - revoke low battery warning
225 ;bsf ex,char_transmitter_low_bat ; DEBUG CODE TO FAKE A LOW BAT WARNING 225 ;bsf ex,char_transmitter_low_bat ; DEBUG CODE TO FAKE A LOW BAT WARNING
226 retlw .0 ; - return with success code 0 226 retlw .0 ; - return with success code 0
227 output_pressure_3: 227 output_pressure_3:
228 movf POSTINC1,W ; dummy read to advance FSR0 to byte 2 position 228 movf POSTINC1,W ; dummy read to advance FSR1 to byte 2 position
229 output_pressure_4: 229 output_pressure_4:
230 dcfsnz up,F ; decrement loop counter, last slot searched? 230 dcfsnz up,F ; decrement loop counter, last slot searched?
231 bra output_pressure_5 ; YES - return with error code 231 bra output_pressure_5 ; YES - return with error code
232 movf POSTINC1,W ; NO - dummy reads to advance FSR0 to byte 3 (any other code would not be more compact...) 232 movf POSTINC1,W ; NO - dummy reads to advance FSR1 to byte 3 (any other code would not be more compact...)
233 movf POSTINC1,W ; - ... byte 4 233 movf POSTINC1,W ; - ... byte 4
234 movf POSTINC1,W ; - ... byte 5 234 movf POSTINC1,W ; - ... byte 5
235 movf POSTINC1,W ; - ... byte 6 = first byte of next slot 235 movf POSTINC1,W ; - ... byte 6 = first byte of next slot
236 bra output_pressure_2 ; - loop 236 bra output_pressure_2 ; - loop
237 output_pressure_5: 237 output_pressure_5: