Search found 54 matches

by KenDown
Mon 22 Apr 2019, 10:00
Forum: Assembly language
Topic: Reverting .exe files to .BBC format
Replies: 8
Views: 2421

Re: Reverting .exe files to .BBC format

Someone has kindly written to me privately to point out that I have completely misunderstood the effect of the 'Encrypt & compress' option. It has NO EFFECT WHATSOEVER on the ability to print the contents of a named variable. The compression and encryption are completely lossless and the program tha...
by KenDown
Mon 22 Apr 2019, 04:12
Forum: Assembly language
Topic: Reverting .exe files to .BBC format
Replies: 8
Views: 2421

Re: Reverting .exe files to .BBC format

Hmmm. I notice the comment that one would never normally NOT compress and encrypt. I must admit that I *always* turn those options off. Perhaps doing so slows down execution or something, but on the other hand it can be very useful in the sort of case "guest" describes. For example, I commonly use t...
by KenDown
Fri 15 Mar 2019, 08:21
Forum: Graphics and Games
Topic: Urdu
Replies: 2
Views: 522

Re: Urdu

I have had a reply from the very kind gentleman whose name we may not mention, which indicates that there would need to be a separate FN written for each language that uses the Arabic-style scripts - Urdu, Persian and no doubt others.

Very frustrating.
by KenDown
Fri 15 Mar 2019, 08:19
Forum: Graphics and Games
Topic: Source code for old BBC Micro games
Replies: 5
Views: 832

Re: Source code for old BBC Micro games

Of course there is the point that something written in old 6502 assembler (happy days) will now run as fast, if not faster, when written in plain old BASIC. In fact, I can remember when the Archimedes with is ARM processor first came out, one of the boasts was that its BASIC ran as fast as the old B...
by KenDown
Thu 07 Mar 2019, 17:56
Forum: Database and Files
Topic: Trying to get "dir /s ..." to work from BASIC
Replies: 6
Views: 1043

Re: Trying to get "dir /s ..." to work from BASIC

Richard, who appears to be lurking rather than participating, wrote to me to point out that virtually everything I said was wrong! So ignore, please. However he very kindly posted the solution to your problem: ===== EDIT (DDRM): At Richard's request, I have removed the direct quotes from his email. ...
by KenDown
Wed 06 Mar 2019, 20:58
Forum: Graphics and Games
Topic: Urdu
Replies: 2
Views: 522

Urdu

I'm really not sure if this is the place for my query, but here goes. If you take a string of Arabic characters and PRINT it (having set text to right-to-left, of course) it all comes out as the equivalent of capital letters (they are actually terminal letters, but never mind) whereas what you need ...
by KenDown
Wed 06 Mar 2019, 20:51
Forum: Database and Files
Topic: Trying to get "dir /s ..." to work from BASIC
Replies: 6
Views: 1043

Re: Trying to get "dir /s ..." to work from BASIC

The simplest suggestion is to not use the /s "switch", whatever it does. A more complex answer is the BASIC is a programming language whereas DOS is a different language that simply does things - you don't program in it. DOS is already set up to understand and interpret the /s switch, BASIC doesn't ...
by KenDown
Mon 28 Jan 2019, 20:34
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 3180

Re: Screen dimensions

Hmmmm. No, it doesn't help. I tried following the instructions and ended up with this: DIMcb%4 DIMdevicename%32 DIMdevicestring%128 DIMstateflags%4 DIMdeviceid%128 DIMdevicekey%128 DIMdisplaydeviceA{cb%,devicename%,devicestring%,stateflags%,deviceid%,devicekey%} !cb%=4+32+128+4+128+128 FORi%=0TO2 SY...
by KenDown
Mon 28 Jan 2019, 14:45
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 3180

Re: Screen dimensions

Yes, those are the calls I am using to find the size of the primary screen. It's the second (and smaller) screen whose size I need to read. I don't really understand what you mean by "set up a second device context" but I'll look up the URL you give and see if that enlightens me. Sorry to be a bear ...
by KenDown
Fri 18 Jan 2019, 21:54
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 3180

Screen dimensions

Does anyone know how to read screen dimensions in BBC BASIC, please? There is a routine provided somewhere (Help?) which successfully read the current screen, but if you have two screens of different sizes, how can you find the dimensions of the second? I have a laptop running at 1400x800 and it is ...