chiark / gitweb /
optimise various gotos into bras
authorian <ian>
Wed, 21 Dec 2005 13:26:19 +0000 (13:26 +0000)
committerian <ian>
Wed, 21 Dec 2005 13:26:19 +0000 (13:26 +0000)
detpic/nmra-stream.asm

index 101ec8dd609d93e3041f5adbe171b88ffb443e55..22ca20d37643513470732279253be7ce824621f4 100644 (file)
@@ -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