Assertion `offset < 0x10000lu' failed

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice.
jurkstas
Posts: 10
Joined: 05 Aug 2019, 17:06

Re: Assertion `offset < 0x10000lu' failed

Post by jurkstas » 11 Aug 2019, 07:19

I compiled the code with Arduino for ATMEGA2560 and here what it outputs:

Code: Select all

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 for small microcontrollers:

Code: Select all

Sketch uses 10280 bytes (4%) of program storage space. Maximum is 253952 bytes.
Global variables use 819 bytes (9%) of dynamic memory, leaving 7373 bytes for local variables. Maximum is 8192 bytes.
Not sure why first one uses 10x RAM, yet. But either should fit in video RAM with a bonus of visualization :) Can we do that? Load to and run from lets say 0x800?

User avatar
marcelk
Posts: 349
Joined: 13 May 2018, 08:26

Re: Assertion `offset < 0x10000lu' failed

Post by marcelk » 11 Aug 2019, 08:04

jurkstas wrote:
11 Aug 2019, 07:19
Can we do that? Load to and run from lets say 0x800?
Yes, the current segments above 0x800 are initialised as 0x8a0..0x8ff, 0x9a0..0x9ff, ... etc. If you setup LCC to use 0x800..0x8ff, 0x900..0x9ff it will use memory from that. If you have large data objects, you still need some more instrumentation, as explained in GitHub issue #66.

For MS BASIC on 32K systems I have a similar scheme in mind (borrowing from screen RAM). But then also reprogramming the video indirection table and rearrange what becomes visible.

Post Reply