Search found 13 matches

by ldir_hector
Mon Oct 14, 2024 9:23 pm
Forum: New features
Topic: Storage access: files or memory?
Replies: 6
Views: 9198

Re: Storage access: files or memory?

Hello ! It's been a while ! I haven't done much with ugBasic till now, but I am glad it's still progressing ! I hope you'll find a way to deal with storage access. I think that dealing with a distant storage access connected through a serial cable is a very rare use case. I know that on a Commodore ...
by ldir_hector
Thu Nov 23, 2023 10:34 pm
Forum: New features
Topic: speed up compilation
Replies: 1
Views: 5666

speed up compilation

I have noticed that compilation can be quite long on Windows !
I use enable peephole optimizations up to 16 passes and enable listing and enable additional info.

Does this options increase the compilation time ?

Does the compilation on windows use several CPU cores ?
by ldir_hector
Wed Nov 22, 2023 9:44 pm
Forum: New features
Topic: Storage access: files or memory?
Replies: 6
Views: 9198

Re: Storage access: files or memory?

I think that if you make an abstraction of floppies to manage them like virtual memory, it would be very slow and not very practical. Most floppies are organised with tracks and sectors so accessing any data inside them individually would be quite inneficient. I think that even if files are not the ...
by ldir_hector
Wed Nov 22, 2023 5:54 pm
Forum: New features
Topic: The new DRAWing command
Replies: 3
Views: 6877

Re: The new DRAWing command

I'm sorry but I don't understand the N in BR2NR4D4R4UL2
by ldir_hector
Tue Nov 21, 2023 8:57 pm
Forum: New features
Topic: Measuring time on CPC more precisely
Replies: 2
Views: 6477

Re: Measuring time on CPC more precisely

I think that REAL TIMER is confusing, as many would consider that there is a real time clock with the hour stored when the computer stops. So Raw Timer is better, but I don't know if there is a more precise timer on every computer you support ? Even worse, from what I understood, the Oric Atmos has ...
by ldir_hector
Tue Nov 21, 2023 8:45 pm
Forum: New features
Topic: Is GOTO / GOSUB x still BASIC?
Replies: 4
Views: 7726

Re: Is GOTO / GOSUB x still BASIC?

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. And if the line didn't exist, the program was loaded but the interpreter gives an error : "Line does not exist" and the program w...
by ldir_hector
Sun Nov 19, 2023 1:05 pm
Forum: New features
Topic: Measuring time on CPC more precisely
Replies: 2
Views: 6477

Measuring time on CPC more precisely

With ugBasic you can measure time with TIMER instruction, that gives the the time spend since your computer boot up. The time unit is 1/50 second which is quite precise, but the Amstrad CPC is able to do better ! Thanks to the following code : BITMAP ENABLE(320,200,4) CLS DECLARE SYSTEM PROC scnkey ...
by ldir_hector
Sun Nov 12, 2023 6:54 pm
Forum: Support
Topic: use of ASM language in
Replies: 1
Views: 6157

Re: use of ASM language in

I understand my mistake, the label ONDUL shall be in lowercase !
by ldir_hector
Sun Nov 12, 2023 2:48 pm
Forum: Support
Topic: use of ASM language in
Replies: 1
Views: 6157

use of ASM language in

Hello, I am trying to make a ugBasic program mixed with z80 assembly for CPC. Here is the code : BITMAP ENABLE(320,200,4) CLS trex := LOAD IMAGE("trex.png") PUT IMAGE trex AT 0,0 PALETTE 20,23,4,28 DIM x AS BYTE RESTORE ondul FOR i=1 TO 75 READ x ON CPUZ80 BEGIN ASM LD BC,&BC02 OUTI IN...
by ldir_hector
Thu Nov 02, 2023 8:05 pm
Forum: New features
Topic: Short circuit evaluation: yes or no?
Replies: 6
Views: 9410

Re: Short circuit evaluation: yes or no?

I am not sure about Ansi Pascal, but I know that in Turbo Pascal "AND" and "OR" are short circuited as in C. So you could write something like : WHILE x <> 0 AND 1/X > 0.5 BEGIN END That's a quite common way to write code for at least the last 20 years ! Anyhow, the most importan...