It is currently Tue May 23, 2017 1:51 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: on console touch
Unread postPosted: Wed Mar 02, 2016 4:29 am 
Offline
User avatar

Joined: Sun Nov 23, 2014 8:15 am
Posts: 2185
Location: romania
some one can explain this line of text from the manual:
"Tapping on any line on the output Console that has text on it will cause control to be transferred to this label."
(i am not so good at english)
thanks


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 5:54 am 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
gikam wrote:
some one can explain this line of text from the manual:
"Tapping on any line on the output Console that has text on it will cause control to be transferred to this label."
(i am not so good at english)
thanks

"control" means execution or interpretation. It is the same process as with a GoTo or any other ISR label...

Mike.


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 6:38 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
I assume the label in question is OnConsoleTouch: ?
This means exactly what Mike said, the interpreter will jump to said label and execution will start at the line right after OnConsoleTouch:

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 8:21 am 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
mougino wrote:
I assume the label in question is OnConsoleTouch: ?

Yes, that is the only place in the manual that the cited text appears. I had assumed that was the case too, but I have now searched and verified it. Strange that was not part of the question in the first place! ;-)

Mike.


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 8:56 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
In fact it's the title of the topic ;)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 12:47 pm 
Offline
User avatar

Joined: Sun Nov 23, 2014 8:15 am
Posts: 2185
Location: romania
thanks Nico
the text was a bit confusing: "any line"..."text on it"..>.."to this label"


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 2:12 pm 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
gikam wrote:
thanks Nico
the text was a bit confusing: "any line"..."text on it"..>.."to this label"

Yes, it is a bit more complex than other ISRs (as Marc calls them). I presume that a console line with only a single space (= no text?) will not generate an ISR...

Mike.


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Wed Mar 02, 2016 5:15 pm 
Offline

Joined: Wed Oct 03, 2012 9:53 am
Posts: 2795
Location: Colorado, U.S.
mjcoon wrote:
I presume that a console line with only a single space (= no text?) will not generate an ISR...
It will. Any line that has been printed, even if it is blank (just a newline). If you have not yet printed enough to fill the screen, tapping in the area below the printed lines does not cause an interrupt.

Maybe we should call them "Event Handlers" instead of "Interrupt Service Routines". It would be more Androidish. Touching a line printed on the Console generates an Android UI event. BASIC! has a handler that catches the event. When it finishes the current line, BASIC! "handles the event" by jumping to the program line after your OnConsoleTouch: label. However, you still need a RESUME, just alike a real ISR.

I'll try to fix the manual to be clearer. There are four places where it says something about transferring control, all of them involving interrupt labels.

- Marc


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Thu Mar 03, 2016 1:34 am 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
jMarc wrote:
Maybe we should call them "Event Handlers" instead of "Interrupt Service Routines".

I think I would prefer that. Though I did originally work (for Univac, once big but long gone) on operating systems and code that handled actual hardware interrupts. So the term is a bit nostalgic...

Mike.


Top
 Profile  
 
 Post subject: Re: on console touch
Unread postPosted: Fri Mar 04, 2016 6:18 am 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1135
Location: From Blighty
@Mike

Vac systems? Sperry? UNIX box thingy?

We had a Vac system at college but wasn't allowed to be touched by us electronic and engineering students for a reason I don't know... I wanted a go because bottom was falling out fast in the electronics industry in the mid 80s in the UK...

So instead I did the basis of an AutoCAD to CNC compiler,  because that group of people produced nothing for the college...

Who's the donut, or was it o-ring there?

Ho ho ho...

Back at you 'pooter boys!

Mog191


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
suspicion-preferred