Suggestions-and-Issues icon indicating copy to clipboard operation
Suggestions-and-Issues copied to clipboard

[Bug]: [ALPHA] Stack level meta.txt problems

Open altrag opened this issue 1 year ago • 1 comments

Discord Thread

https://discord.com/channels/828292123936948244/1309065016913170465

What happened?

First and most obvious: immutable_spec should be immutable_program so we can actually add the push and pop instructions. Second and also obvious: default_assembly is missing entirely.

Third and somewhat less obvious: When saving the schematic from the prior level (Instruction Aliases), it seems to pull the spec from Instruction Aliases default_assembly, rather than from the Stack level. (Though ideally it should be copying up the one the player created!) You can of just copy them in from the prior level manually (after addressing the first issue noted), but it's still an unexpected pain point.

Version

0.1225 Beta

What OSes are you seeing the problem on?

Windows

Relevant debug.log output, search next to the exectuable

No response

altrag avatar Nov 21 '24 07:11 altrag

I believe they want you to implement a stack using assembly on this level to get used to the idea of keeping track of it with the stack pointer. That being said, the store and load instruction have their mode shifted left 1 bit (there is no trailing 0 in the MSB position) so they do not work correctly and as you mentioned the instruction editor is locked here.

Solution - fix the first byte of the memory save/load instructions in meta.txt from '110x...' to '011x...'

UPDATE: while in the meta.txt to update the memory instructions I noticed that the immediate OR and the NOP was duplicated, and that the new alias instructions also had the first two bits shifted left like the memory instructions ( mode was 30 bits left, and there was no leading 0 in the msb position )

russ-sentient avatar May 19 '25 13:05 russ-sentient