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


Groups > comp.sys.acorn.programmer > #5914

Re: BBC BASIC - 'MODE MODE'

Date 2019-12-05 19:34 +0000
From Matthew Phillips <spam2011m@yahoo.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: BBC BASIC - 'MODE MODE'
Message-ID <004cc11d58.Matthew@sinenomine.freeserve.co.uk> (permalink)
References <6da9459a-b85e-407d-80d9-2e271e6d459b@googlegroups.com> <581db42db9basura@invalid.addr.uk>

Show all headers | View raw


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

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web