mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-28 14:31:50 +00:00
29 lines
308 B
Raku
29 lines
308 B
Raku
SECTIONS
|
|
{
|
|
. = 0x800;
|
|
A = .;
|
|
.text :
|
|
{
|
|
_start = .;
|
|
*(.text)
|
|
. = 0x100;
|
|
}
|
|
B = .;
|
|
.data :
|
|
{
|
|
*(.data)
|
|
. = 0x100;
|
|
}
|
|
C = .;
|
|
.bss :
|
|
{
|
|
*(.bss)
|
|
. = 0x100;
|
|
}
|
|
D = A - C + B;
|
|
E = A + B - C;
|
|
/DISCARD/ : {*(*)}
|
|
}
|
|
|
|
ASSERT(D == E, "Addition is not commutative");
|