Fixed `pushVariable()` to ACTUALLY add to the stackOffsetMap

This commit is contained in:
Tristan B. Kildaire 2021-11-09 15:40:28 +02:00
parent bef0bced14
commit b88943d2ed
1 changed files with 3 additions and 1 deletions

View File

@ -179,6 +179,8 @@ public final class DCodeEmitter : CodeEmitter
private void pushVariable(string name, ubyte size)
{
stackPointer+=size;
variableOffsets[name] = size;
}
private ulong getVariableOffset(string name)
@ -291,7 +293,7 @@ public final class DCodeEmitter : CodeEmitter
/* Find the variable being assigned to (TODO) */
// Variable variable =
/* Calculate the amount to be written to said offset (TODO) */
ulong writeSize = 0;