From: ian Date: Wed, 21 Dec 2005 13:26:19 +0000 (+0000) Subject: optimise various gotos into bras X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=f43d550067acf8bfe21eabe3d518382136b7f5c2;p=trains.git optimise various gotos into bras --- diff --git a/detpic/nmra-stream.asm b/detpic/nmra-stream.asm index 101ec8d..22ca20d 100644 --- a/detpic/nmra-stream.asm +++ b/detpic/nmra-stream.asm @@ -295,7 +295,7 @@ master_interrupt_high debug 'k' ; write 'k' to serial port ; check next action - if 0, change to 1 and return bt_fa_if1 nmractrl,nextaction - goto toggle_output + bra toggle_output bs_fa nmractrl,nextaction debug '1' ; write 'k' to serial port retfie_r @@ -307,8 +307,8 @@ toggle_output debug 'l' ; write 'l' to serial port btg_fa PORTC,0 ; toggle booster output pin bt_fa_if0 PORTC,0 - goto decide_next_bit - goto mid_bit + bra decide_next_bit + bra mid_bit ; if transition was 0->1 then we are mid-bit, so copy transmitbit to @@ -373,7 +373,7 @@ zero_bit_to_track debug '_' ; write 'q' to serial port bc_fa nmractrl,transmitbit bc_fa nmractrl,nextaction - goto advance_bit + bra advance_bit one_bit_to_track debug '_' ; write 'q' to serial port @@ -381,7 +381,7 @@ one_bit_to_track debug '_' ; write 'q' to serial port bs_fa nmractrl,transmitbit bs_fa nmractrl,nextaction - goto advance_bit + bra advance_bit