From 12cfe2ff4b769d523a8e7598f334f78e107c8c44 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 4 Jun 2025 23:56:04 +0200 Subject: [PATCH] Fixed a bug. Need to make room for stack. --- avr/devices/c02/main/main.asm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/avr/devices/c02/main/main.asm b/avr/devices/c02/main/main.asm index ce136d1..b2ffe22 100644 --- a/avr/devices/c02/main/main.asm +++ b/avr/devices/c02/main/main.asm @@ -33,6 +33,8 @@ ; --------------------------------------------------------------------------- ; generic +.equ STACK_SIZE = 128 + .equ NET_BUFFERS_NUM = 8 .equ NET_BUFFERS_SIZE = 32 @@ -228,6 +230,7 @@ onEveryLoop: .include "modules/lcd2/font/font12x20.asm" ;.include "common/list_t.asm" .include "common/tree_t.asm" +.include "common/divide.asm" ; --------------------------------------------------------------------------- @@ -443,5 +446,5 @@ heapStart: .equ HEAP_START = heapStart -.equ HEAP_SIZE = SRAM_SIZE-HEAP_START +.equ HEAP_SIZE = (SRAM_SIZE-STACK_SIZE)-HEAP_START