comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 290:4dbff2aa31ee

Hunting for refusing to ignore disabled gas in list... + Keep gaslist in order.
author JeanDo
date Fri, 22 Apr 2011 00:13:39 +0200
parents 5351d47ee28a
children d36fe3651d56
comparison
equal deleted inserted replaced
289:6d8a2550c9ea 290:4dbff2aa31ee
264 264
265 divemenu_de_activate2_exit: 265 divemenu_de_activate2_exit:
266 bra timeout_divemenu2 ; quit underwater menu! 266 bra timeout_divemenu2 ; quit underwater menu!
267 267
268 divemenu_de_activate2_g1: 268 divemenu_de_activate2_g1:
269 btg sorted_gaslist_active,0 ; Toggle flag 269 btg gaslist_active,0 ; Toggle flag
270 movlw d'2' 270 movlw d'2'
271 movwf menupos ; reset cursor 271 movwf menupos ; reset cursor
272 call PLED_de_activelist ; show (de)active gaslist 272 call PLED_de_activelist ; show (de)active gaslist
273 return 273 return
274 274
275 divemenu_de_activate2_g2: 275 divemenu_de_activate2_g2:
276 btg sorted_gaslist_active,1 ; Toggle flag 276 btg gaslist_active,1 ; Toggle flag
277 movlw d'3' 277 movlw d'3'
278 movwf menupos ; reset cursor 278 movwf menupos ; reset cursor
279 call PLED_de_activelist ; show (de)active gaslist 279 call PLED_de_activelist ; show (de)active gaslist
280 return 280 return
281 281
282 divemenu_de_activate2_g3: 282 divemenu_de_activate2_g3:
283 btg sorted_gaslist_active,2 ; Toggle flag 283 btg gaslist_active,2 ; Toggle flag
284 movlw d'4' 284 movlw d'4'
285 movwf menupos ; reset cursor 285 movwf menupos ; reset cursor
286 call PLED_de_activelist ; show (de)active gaslist 286 call PLED_de_activelist ; show (de)active gaslist
287 return 287 return
288 288
289 divemenu_de_activate2_g4: 289 divemenu_de_activate2_g4:
290 btg sorted_gaslist_active,3 ; Toggle flag 290 btg gaslist_active,3 ; Toggle flag
291 movlw d'5' 291 movlw d'5'
292 movwf menupos ; reset cursor 292 movwf menupos ; reset cursor
293 call PLED_de_activelist ; show (de)active gaslist 293 call PLED_de_activelist ; show (de)active gaslist
294 return 294 return
295 295
296 divemenu_de_activate2_g5: 296 divemenu_de_activate2_g5:
297 btg sorted_gaslist_active,4 ; Toggle flag 297 btg gaslist_active,4 ; Toggle flag
298 movlw d'6' 298 movlw d'6'
299 movwf menupos ; reset cursor 299 movwf menupos ; reset cursor
300 call PLED_de_activelist ; show (de)active gaslist 300 call PLED_de_activelist ; show (de)active gaslist
301 return 301 return
302 302