Search found 112 matches

by DDRM
Sat 20 Apr 2019, 09:19
Forum: BBC BASIC language
Topic: Establishing the ESC state
Replies: 3
Views: 181

Re: Establishing the ESC state

Thanks, Matt, I thought it would be in a logical place, and that is indeed a much more logical place...

:-)

D
by DDRM
Sat 20 Apr 2019, 09:10
Forum: BBC BASIC language
Topic: RETURN from FN or PROC
Replies: 2
Views: 64

Re: RETURN from FN or PROC

Hi Matt, As you say, it depends on circumstances. I'd tend to use the FN approach if I only wanted one result, and the PROC approach if I wanted to return more than one. Using FN also means you can use it like a variable directly in an expression: product = FNGetResultOne(inputs) * FNGetResultTwo(in...
by DDRM
Fri 19 Apr 2019, 09:40
Forum: BBC BASIC language
Topic: Variable Created At Runtime
Replies: 2
Views: 103

Re: Variable Created At Runtime

Hi Matt, I'm open to correction here, but my understanding is: In Fnassign, the variable to which the value is to be assigned is passed by reference (because of the RETURN): that is to say, the variable passed in will be directly affected by what happens in the function. When you call FNassign (usin...
by DDRM
Thu 18 Apr 2019, 08:36
Forum: BBC BASIC language
Topic: Establishing the ESC state
Replies: 3
Views: 181

Re: Establishing the ESC state

Hi Matt, I'd hoped this would be listed on this wiki page: http://www.bbcbasic.co.uk/wiki/doku.php?id=interpreter_20internal_20variables&s[]=variables but unfortunately it wasn't. I tried extending it with this code: FOR x%= 0 TO 1023 *ESC ON n%=?x% *ESC OFF f%=?x% IF n%<>f% THEN PRINT x%.n%,f% *ESC...
by DDRM
Tue 09 Apr 2019, 08:36
Forum: Announcements
Topic: BBCSDL updated again?
Replies: 2
Views: 264

BBCSDL updated again?

OK, a bit confused...

I was confused by a post on groups.io, which was a late follow-up to an update from 2017, BUT when I checked on Richard's main site

http://www.bbcbasic.co.uk/bbcsdl/

I see that a new version (1.02a) HAS appeared recently (April 4th 2019), so check it out!

Best wishes,

D
by DDRM
Tue 09 Apr 2019, 08:25
Forum: Graphics and Games
Topic: 3D GUI
Replies: 4
Views: 339

Re: 3D GUI

Hi Ric, Thanks, that downloads fine. I ran the main Graphics GUI 18.3.3, and it looks very impressive! I loaded the ball test - grp object, and could wiggle it around, move it in the visual field. By double-clicking I got all the points up, and could reshape the object by moving nodes, etc. That all...
by DDRM
Fri 05 Apr 2019, 08:00
Forum: Graphics and Games
Topic: 3D GUI
Replies: 4
Views: 339

Re: 3D GUI

Hi Ric,

It looks like one would need to download quite a number of support files: would it be possible to make a zip file or something with a minimal package that could be downloaded as a single hit? Apologies if it's there and I've missed it....

Best wishes,

D
by DDRM
Fri 05 Apr 2019, 07:54
Forum: BBC BASIC language
Topic: Less Than, Greater Than
Replies: 2
Views: 166

Re: Less Than, Greater Than

Hi Matt,

In that case, I guess you could use

UNTIL ABS(15-A%)>4

...but I'm not sure it would be significantly faster, and I'm fairly sure it's significantly less clear (and you have to be more careful about boundary conditions), so I'm not sure I'd recommend it.

Best wishes,

D
by DDRM
Fri 22 Mar 2019, 11:13
Forum: Database and Files
Topic: Getting file information
Replies: 2
Views: 581

Re: Getting file information

Hi Simon, Sorry to be so long getting back on this. With a bit of playing, and help from Richard, I've come up with this, which may help. It's a bit fiddly because some data gets returned in 16 bits, so an integer picks up two, while others are returned in 64 bits, so you need a long integer. Weirdl...
by DDRM
Tue 19 Mar 2019, 08:47
Forum: Interpreters & Run-Time Engines
Topic: Can I Use Another IDE??
Replies: 5
Views: 1885

Re: Can I Use Another IDE??

Hi John, I suspect the issue is that .bbc files are tokenised (see "keyword tokens" and "program storage in memory" in the manual): the keywords are converted to 1 byte values. I think that is what the run-time engine expects, so if you send it a text file it doesn't know how to handle it. I guess y...