Skip to content

Commit

Permalink
perf: Optimize adjust_timing_two_steps routine
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Oct 21, 2020
1 parent 44ff551 commit a9ca295
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2061,18 +2061,12 @@ ENDIF

adjust_timing_two_steps:
mov A, Temp1 ; Add 15deg and store in Temp1/2
add A, Temp1
setb C ; Add 1 to final result (Temp1/2 * 2 + 1)
addc A, Temp1
mov Temp1, A
mov A, Temp2
addc A, Temp2
mov Temp2, A
clr C
mov A, Temp1
add A, #1
mov Temp1, A
mov A, Temp2
addc A, #0
mov Temp2, A
mov Temp3, #-1 ; Store minimum time in Temp3/4
mov Temp4, #0FFh

Expand Down

0 comments on commit a9ca295

Please # to comment.