Search found 12 matches

by jurkstas
25 Jun 2020, 08:50
Forum: Hardware and software hacking
Topic: gtBASIC
Replies: 28
Views: 5467

Re: gtBASIC

at67 wrote:
25 Jun 2020, 08:20
jurkstas wrote:
25 Jun 2020, 07:35
Is there an include/import/copy directive for gtbas code modules?
There is for the assembler but not for the compiler yet, it should be in for the next version; but no promises :)
Thanks. Then copy/paste it is :)
by jurkstas
25 Jun 2020, 07:35
Forum: Hardware and software hacking
Topic: gtBASIC
Replies: 28
Views: 5467

Re: gtBASIC

Hi at67,

This is awesome. Thank you.

Is there an include/import/copy directive for gtbas code modules?
by jurkstas
01 Sep 2019, 20:59
Forum: Hardware and software hacking
Topic: Expansion bus
Replies: 96
Views: 35912

Re: Expansion bus

This is impressive.

On the note of expansion bus, what would make more sense: PC/104, Apple 2 style (w or without decoding on the motherboard), S-100, something else but standard or something custom for Gigatron?
by jurkstas
28 Aug 2019, 15:12
Forum: Hardware and software hacking
Topic: Expansion bus
Replies: 96
Views: 35912

Re: Expansion bus

You are right, I'm just thinking about this out loud. But to be specific, I am thinking about GPIO, real time clock with battery backup, maybe storage device. Regarding 64k programs, do you mean mapping at, lets say, last 1kb? Peripherals could have memory range above 96k, starting at 0x30000, endin...
by jurkstas
21 Aug 2019, 20:21
Forum: Hardware and software hacking
Topic: Expansion bus
Replies: 96
Views: 35912

Re: Expansion bus

But what about a generic expansion port/bus for memory-mapped peripherals? Could the SPI be one of such peripherals, having it's own memory address/range? Or should it be an integral part of Gigatron sometime in the future?
by jurkstas
11 Aug 2019, 07:19
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 1731

Re: Assertion `offset < 0x10000lu' failed

I compiled the code with Arduino for ATMEGA2560 and here what it outputs: Sketch uses 10094 bytes (3%) of program storage space. Maximum is 253952 bytes. Global variables use 8092 bytes (98%) of dynamic memory, leaving 100 bytes for local variables. Maximum is 8192 bytes. Older variant, optimized fo...
by jurkstas
10 Aug 2019, 22:02
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 1731

Re: Assertion `offset < 0x10000lu' failed

Could it be that the compiled code doesn't fit in the memory available? Might be. Is there a way to check that? Is there a way to get something like this: Application uses 656 bytes (0%) of program storage space. Maximum is 253952 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving ...
by jurkstas
10 Aug 2019, 20:21
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 1731

Re: Assertion `offset < 0x10000lu' failed

That being resolved, should I move to another topic or just rename this topic to something like "compiling nanotode library" and continue with other troubles? Now I get this: Utils/lcc/build/lcc -ILibs Libs/test/main.o Libs/string/strcpy.o Libs/string/memset.o Libs/stdio/fflush.o Libs/stdio/getchar....
by jurkstas
10 Aug 2019, 20:01
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 1731

Re: Assertion `offset < 0x10000lu' failed

Played with #if 0 and found a line that causes it. int16_t is defined as int somewhere else. static void ctm_set_next_state(Connectome* const c, const uint16_t id, const int16_t val) { if(id < c->_neurons_tot) { if(val > 127) { c->_neuron_next[id] = 127; } // else if(val < -128) { //this here causes...
by jurkstas
10 Aug 2019, 17:19
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 1731

Re: Assertion `offset < 0x10000lu' failed

Thanks. I modified the local() to print what is in the debug() call and this is what I got. Looks like a runaway as you said: [..] local 32761 of size 2 @ offset 65518 local 32762 of size 2 @ offset 65520 local 32763 of size 2 @ offset 65522 local 32764 of size 2 @ offset 65524 local 32765 of size 2...