09-09-2021, 06:02 PM
why is there 2 halt on waitretrace macro?
i found in the library this waitretrace macro in the retrace.bas file
REM simple WaitRetrace macro
#ifndef waitretrace
#define waitretrace 'REM Retrace \
asm \
halt \
halt \
end asm
#endif
Is not better put only one halt for better timer control of the programmer?
if there was only one halt is more easy to control
with one halt we can do
waitretrace -> only 1 halt 1/50 seconds
2 halt -> 2/50seconds
waitretrace
waitretrace
N halt -> N/50seconds
for i = 1 to N
waitretrace
next i
i found in the library this waitretrace macro in the retrace.bas file
REM simple WaitRetrace macro
#ifndef waitretrace
#define waitretrace 'REM Retrace \
asm \
halt \
halt \
end asm
#endif
Is not better put only one halt for better timer control of the programmer?
if there was only one halt is more easy to control
with one halt we can do
waitretrace -> only 1 halt 1/50 seconds
2 halt -> 2/50seconds
waitretrace
waitretrace
N halt -> N/50seconds
for i = 1 to N
waitretrace
next i