Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Idea for new timer functionality in ZBasic

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
spamiam



Joined: 13 Nov 2005
Posts: 661

Posted: 14 August 2008, 15:20 PM    Post subject: Idea for new timer functionality in ZBasic Reply with quote

Don,

I was thinking about the ability to use a timer interrupt in the native mode devices, and the lack of such an ability in the VM devices.

You probably remember in the old PC days that it was possible to "hook" into an existing interrupt (like the keyboard) to have a TSR process do stuff in the background.

Would it be possible to have such a hook for one of the timers in the VM. It would have to have interrupts pretty frequently (like less than 1ms) in order to be significantly better than what Sleep() and Delay() can provide. If a "hook" is used, then it might not interfere with stuff like the software serial comms.

Of course there would be a fairly small amount of processing allowed to do in the user-interrupt so that it does not try to become re-entrant. So maybe the VM can have a limit on the number of bytes of code in such a user interrupt service.

-Tony
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group