Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Gosub (I), Goto (I), Call (I)

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
jure_m

Bascom Member



Joined: 14 Jan 2005
Posts: 69
Location: Ljubljana

slovenia.gif
PostPosted: Fri Sep 25, 2020 9:50 am    Post subject: Gosub (I), Goto (I), Call (I) Reply with quote

Hi,

my friend is asking is there a way to do in Bascom Gosub (I), or Goto (I), or Call (I) when the number I is changing from 0 to 10 with minimum usage of MCU resources? He has used IF or Select case, but these take too much of MCU resources.

Best regards
Jure

(BASCOM-AVR version : 2.0.8.3 )
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6197
Location: Holland

blank.gif
PostPosted: Fri Sep 25, 2020 10:56 am    Post subject: Reply with quote

tell your friend to read the help and check out the samples.
especially the ON.. VALUE
Like in the old GW/QB basic ON has a dual purpose : for interrupts but also for numeric values.
The advantage is that no matter the value, the time is always the same. But you can only use numeric values..

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum