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