I need to a dynamic array in forth, but I don't have any idea of how I could implement it. I searched online, and couldn't find any results either. I' ...
I need to a dynamic array in forth, but I don't have any idea of how I could implement it. I searched online, and couldn't find any results either. I' ...
Reading the gforth manual, a value can be changed using the word TO, so how is it different than a variable? https://gforth.org/manual/Values.html#in ...
I have solved this problem in the sense I have code that does what I want, but I don't understand why it is necessary to do what I do, and I cannot se ...
I'm wondering if there is a good resource for FORTH implementations on recent SOCs. I'm mostly interested in bare metal versions, something that can ...
I see a lot of Forth code just doing s" Hello " s" world" s+ like it's nothing, but now that I think about it, this actually allocates 3 pointers, and ...
In C, local variables exist inside of a function and contain the values like this: In the Gforth manual, they describe the local variables like thi ...
I would like to exit a Forth program (using Gforth 0.7.3) with a non-zero exit status. I've tried: But the 1 is not interpreted as an argument to ...
In repairing an instrument cluster, I need to replace a controller which is built on an Motorola MC68HC11 using Forth. While I was able to dump the wh ...
When a word is redefined, is it possible to access the old word? Imagine there is a word foo defined and redefined foo here executed both definiti ...
I am trying to load some Forth into my Forth compiler running on a RISC-V SBC (I do not believe this is a Forth-related question though): What the ...
I'm trying to implement a kind of "conditional :" in ATLAST, the reasoning being I have a file that gets FLOADed multiple times to handle multiple ste ...
I tried to apply Zeller's convergence simplified method to get the day name from a user input date. Simplified algorithm from The syntax seems OK, ...
Intro I am going to write my own FORTH "engine" in GNU assembler (GAS) for Linux x86-64 (specifically for AMD Ryzen 9 3900X that is siting on my tabl ...
I'm trying to write a function that fits a value to a model. I have a measurement from a pressure sensor and using a calibrated model I have to conve ...
Update: Writing this out allowed me to spot where I was going wrong, but not why. I am obviously calling fgets in the wrong way, because after five ca ...
I am writing a Forth-like language for RISC-V and naturally that means I need to have a way to allow the users to define new words and execute them. ...
Consider: For example, it raises a division-by-zero error on my machine. Why? The divisor is 1 (not 0!) and 9223372034707292159 fits within an unsi ...
I'm interesting in testing some of the limits of Gforth and would like to have it execute arbitrary code that I "hand compile" into allocated memory. ...
As the title suggests, in Forth: Does: Zero out 4 bytes begining at address 1024, or 4 cells (4x4=16 bytes in a 32-bit Forth) ? I can't find any ...
How to implement copy-on-write technique for stack management in postfix calculations of big numbers? I want to optimize my system regarding operatio ...