Skip to content

Commit

Permalink
perf: Micro-optimize calc new wait times
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Nov 8, 2020
1 parent 51dc79f commit e2bc285
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1955,13 +1955,9 @@ calc_new_wait_per_demag_done:
subb A, #0
mov Temp4, A
jc load_min_time ; Check that result is still positive

clr C
jnz calc_new_wait_times_exit ; Check that result is still above minumum
mov A, Temp3
subb A, #1
mov A, Temp4
subb A, #0
jnc calc_new_wait_times_exit ; Check that result is still above minumum
jnz calc_new_wait_times_exit

load_min_time:
mov Temp3, #1
Expand Down

0 comments on commit e2bc285

Please # to comment.