PDA

View Full Version : Suggestions...


PJE
01-07-05, 02:12 PM
Hi Pete,

Playing around with StatiC some more, I'd like to see the following (if possible):

1. Ability for system to precalculate constants for register access:

^TD0LOAD = 400

Becomes:

^(TD0+LOAD) = 400

Where TD0 and LOAD are defined separately.

Even better would be ^TD0_LOAD which combines TD0 and LOAD if it is not previously defined...

This would make timer register definitions much more simple.

2. Ability enter binary numbers such as %1001001 would make register manipulation more error free.

Regards,

Peter

petegray
01-07-05, 06:41 PM
Hi Peter,

Good suggestions. Done. Now supported...

^(ptr expression)
^(expression)

or with the new -c switch...

*(ptr expression)
*(expression)

Binary numbers (i.e. prefixed with %), also now supported.

Regards,
-Pete.

PJE
01-08-05, 09:22 PM
Hi Pete,

If the expression is the sum of constants, will the result be a single address within the assembly code?

Also, good to see binary numbers are now supported.

I've already found StatiC to be a very nice language for small embedded applications, and look forward to V1.

With regard to the assembler (a568) is there any way to output the error lines to to console. I would not then need to trawl through the output file to find the errors...

Regards,

Peter

petegray
01-09-05, 12:08 AM
Hi Peter,

Yes, the instruction optimizer converts sums of constants to a single value.

Glad you're enjoying StatiC. V1 will be even more interesting once the FSM elements are implemented.

I'll take a look at the Assembler mods, and get back to you on that soon.

Regards,
-Pete.