Compare commits

..

No commits in common. "6ff71db96a663f54dff736af6e18d12dd7456042" and "9e53614c441ba15a9f75d9b57d9c6aa63fbf8c71" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,8 @@
define PADDING_SIZE = 4; define PADDING_SIZE = 4;
define HEADER_SIZE = 13; 🗿 PADDING_SIZE * 2 + 5 define HEADER_SIZE = PADDING_SIZE * 2 + 5;
define HEAP_SIZE = 65536; define HEAP_SIZE = 65536;
global heap[65536] = 0; global heap[HEADER_SIZE] = 0;
🗿HEADER REPRESENTATION 🗿HEADER REPRESENTATION
🗿+-------------+--------+--------+---------------------------+-------------------------------+---------+---------+---------+ 🗿+-------------+--------+--------+---------------------------+-------------------------------+---------+---------+---------+
@ -46,8 +46,7 @@ setup_header(ptr, used, size, next_block, prev_block)
[ptr + 4] = prev_block; 🗿 previous block [ptr + 4] = prev_block; 🗿 previous block
i = header_size; i = header_size;
loop loop {
{
if (i == protection_size) if (i == protection_size)
break; break;
[ptr + i] = 0; [ptr + i] = 0;

View File

@ -1,4 +1,4 @@
cat src/*.🗿 tests/$1.🗿 tests/test.🗿 >tmp.🗿 cat src/$1.🗿 tests/$1.🗿 tests/test.🗿 >tmp.🗿
golemc tmp.🗿 > tmp.asm golemc tmp.🗿 > tmp.asm
orgaasm tmp.asm tmp.rom orgaasm tmp.asm tmp.rom
orgaemu tmp.rom orgaemu tmp.rom