Skip to content

Commit

Permalink
fix: Improve wait ms accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Jul 15, 2021
1 parent e7d2fdb commit 0f54d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1268,11 +1268,11 @@ wait_ms:
sjmp wait_ms_start

wait_ms_o: ; Outer loop
mov Temp1, #23
mov Temp1, #24

wait_ms_m: ; Middle loop
clr A
djnz ACC, $ ; Inner loop (41.8us - 1024 cycles)
mov A, #255
djnz ACC, $ ; Inner loop (41.6us - 1020 cycles)
djnz Temp1, wait_ms_m

wait_ms_start:
Expand Down

0 comments on commit 0f54d76

Please # to comment.