Mercurial > public > hwos_code
comparison src/logbook.asm @ 98:24b3fd59e61f
add event "bailout" in profile
author | heinrichsweikamp |
---|---|
date | Thu, 01 May 2014 21:16:31 +0200 |
parents | c34516c99ca8 |
children | 87cc1adfe4da |
comparison
equal
deleted
inserted
replaced
97:53a99a2dc6a1 | 98:24b3fd59e61f |
---|---|
1230 | 1230 |
1231 profile_view_get_depth_new2: | 1231 profile_view_get_depth_new2: |
1232 call ext_flash_byte_read_plus_0x20 ; Read Event byte | 1232 call ext_flash_byte_read_plus_0x20 ; Read Event byte |
1233 movff temp1,EventByte ; store EventByte | 1233 movff temp1,EventByte ; store EventByte |
1234 decf timeout_counter2,F ; reduce counter | 1234 decf timeout_counter2,F ; reduce counter |
1235 | |
1236 btfss EventByte,7 ; Another Event byte? | |
1237 bra profile_no_second_eventbyte ; No | |
1238 call ext_flash_byte_read_plus_0x20; Read Event byte2 | |
1239 movff temp1,EventByte2 ; store EventByte2 | |
1240 decf timeout_counter2,F ; reduce counter | |
1241 bcf EventByte,7 ; Clear flag | |
1242 | |
1243 profile_no_second_eventbyte: | |
1235 ; Check Event flags in the EventByte | 1244 ; Check Event flags in the EventByte |
1236 btfsc EventByte,4 ; Manual Gas Changed? | 1245 btfsc EventByte,4 ; Manual Gas Changed? |
1237 bra logbook_event1 ; Yes! | 1246 bra logbook_event1 ; Yes! |
1238 btfss EventByte,5 ; Stored Gas Changed? | 1247 btfss EventByte,5 ; Stored Gas Changed? |
1239 return ; No, return | 1248 return ; No, return |