From baaf8b72a0472811467d5da5cca4b1e91fc45cf6 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Tue, 29 Dec 2020 03:52:25 +0100 Subject: [PATCH] style: Clean up wait routines --- Bluejay.asm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Bluejay.asm b/Bluejay.asm index 1c8f9b8..22865dc 100644 --- a/Bluejay.asm +++ b/Bluejay.asm @@ -1462,25 +1462,17 @@ dshot_tlm_12bit_encoded: ;**** **** **** **** **** **** **** **** **** **** **** **** **** ; -; Wait xms ~(x*4*250) (Different entry points) +; Wait a number of milliseconds (Multiple entry points) ; ;**** **** **** **** **** **** **** **** **** **** **** **** **** wait1ms: mov Temp2, #1 sjmp waitxms_o -wait3ms: - mov Temp2, #3 - sjmp waitxms_o - wait10ms: mov Temp2, #10 sjmp waitxms_o -wait30ms: - mov Temp2, #30 - sjmp waitxms_o - wait100ms: mov Temp2, #100 sjmp waitxms_o @@ -1493,7 +1485,7 @@ waitxms_o: ; Outer loop mov Temp1, #23 waitxms_m: ; Middle loop clr A - djnz ACC, $ ; Inner loop (42.7us - 1024 cycles) + djnz ACC, $ ; Inner loop (41.8us - 1024 cycles) djnz Temp1, waitxms_m djnz Temp2, waitxms_o ret