Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I feel like not being able to treat data as code and code as data limits the strategy a lot.

You can't read what code is in a cell, you can only read and write data. So you can't do self-modifying code, beyond blindly copying an existing code cell somewhere else.



hello! i just discovered this forum post was the reason why my server load got off the charts :p Thanks so much for all the nice comments!!

In the game instructions are also data, the ones called "data" just happen to be empty instructions. So you can modify instructions on the fly! For instance adding +1 to a WRITE X TO Y statement will affect the Y parameter, so you can do self modifying programs. There is all sort of clever stuff you can do but I haven't tried too much - but you can also create instructions by adding or masking existing instructions :) there's also a handful of useful undocumented operations like multiply or skip if greater.

The whole source is at github.com/Rackover/assembly so if you feel like becoming a mastermind you can check out how the compiler looks like and predict how it will react to live instruction modification

Have a very good day ♥


Thanks for the explanation, appreciate it

Have a good day as well <3




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: