Search found 457 matches

by cfbsoftware
Mon Feb 10, 2025 1:35 am
Forum: Astrobe for Raspberry Pi RP2040 and RP2350
Topic: Program Counter
Replies: 3
Views: 488

Re: Program Counter

Is the original source code NW's ARM compiler available, as it is for Project Oberon? Not that I'm aware of. It was rendered obsolete many years ago by the version that is included in Project Oberon. The major difference is the code generator. The RISC5 version is only just over 1000 lines of code ...
by cfbsoftware
Fri Feb 07, 2025 9:43 pm
Forum: Astrobe for Raspberry Pi RP2040 and RP2350
Topic: Pull-up Resistor
Replies: 1
Views: 397

Re: Pull-up Resistor

If you are configuring the pin for I2C the Astrobe GPIO module automatically enables the pull-up resistor for the pin. If you have the source code for the Astrobe GPIO module you can see how it is done there. Otherwise, for other GPIO pins, the relevant bit, PUE ( P ull- U p E nable), is identified ...
by cfbsoftware
Fri Feb 07, 2025 12:13 am
Forum: Astrobe for Raspberry Pi RP2040 and RP2350
Topic: Program Counter
Replies: 3
Views: 488

Re: Program Counter

Thank you for pointing that out. I'll update the docs accordingly. At the risk of being picky, the writer of the Oberon Compiler for the ARM Processor was Niklaus Wirth. I'm merely modifying the code generator to target other Arm processors. There is no way in the world I could have done that withou...
by cfbsoftware
Thu Feb 06, 2025 11:51 pm
Forum: Oberon Language
Topic: Conditional Compilation
Replies: 6
Views: 13044

Re: Conditional Compilation

And this strictly works with BOOLEAN CONSTs only, correct? Correct. It has always been possible to parameterise code in the way you describe - the Conditional Compilation feature just makes it less inefficient than it otherwise would be. However that was not the intended use of the feature and I wo...
by cfbsoftware
Thu Feb 06, 2025 1:03 am
Forum: Oberon Language
Topic: Conditional Compilation
Replies: 6
Views: 13044

Re: Conditional Compilation

Does the quoted statement mean that the nested 'IF F1 ...' gets included? Yes. If you compiled your code with v10 you would get the same code generated as if you compiled the following with v9.3: CONST T0 = TRUE; F1 = FALSE; PROCEDURE P4(); BEGIN IF F1 THEN Included() (* ?? *) END END P4;
by cfbsoftware
Wed Feb 05, 2025 9:03 pm
Forum: Oberon Language
Topic: Conditional Compilation
Replies: 6
Views: 13044

Re: Conditional Compilation

There are four possible combinations for the values of Trace.enabled (TRUE / FALSE) and OtherTrace.enabled (TRUE / FALSE). This is shown by the following hypothetical example. None of the calls to the procedure Eliminated are generated. MODULE Elsif; CONST F1 = FALSE; F2 = FALSE; T1 = TRUE; T2 = TRU...
by cfbsoftware
Tue Feb 04, 2025 1:09 am
Forum: Oberon Language
Topic: Conditional Compilation
Replies: 6
Views: 13044

Conditional Compilation

In the process of testing a module it is often very useful to add diagnostic traces to monitor progress. As these diagnostics are generally only required for development they can be turned off for the release version of the application using various CONST declarations. A new optimisation feature, Co...
by cfbsoftware
Sat Jan 25, 2025 11:34 pm
Forum: CPIde and Component Pascal
Topic: Debugging GPCP using Visual Studio
Replies: 1
Views: 57605

Re: Debugging GPCP using Visual Studio

While revisiting this article I discovered another later one titled Another Trick for Debugging GPCP Programs

https://softwareautomata.blogspot.com/2011/11/
by cfbsoftware
Tue Dec 31, 2024 6:16 am
Forum: Raspberry Pi RP2040 and RP2350
Topic: Text Display and/or Slide Drawing?
Replies: 3
Views: 26895

Re: Text Display and/or Slide Drawing?

v9.3.3 of Astrobe for RP2040 and Astrobe for RP2350 now include the Text Display and Slide Drawing examples as part of the standard distribution:

Astrobe for RP2040 Source code examples

Astrobe for RP2350 Source code examples
by cfbsoftware
Mon Dec 23, 2024 4:45 am
Forum: Astrobe for Raspberry Pi RP2040 and RP2350
Topic: I2C
Replies: 4
Views: 17130

Re: I2C

V9.3.3 Astrobe for RP2040 and RP2350 have now been released with I2C support:

What's New in Astrobe for RP2040 and RP2350