PDA

View Full Version : Elapsed_Demo.bas compilation errors



Dick Ivers
- 1st March 2010, 18:11
I got interested in DT's Elapsed Timer routine so I tried the "Elasped_Demo.bas" program from posts found on this forum. Using MPASM and MCS the program complied, showing, Success: 502 words used. However, there were 6 errors listed starting with: ERROR ...... (wsave variable not found). What does this mean? Is the compilation good or bad?

Darrel Taylor
- 1st March 2010, 19:20
It depends on what chip you are using.

Open the ASM_INTS.bas file and comment out the wsave variables that give errors.
Leave the one's that DO NOT cause errors un-commented.
<br>

Dick Ivers
- 1st March 2010, 23:34
OK, it's working now. The problem was indeed with the wsave variables.

I'm using DT_INST-14.bas version 1.00. All the wsave stuff was already commented out there. The error messages gave the clue to uncomment the line "wsave var byte $70 SYSTEM". It then compiled without error for the 16F88 chip and other similar chips as well.

Darrel Taylor
- 1st March 2010, 23:44
Oh ... ok,
I thought you were using the original Elapsed Timer Demo.

In DT_INTS-14 v1.00, I added new error messages that warn when the wsave variables need to be adjusted, and tell you what to do.

I thought that would finally end the questions about wsave vars .. I guess not. :eek:

In all fairness, I haven't explained that anywhere yet. :o
So you could not have known.

Glad you got it working.