Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5909 > unrolled thread

BBC BASIC - 'MODE MODE'

Started bychasgpearce@gmail.com
First post2019-12-05 06:16 -0800
Last post2019-12-06 15:59 +0000
Articles 12 — 8 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  BBC BASIC - 'MODE MODE' chasgpearce@gmail.com - 2019-12-05 06:16 -0800
    Re: BBC BASIC - 'MODE MODE' Martin <News03@avisoft.f9.co.uk> - 2019-12-05 15:20 +0000
      Re: BBC BASIC - 'MODE MODE' chasgpearce@gmail.com - 2019-12-05 08:08 -0800
    Re: BBC BASIC - 'MODE MODE' Richard Ashbery <basura@invalid.addr.uk> - 2019-12-05 17:11 +0000
      Re: BBC BASIC - 'MODE MODE' Matthew Phillips <spam2011m@yahoo.co.uk> - 2019-12-05 19:34 +0000
        Re: BBC BASIC - 'MODE MODE' druck <news@druck.org.uk> - 2019-12-09 16:19 +0000
    BBC BASIC - 'MODE MODE' fp53hxy@gmail.com - 2019-12-05 09:37 -0800
      Re: BBC BASIC - 'MODE MODE' Steve Fryatt <news@stevefryatt.org.uk> - 2019-12-05 20:44 +0000
        Re: BBC BASIC - 'MODE MODE' "John Williams (News)" <UCEbin@tiscali.co.uk> - 2019-12-05 21:01 +0000
        Re: BBC BASIC - 'MODE MODE' chasgpearce@gmail.com - 2019-12-06 05:03 -0800
          Re: BBC BASIC - 'MODE MODE' "John Williams (News)" <UCEbin@tiscali.co.uk> - 2019-12-06 14:07 +0000
            Re: BBC BASIC - 'MODE MODE' Matthew Phillips <spam2011m@yahoo.co.uk> - 2019-12-06 15:59 +0000

#5909 — BBC BASIC - 'MODE MODE'

Fromchasgpearce@gmail.com
Date2019-12-05 06:16 -0800
SubjectBBC BASIC - 'MODE MODE'
Message-ID<6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com>
Sorry that the old Alzheimers seems to be taking a grip!

Can some kind soul please remind me what BASIC 'MODE MODE' at the start of a program actually does?
I understand MODE 28, MODE 15 etc, but don't recall  what the second 'MODE' in 'MODE MODE' actually does. (I have been sent a BBC BASIC program in which the first instruction is 'MODE MODE')

So what MODE am I then in - what has the instruction actually done?

I used to know this, but used so long ago have actually forgotten. BASIC manual no help, nor PRM 5a.

George Pearce

[toc] | [next] | [standalone]


#5910

FromMartin <News03@avisoft.f9.co.uk>
Date2019-12-05 15:20 +0000
Message-ID<581daa0a21News03@avisoft.f9.co.uk>
In reply to#5909
On 05 Dec in article
<6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com>,
   <chasgpearce@gmail.com> wrote:

> Sorry that the old Alzheimers seems to be taking a grip!

> Can some kind soul please remind me what BASIC 'MODE MODE' at the
> start of a program actually does? I understand MODE 28, MODE 15
> etc, but don't recall  what the second 'MODE' in 'MODE MODE'
> actually does. (I have been sent a BBC BASIC program in which the
> first instruction is 'MODE MODE')

> So what MODE am I then in - what has the instruction actually done?

> I used to know this, but used so long ago have actually forgotten.
> BASIC manual no help, nor PRM 5a.

Please see several replies to your original post, in archive-online.
Duplicate posts can confuse and irritate!

-- 
Martin Avison 
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received. 

[toc] | [prev] | [next] | [standalone]


#5911

Fromchasgpearce@gmail.com
Date2019-12-05 08:08 -0800
Message-ID<4cf923e2-60b6-4b18-b9a1-134c6d8b9817@googlegroups.com>
In reply to#5910
On Thursday, 5 December 2019 15:20:53 UTC, Martin  wrote:
> On 05 Dec in article
> <6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com>,
>    <chasgpearce@gmail.com> wrote:
> 
> > Sorry that the old Alzheimers seems to be taking a grip!
> 
> > Can some kind soul please remind me what BASIC 'MODE MODE' at the
> > start of a program actually does? I understand MODE 28, MODE 15
> > etc, but don't recall  what the second 'MODE' in 'MODE MODE'
> > actually does. (I have been sent a BBC BASIC program in which the
> > first instruction is 'MODE MODE')
> 
> > So what MODE am I then in - what has the instruction actually done?
> 
> > I used to know this, but used so long ago have actually forgotten.
> > BASIC manual no help, nor PRM 5a.
> 
> Please see several replies to your original post, in archive-online.
> Duplicate posts can confuse and irritate!
> 

Sorry - I thought this was a different forum from Archive O L!
> -- 
> Martin Avison 
> Note that unfortunately this email address will become invalid
> without notice if (when) any spam is received.

[toc] | [prev] | [next] | [standalone]


#5912

FromRichard Ashbery <basura@invalid.addr.uk>
Date2019-12-05 17:11 +0000
Message-ID<581db42db9basura@invalid.addr.uk>
In reply to#5909
In article
<6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com>,
   <chasgpearce@gmail.com> wrote:

> Sorry that the old Alzheimers seems to be taking a grip!

> Can some kind soul please remind me what BASIC 'MODE MODE' at the
> start of a program actually does? I understand MODE 28, MODE 15
> etc, but don't recall  what the second 'MODE' in 'MODE MODE'
> actually does. (I have been sent a BBC BASIC program in which the
> first instruction is 'MODE MODE')

> So what MODE am I then in - what has the instruction actually done?

If 1920 x 1080 is your default mode then MODE MODE ensures it uses 1920
x 1080.

Richard

[toc] | [prev] | [next] | [standalone]


#5914

FromMatthew Phillips <spam2011m@yahoo.co.uk>
Date2019-12-05 19:34 +0000
Message-ID<004cc11d58.Matthew@sinenomine.freeserve.co.uk>
In reply to#5912
In message <581db42db9basura@invalid.addr.uk>
 on 5 Dec 2019 Richard Ashbery  wrote:

> In article
> <6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com>,
>    <chasgpearce@gmail.com> wrote:
> 
> > Sorry that the old Alzheimers seems to be taking a grip!
> 
> > Can some kind soul please remind me what BASIC 'MODE MODE' at the
> > start of a program actually does? I understand MODE 28, MODE 15
> > etc, but don't recall  what the second 'MODE' in 'MODE MODE'
> > actually does. (I have been sent a BBC BASIC program in which the
> > first instruction is 'MODE MODE')
> 
> > So what MODE am I then in - what has the instruction actually done?
> 
> If 1920 x 1080 is your default mode then MODE MODE ensures it uses 1920
> x 1080.

Not quite right.  MODE used as a function returns the current mode number,
not the default mode.

MODE MODE

thus sets the mode to the current mode.  What is the point of that?  Well,
the screen gets cleared and various things will be reset (not sure what --
maybe graphics window, palette, etc.).

-- 
Matthew Phillips
Durham

[toc] | [prev] | [next] | [standalone]


#5920

Fromdruck <news@druck.org.uk>
Date2019-12-09 16:19 +0000
Message-ID<qsls6t$c2j$1@dont-email.me>
In reply to#5914
On 05/12/2019 19:34, Matthew Phillips wrote:
> Not quite right.  MODE used as a function returns the current mode number,
> not the default mode.
> 
> MODE MODE
> 
> thus sets the mode to the current mode.  What is the point of that?  Well,
> the screen gets cleared and various things will be reset (not sure what --
> maybe graphics window, palette, etc.).

That's correct. If you want to run a non desktop program using the same 
resolution and colour depth as the desktop, you might think a mode 
change isn't necessary, but there are lot of things which the Wimp 
changes when in the desktop, which need resetting to the defaults. The 
MODE command resets these in one go, and to use the same resolution and 
colour depth as the desktop, MODE MODE can be used. The Wimp will also 
detect a mode change has occurred, and restore its settings on return to 
the desktop.

But bear in mind RISC OS's legacy graphics system, which a non desktop 
application will probably be using, is very dependent on colour depth 
(256 colours work differently from 2 to 16, and more than 256 colours 
needs newer APIs). So you might actually want to specify your mode 
requirements explicitly.

---druck

[toc] | [prev] | [next] | [standalone]


#5913

Fromfp53hxy@gmail.com
Date2019-12-05 09:37 -0800
Message-ID<8a244aa4-f137-4a55-9f3d-49cebf1c64ff@googlegroups.com>
In reply to#5909
George wrote:

>Sorry - I thought this was a different forum from Archive O L! 

Different forum, but very considerable overlap in inhabitants!

Rosemary 

[toc] | [prev] | [next] | [standalone]


#5915

FromSteve Fryatt <news@stevefryatt.org.uk>
Date2019-12-05 20:44 +0000
Message-ID<mpro.q224ao01kk5n50et9.news@stevefryatt.org.uk>
In reply to#5913
On 5 Dec, fp53hxy@gmail.com wrote in message
    <8a244aa4-f137-4a55-9f3d-49cebf1c64ff@googlegroups.com>:

> George wrote:
> 
> > Sorry - I thought this was a different forum from Archive O L!
> 
> Different forum, but very considerable overlap in inhabitants!

Indeed. I'll also echo Martin's request.

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

[toc] | [prev] | [next] | [standalone]


#5916

From"John Williams (News)" <UCEbin@tiscali.co.uk>
Date2019-12-05 21:01 +0000
Message-ID<581dc945e0UCEbin@tiscali.co.uk>
In reply to#5915
In article <mpro.q224ao01kk5n50et9.news@stevefryatt.org.uk>,
   Steve Fryatt <news@stevefryatt.org.uk> wrote:
> > 
> > > Sorry - I thought this was a different forum from Archive O L!
> > 
> > Different forum, but very considerable overlap in inhabitants!

> Indeed. I'll also echo Martin's request.

Would "participants" be a better word than "inhabitants"?

After all, most of us have other lives!  Perhaos!

John

-- 
John Williams, now back in the UK - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/

[toc] | [prev] | [next] | [standalone]


#5917

Fromchasgpearce@gmail.com
Date2019-12-06 05:03 -0800
Message-ID<f808c14e-61e6-4bdd-af39-a597bc7784ba@googlegroups.com>
In reply to#5915
On Thursday, 5 December 2019 20:55:02 UTC, Steve Fryatt  wrote:
> On 5 Dec, fp53hxy@gmail.com wrote in message
>     <8a244aa4-f137-4a55-9f3d-49cebf1c64ff@googlegroups.com>:
> 
> > George wrote:
> > 
> > > Sorry - I thought this was a different forum from Archive O L!
> > 
> > Different forum, but very considerable overlap in inhabitants!
> 
> Indeed. I'll also echo Martin's request.
> 
> -- 
> Steve Fryatt - Leeds, England
> 
> http://www.stevefryatt.org.uk/

OK message received.

But which should I use in preference in future for this sort of query?
i.e. which is likely to have more (better?) knowledgeable users?
You will have gathered by now that I am a very infrequent user of these groups and am likely to forget the rules! 

cheers
George Pearce

[toc] | [prev] | [next] | [standalone]


#5918

From"John Williams (News)" <UCEbin@tiscali.co.uk>
Date2019-12-06 14:07 +0000
Message-ID<581e272546UCEbin@tiscali.co.uk>
In reply to#5917
In article <f808c14e-61e6-4bdd-af39-a597bc7784ba@googlegroups.com>,
   <chasgpearce@gmail.com> wrote:

> But which should I use in preference in future for this sort of query?
> i.e. which is likely to have more (better?) knowledgeable users?

This group will elicit a much faster response than the AoL mailing list,
and you will find a wider pool of expertise here!

John

-- 
John Williams, now back in the UK - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/

[toc] | [prev] | [next] | [standalone]


#5919

FromMatthew Phillips <spam2011m@yahoo.co.uk>
Date2019-12-06 15:59 +0000
Message-ID<d56b311e58.Matthew@sinenomine.freeserve.co.uk>
In reply to#5918
In message <581e272546UCEbin@tiscali.co.uk>
 on 6 Dec 2019 John Williams (News) wrote:

> In article <f808c14e-61e6-4bdd-af39-a597bc7784ba@googlegroups.com>,
>    <chasgpearce@gmail.com> wrote:
> 
> > But which should I use in preference in future for this sort of query?
> > i.e. which is likely to have more (better?) knowledgeable users?
> 
> This group will elicit a much faster response than the AoL mailing list,
> and you will find a wider pool of expertise here!

As far as I'm concerned it's a question about RISC OS programming and
comp.sys.acorn.programmer is a perfectly appropriate place to ask those
questions.

-- 
Matthew Phillips
Durham

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web