Search found 65 matches

by spotlessmind1975
Wed Nov 29, 2023 7:47 am
Forum: New features
Topic: Should GLOBAL define variables?
Replies: 2
Views: 7989

Should GLOBAL define variables?

[italian and french follow] :arrow: english Good morning everyone! I'm not entirely sure it is a bug. The problem involves a form of "relaxation" of the syntax with the GLOBAL command. I'll explain. The GLOBAL command allows you to tell ugBASIC to consider a variable as "global"...
by spotlessmind1975
Fri Nov 24, 2023 1:00 pm
Forum: New features
Topic: speed up compilation
Replies: 1
Views: 6319

Re: speed up compilation

Hi ldir_hector ! I use enable peephole optimizations up to 16 passes and enable listing and enable additional info. Does this options increase the compilation time ? Surely, the option for additional information slows down the compilation a lot. It actually depends on the size of the generated assem...
by spotlessmind1975
Thu Nov 23, 2023 12:49 pm
Forum: New features
Topic: The new DRAWing command
Replies: 3
Views: 7704

Re: The new DRAWing command

Hi ldir_hector ! I'm sorry but I don't understand the N in BR2NR4D4R4UL2 The N command has the meaning of no update of drawing position. This is to draw a line as specified but do not use the end of the line as the new position. So, NR4D4 means: "draw a line of 4 pixel on the right ( R4 ), go b...
by spotlessmind1975
Thu Nov 23, 2023 12:45 pm
Forum: New features
Topic: Is GOTO / GOSUB x still BASIC?
Replies: 4
Views: 8682

Re: Is GOTO / GOSUB x still BASIC?

wysardry wrote: Wed Nov 22, 2023 6:45 pm I don't remember using an 8-bit machine that would allow you to use a variable as a line number for GOTO or GOSUB.
AFAIK, it is possible on some dialects, like BBC BASIC.
wysardry wrote: Wed Nov 22, 2023 6:45 pm SELECT CASE statements or ON x GOTO/GOSUB would work instead in most situations.
Yeah, but it is more verbose.
by spotlessmind1975
Thu Nov 23, 2023 7:56 am
Forum: New features
Topic: Storage access: files or memory?
Replies: 6
Views: 12279

Re: Storage access: files or memory?

Hi everybody, and thank you for your interesting answers! :D I remind everyone that we are looking for an isomorphic approach to the problem. This means that we are not looking for a "lowest common multiple" but rather a way to best express the potential of each target. For me, the file me...
by spotlessmind1975
Wed Nov 22, 2023 7:57 am
Forum: New features
Topic: Storage access: files or memory?
Replies: 6
Views: 12279

Storage access: files or memory?

[italian and french follow] :arrow: english Hi everybody! Ok, as you well know, I've been asked for some time to add support for storage devices, i.e. mass storage. Apart from the fact that I opened an issue about it , in general it involves giving support to four different things: give the possibi...
by spotlessmind1975
Tue Nov 21, 2023 9:04 pm
Forum: New features
Topic: Is GOTO / GOSUB x still BASIC?
Replies: 4
Views: 8682

Re: Is GOTO / GOSUB x still BASIC?

Hi ldir_hector , thank you for the message and... well, program chaining... my forbidden dream! 8-) On the Amstrad CPC standard basic, the only way to jump on a line number contained in a variable was by the CHAIN MERGE "prog.bas",lineNumber% method. This is quite interesting. In the sense...
by spotlessmind1975
Tue Nov 21, 2023 7:07 pm
Forum: New features
Topic: Is GOTO / GOSUB x still BASIC?
Replies: 4
Views: 8682

Is GOTO / GOSUB x still BASIC?

[italian and french follows] :arrow: english Hi everyone! Recently, I implemented a mechanism for dynamic RESTORE . In short, instead of using a label or a line number, you can use a variable (provided it is defined and valued) to indicate (yes!) the line number from which to start reading the data...
by spotlessmind1975
Mon Nov 20, 2023 6:33 pm
Forum: New features
Topic: Measuring time on CPC more precisely
Replies: 2
Views: 7212

Re: Measuring time on CPC more precisely

Hi ldir_hector , wow, that's a very creative way to leverage ugBASIC and measure time! :D The time unit is 1/50 second which is quite precise, but the Amstrad CPC is able to do better ! It almost makes me want to add a "raw" timer, i.e. the possibility of actually reading the real timer of...
by spotlessmind1975
Mon Nov 06, 2023 7:47 am
Forum: New features
Topic: The new DRAWing command
Replies: 3
Views: 7704

Re: The new DRAWing command

Someone asked if this command execute faster than several draws instructions or is it just a syntaxic shortcut. So, let's assume that the code is written in Median language (sorry, I couldn't find a better name). The Median language is a sort of "portable assembly", a cross between pure an...