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


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

RISC OS / Norcroft header reference.

Started byusenet@garethlock.com
First post2020-03-13 18:09 -0700
Last post2020-03-15 20:03 -0700
Articles 9 — 6 participants

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


Contents

  RISC OS / Norcroft header reference. usenet@garethlock.com - 2020-03-13 18:09 -0700
    Re: RISC OS / Norcroft header reference. jgh@mdfs.net - 2020-03-14 02:58 -0700
      Re: RISC OS / Norcroft header reference. usenet@garethlock.com - 2020-03-14 03:49 -0700
        Re: RISC OS / Norcroft header reference. News <chrisjohnson@spamcop.net> - 2020-03-14 11:18 +0000
        Re: RISC OS / Norcroft header reference. jgh@mdfs.net - 2020-03-16 14:14 -0700
          Re: RISC OS / Norcroft header reference. Steve Fryatt <news@stevefryatt.org.uk> - 2020-03-16 22:54 +0000
            Re: RISC OS / Norcroft header reference. druck <news@druck.org.uk> - 2020-03-17 13:32 +0000
    Re: RISC OS / Norcroft header reference. Jean-Michel <jmc.bruck@orange.fr> - 2020-03-14 12:23 +0100
      Re: RISC OS / Norcroft header reference. usenet@garethlock.com - 2020-03-15 20:03 -0700

#6010 — RISC OS / Norcroft header reference.

Fromusenet@garethlock.com
Date2020-03-13 18:09 -0700
SubjectRISC OS / Norcroft header reference.
Message-ID<5412f54d-c562-4dff-8769-69d90fe5a810@googlegroups.com>
Just getting into C on RO. I have an older version of the DDE (as bundled with NutPi), so therefore have a copy of the Norcroft tools. What I can't seem to find online is a quick reference / list of functions etc provided by each of the RO specific headers. 

Can anyone point me in the right direction...

[toc] | [next] | [standalone]


#6011

Fromjgh@mdfs.net
Date2020-03-14 02:58 -0700
Message-ID<3447d2ef-e0cd-42c9-969b-4b0c6c6cf3a7@googlegroups.com>
In reply to#6010
On Saturday, 14 March 2020 01:09:46 UTC, use...@garethlock.com  wrote:
> Just getting into C on RO. I have an older version of the DDE (as bundled with NutPi), so therefore have a copy of the Norcroft tools. What I can't seem to find online is a quick reference / list of functions etc provided by each of the RO specific headers. 
> 
> Can anyone point me in the right direction...

Read the headers themselves.

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


#6012

Fromusenet@garethlock.com
Date2020-03-14 03:49 -0700
Message-ID<de6559ec-d66b-4a8f-b042-53f4c58d6e2b@googlegroups.com>
In reply to#6011
I was hoping to avoid that, but c'est la vie...

There were a couple of other things too... 

What does BASIC actually do behind MODE, GCOL & RECTANGLE FILL? Need to re-create these in C...

Anyhow... 

Guess I'll be trawling the BASIC src code too...

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


#6013

FromNews <chrisjohnson@spamcop.net>
Date2020-03-14 11:18 +0000
Message-ID<5851137616chrisjohnson@spamcop.net>
In reply to#6012
In article <de6559ec-d66b-4a8f-b042-53f4c58d6e2b@googlegroups.com>,
   <usenet@garethlock.com> wrote:
> What does BASIC actually do behind MODE, GCOL & RECTANGLE FILL?
> Need to re-create these in C...

At the low level, use the corresponding swix.

Much better to use a library such as oslib.

-- 
Chris Johnson

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


#6019

Fromjgh@mdfs.net
Date2020-03-16 14:14 -0700
Message-ID<f1bdea0b-9b0f-4834-9733-39943804e71c@googlegroups.com>
In reply to#6012
garethlock wrote:
> What does BASIC actually do behind MODE,

VDU 22,mode

> GCOL

VDU 18,action,colour

> & RECTANGLE FILL? Need to re-create these in C...

MOVE x,y:PLOT 101,x+w,y+w or
MOVE x,y:PLOT 101,x+w,y+h

See http://beebwiki.mdfs.net/OSWRCH#Calling_from_BBC_BASIC

There are existing libraries that parcel these up for you.

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


#6020

FromSteve Fryatt <news@stevefryatt.org.uk>
Date2020-03-16 22:54 +0000
Message-ID<mpro.q7b6aq0269rzz02fp.news@stevefryatt.org.uk>
In reply to#6019
On 16 Mar, jgh@mdfs.net wrote in message
    <f1bdea0b-9b0f-4834-9733-39943804e71c@googlegroups.com>:

> garethlock wrote:
> > What does BASIC actually do behind MODE,
> 
> VDU 22,mode

If we're talking OSLib (I'll second Chris's recommendation), then this is
more likely a call to os_screen_mode() on a recent OS, or wimp_set_mode() on
an older one.

In fact, didn't BASIC rather famously use Wimp_SetMode back in the RiscPC
days, which led to AU's *Info's PROCmode() being created.

> > GCOL
> 
> VDU 18,action,colour

More usefully, perhaps, colourtrans_set_gcol().

> > & RECTANGLE FILL? Need to re-create these in C...
> 
> MOVE x,y:PLOT 101,x+w,y+w or MOVE x,y:PLOT 101,x+w,y+h

Or several calls to os_plot().

-- 
Steve Fryatt - Leeds, England

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

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


#6021

Fromdruck <news@druck.org.uk>
Date2020-03-17 13:32 +0000
Message-ID<r4qjhr$hr7$1@dont-email.me>
In reply to#6020
On 16/03/2020 22:54, Steve Fryatt wrote:
> In fact, didn't BASIC rather famously use Wimp_SetMode back in the RiscPC
> days, which led to AU's *Info's PROCmode() being created.

It did, which was a royal pain in the arse running some graphically 
silly only to find your 2048x1536 8bpp desktop (using ViewFinder) was 
now only 320x240 in 16 colours.

---druck

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


#6014

FromJean-Michel <jmc.bruck@orange.fr>
Date2020-03-14 12:23 +0100
Message-ID<c7f0135158.jmb@jmc.bruck.orange.fr>
In reply to#6010
Hi,
In message <5412f54d-c562-4dff-8769-69d90fe5a810@googlegroups.com>
          usenet@garethlock.com wrote:

> Just getting into C on RO. I have an older version of the DDE (as bundled
> with NutPi), so therefore have a copy of the Norcroft tools. What I can't
> seem to find online is a quick reference / list of functions etc provided
> by each of the RO specific headers.

> Can anyone point me in the right direction...

Using !StrongHelp with manuals:
https://www.riscos.info/downloads/stronghelp/manuals/

os339.Zip ... etc

just press F1 an you get informations.


-- 
Jean-Michel

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


#6018

Fromusenet@garethlock.com
Date2020-03-15 20:03 -0700
Message-ID<5119a896-859b-413d-96bd-b245472de0ca@googlegroups.com>
In reply to#6014
Ok... Progress made, got a test prog to compile earlier this afternoon. What I might do at some point is go through the headers in question and build a list of functions as a reference... Anyhow.

[toc] | [prev] | [standalone]


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


csiph-web