(71B) FORTH questions
|
06-16-2023, 02:20 PM
Post: #21
|
|||
|
|||
RE: (71B) FORTH questions
The IDS V1 is the right source of information. See section 15.1.2:
"The current time may be computed by subtracting the current timer from the target time". However, doing it by yourself in FORTH is not trivial. You need to read 2 quantities at 2 different locations still making sure of the consistency, moreover the hardware timer runs asynchronously vs the CPU, its content may change during the read, so a double read and check is required. There are system routines which do it for you. A solution could be to build a FORTH word in assembly language to call the right system routine, for instance CMPT (see IDS V2 section 25.1). Then you will *just* have to convert the time in 1/512ths since midnight 1 Jan 0000 to usual date and time of the day. Don't ask me how, I never did such a thing... but it would be a good exercice. J-F |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)