Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HINT] Timer issue for PCEmulator #102

Closed
guidol70 opened this issue Mar 10, 2021 · 4 comments
Closed

[HINT] Timer issue for PCEmulator #102

guidol70 opened this issue Mar 10, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@guidol70
Copy link

for speed testing I did try to measure the time in GW-BASIC (or QBASIC) with the variables
TIMER and TIME$, but after the TIMER does reach 65.47 (seconds) the TIME$ starts/resets to 00:00:00 and also TIMER is reseting.

Normally TIMER only does count upwards and TIME$ has the actual time of is counting also upwards (slower than TIMER).

You could see the issue by running this short program:
10 PRINT TIMER, TIME$
20 IF TIME$="00:00:00" THEN END
30 GOTO 10

@fdivitto fdivitto added the bug Something isn't working label Mar 13, 2021
@fdivitto
Copy link
Owner

I've just implemented the RTC clock and improved a bit the BIOS, so it should work now.
Thank you for tests!

@guidol70
Copy link
Author

guidol70 commented Apr 11, 2021

Its much better, but there is "space for optimization" because when I in GW-BASIC use

5 TIME$="13:25:00"
10 PRINT TIMER, TIME$
20 IF TIME$="00:00:00" THEN END
30 GOTO 10

then TIME$ ouput starts at 12:59:58

and with
5 TIME$="12:07:00"
then TIME$ output starts at 11:59:58

So TIME$ is missing to aquire the minutes and seconds :(
and did loose additional 2 seconds...

The variable TIMER seems to be OK :) because the number is right for
PRINT (HOURS3600)+(MIN60)+SEC
like 46803 for 13:00:03

TIME$
https://hwiegman.home.xs4all.nl/gw-man/TIMES.html

TIMER
https://hwiegman.home.xs4all.nl/gw-man/TIMER.html

@fdivitto
Copy link
Owner

Thanks, I forgot to save DX in INT 1A, subfunction 1.
I never thought this project would improve my skills with 8086 assembler and writing a PC BIOS ;-)

@guidol70
Copy link
Author

Cool :) That did the job for my "problem". If you want you can keep this issue closed ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants