Search found 766 matches

by Soruk
Fri Aug 07, 2020 12:05 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

That is a fair enough comment Richard and if I am asking for help I should at the very least tidy things up so people can help. I will have a bash this weekend just to make it more readable. You are totally right..... It's also to help you. When you come back to this code in several months' time, i...
by Soruk
Thu Aug 06, 2020 11:26 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

A couple of things I've spotted about the code generally... Line 6500, in PROCPLOT2, there is no ENDPROC. Suggest you add: 6610 ENDPROC Some functions and procedures are defined twice, FNscreen2m7 at lines 6720 and 4970 FNscreen2chr at lines 6780 and 5030 PROCnewpaperbackground at lines 3950 and 483...
by Soruk
Tue Aug 04, 2020 9:27 pm
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released

However, unlike your implementation its type is fixed once set. What's the practical implication of that? Presumably the type can change in this kind of situation: n = &1234 n *= 1.1 where n is initially an integer but is promoted to a float as a result of the multiplication. Or similarly: n = 2^63...
by Soruk
Tue Aug 04, 2020 10:17 am
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released

I've got my variant partially working - it can handle an int64 or a float64 (but not a string, yet). I'm puzzled that you would want your variants to handle a string; I wouldn't have expected this implementation detail of BB4W/BBCSDL, which can't be observed externally, to be relevant to you. I'm a...
by Soruk
Tue Aug 04, 2020 10:15 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 130
Views: 2671

Re: New: Console Mode editions of BBC BASIC

Over in the Matrix Brandy thread, where I am having a go at implementing variants, I misunderstood something you said about a variant containing a string, and indeed found I didn't get an error trying to set a variant to a string. But, trying to read it back gave me something rather unexpected... so...
by Soruk
Tue Aug 04, 2020 1:50 am
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released

I've described how mine work on a previous occasion: a unique value for the 'exponent' (in practice zero) is used to flag the presence of an integer. Often this exponent value is reserved to mean a NaN or an un-normalised number, which I don't support in my BASICs anyway; but even if it isn't, doub...
by Soruk
Sun Aug 02, 2020 1:50 pm
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released

BBCSDL and BB4C use 80-bit (so yours should be safe into the future). That's not the reason mine are "safe". Even when running on ARM (which doesn't have 80-bit floats) mine are still entirely safe because suffixless variables are numeric variants , not floats (on ARM they can contain either a 64-b...
by Soruk
Sun Aug 02, 2020 12:46 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

I am personally pleased that BBC BASIC (or to be precise the BBC Micro MOS) adopted Cartesian Coordinates, even if that is unusual. It makes it much easier to draw graphs and mathematical functions in general, which almost universally assume positive is upwards. The BBC, Spectrum and Amstrad CPC al...
by Soruk
Sun Aug 02, 2020 10:49 am
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released

In another thread you advised against using a 'suffixless' variable to hold an address/pointer in Matrix Brandy, for example: DIM s &2FFF Am I right in thinking that, in practice, this is entirely safe because no current CPU has a virtual address space larger than 52-bits (most are 48-bits I think)...
by Soruk
Sun Aug 02, 2020 10:41 am
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

Thanks Soruk you are a lifesaver. Yes I deleted my earlier post as I thought I've asked enough questions and everyone is babyfeeding me and felt a bit bad. I would not worry too much about that. Everybody has to start somewhere, and I dare say my graphic artistry would be something a nursery would ...
by Soruk
Sun Aug 02, 2020 10:28 am
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

I notice you replaced your earlier post. However, these might help you to convert from screen pixel coordinates (as used by BBCSDL and Matrix Brandy and returned by MOUSE x,y,b) to Teletext pixels as used by my earlier code, and also to character cells. DEFFNscreen2m7(x%,y%) x%=(x%/16)-2 y%=(y%/13.3...
by Soruk
Sat Aug 01, 2020 1:29 pm
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released

Hi, I've just put together version 1.22.7 of Matrix Brandy BASIC VI . Notable changes since 1.22.6 include: - Platforms: Native display builds for RISC OS available, including networking. 26-bit and 32-bit builds both possible. - Platforms: SYS calls on RISC OS can call the Brandy_* calls from withi...
by Soruk
Fri Jul 31, 2020 8:49 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

I copied your brilliant flood fill code in Richard but it's crashing so need to work that out.....it must be something simple as it runs on it's own. Here is a port of it to "my" pixel-twiddling interface... (Lines below 490 are a copy of the library) 10MODE 7 20 70REPEAT 80CLS: FOR Y% = 0 TO 24: P...
by Soruk
Thu Jul 30, 2020 5:45 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

Surely the existence of an alternative way of doing things is a capability that it didn't have previously? You know what I mean (must be the heat triggering an argumentative mood)! Some of my extensions allow you to do things that there was no way of doing previously (e.g. 64-bit integer variables)...
by Soruk
Thu Jul 30, 2020 12:47 pm
Forum: past all-day virtual ABugs
Topic: All-day 'Virtual' Acorn session #6, Saturday 1st August 2020, 9am - 11pm [NOW FULL!]
Replies: 105
Views: 3440

Re: All-day 'Virtual' Acorn session #6, Saturday 1st August 2020, 9am - 11pm [NOW FULL!]

At school I was the BBC Micro go to guy and mean from staff and pupils I found myself in that position for our room of BBC Masters. After the second time being called out of class to help when someone switched on the computer with a book on the keyboard (R+power-on, anybody?) I made myself a bootab...
by Soruk
Thu Jul 30, 2020 11:36 am
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

Here's some code that allows you to read and plot individual Teletext sixels. This might make it easier to write flood fill or other code? It assumes no text window is in use. REM Using a virtual coordinate system that has 0,0 at the bottom left. REM 0,0 corresponds to the bottom line, second charac...
by Soruk
Wed Jul 29, 2020 9:10 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

pixelblip wrote:
Wed Jul 29, 2020 8:28 pm
Oh dear flood fill is going to be a bugger. The trouble is you need to test for a point and how do you do that in teletext. Hmmm I may have to abandon that one.
Read the character with GET(x,y) at the point, that gives you the sixels.
by Soruk
Tue Jul 28, 2020 10:10 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

Your line numbers are a bit all over the place.. in PROCditherpaint and PROCnewpaperbackground, you go from line 3590 to 3450, and you're duplicating the line numbers.
by Soruk
Tue Jul 28, 2020 9:23 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

For my code using GET(x,y), if you're running with a VDU28 text window, you may want to issue a VDU26 before running the code, then re-do your text window afterwards, unless you're not interested in saving anything outside of the text window.
by Soruk
Tue Jul 28, 2020 12:50 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

GET(x,y) refers to the physical screen coordinates irrespective of any text window. No, GET(x,y) uses the same coordinate system as TAB(x,y) - I think anything else would be surprising and thoroughly inconsistent with how BBC BASIC normally works, e.g. POINT(x,y) . From https://www.bbcbasic.co.uk/b...
by Soruk
Mon Jul 27, 2020 10:19 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

If I replace GET$ with GET like the original Soruk code and I click Undo nothing happens. I think it's writing to the file correctly using GET but for some reason I can't get the read working from the file and the characters plotted. I gave this a quick test in BBCSDL and Matrix Brandy and the with...
by Soruk
Mon Jul 27, 2020 3:00 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

Richard Russell wrote:
Mon Jul 27, 2020 2:19 pm

Code: Select all

      OSCLI "save """ + @tmp$ + "mode7.dat.tmp"" " + STR$~@chrmap% + " +3000"
I'm curious - why do you save 12K for a MODE 7 screen? Surely you don't need more than 1000 bytes for a character-level dump.
by Soruk
Mon Jul 27, 2020 1:18 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

Hi If anyone can supply me with a bit of undo code I'd be so grateful. It's a bit beyond me. I am trying to read about OSBYTE 135 but it's so advanced. I had a go at lunch but thought whooaaaa I don't understand any of it. I need some code so it takes a copy of the screen ( and saves it to disk as ...
by Soruk
Sun Jul 26, 2020 5:46 pm
Forum: programming
Topic: Teletext paint program
Replies: 176
Views: 2330

Re: Teletext paint program

I don't know how it works exactly - the plot command had S% in the code ( I pinched the code from somewhere how to plot a point in Mode 7 and it had this Dim statement in with S% as a lookup table). I just don't know how to get around it or modify it to work without having a % afte the S. A floatin...
by Soruk
Sun Jul 26, 2020 5:28 pm
Forum: past weeknight 'general' acorn sessions
Topic: Weekday 'Virtual' Acorn session #7, Tuesday 28th July 2020, 6pm - 10pm
Replies: 32
Views: 806

Re: Weekday 'Virtual' Acorn session #7, Tuesday 28th July 2020, 6pm - 10pm

Yes please. I'll try to make sure my audio doesn't mess up as much as it did last time!
by Soruk
Fri Jul 24, 2020 2:12 pm
Forum: 8-bit acorn software: other
Topic: How far do BASIC line numbers go?
Replies: 9
Views: 457

Re: How far do BASIC line numbers go?

Try making a program of, say, ten lines, and then RENUMBER 32767,1 ... ARM BASIC, Matrix Brandy and my BASICs all report an error message rather than allowing the line-number to wrap around (Matrix Brandy does the renumber anyway, potentially corrupting cross-references, which I think is a bug; the...
by Soruk
Fri Jul 24, 2020 1:21 pm
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.6 released

Actually Matrix Brandy's cross-reference correction seems to be broken anyway if the RENUMBER creates line number 65279 (which should be valid): Ooh, good spot. And... ouch. Anyhow, I've fixed this (it's also broken upstream) - as there is a pass that identifies lines with line numbers I've done a ...
by Soruk
Thu Jul 23, 2020 8:32 pm
Forum: programming
Topic: Adding a delay to loop in BASIC
Replies: 15
Views: 514

Re: Adding a delay to loop in BASIC

30 IF D%>0 THEN FOR I%=0 TO D%:NEXT It is a bit faster but I still begrudge it being there when D% is zero! This might be a tiny bit faster - and removed the spaces as that does help for speed... 30IFD%THENFORI%=0TOD%:NEXT Basically (no pun intended), I've removed the >0 check, so it's true if D% i...
by Soruk
Thu Jul 23, 2020 9:59 am
Forum: 8-bit acorn software: other
Topic: How far do BASIC line numbers go?
Replies: 9
Views: 457

Re: How far do BASIC line numbers go?

RISC OS's ARM BBC BASIC V and VI, and Matrix Brandy go up to 65279.
by Soruk
Tue Jul 21, 2020 6:57 pm
Forum: modern implementations of classic programming languages
Topic: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.7 released
Replies: 1168
Views: 74794

Re: Matrix Brandy BASIC VI for console and SDL1.2: V1.22.6 released

prices are not sensible for an open source project I'm not going to formally register a business and pay all that is required There's not the slightest need to do that. Who is your signing provider? Admittedly, the first one I looked at (Tucows) said their provider required proof of business regist...

Go to advanced search