AluVM / aluasm

AluVM assembler
GNU Affero General Public License v3.0
6 stars 5 forks source link

Complete assembly compiler for string operations #15

Open dr-orlovsky opened 3 years ago

6293 commented 2 years ago

@dr-orlovsky I need some clarification on Splt.

Firstly, Docstring says that sometimes "zero-length string" should be put. ByteStr, however, has a 0-based length. This means ByteStr with 0 length has one character. Maybe we can define "zero-length string" as len = 0 && all bytes are set to 0?

Secondly, I am not sure if this docstring is correct. It occured to me that the sentence should be other way around; if offset value is greater than string length, we cannot split the string and the operation would always fail (thus needs to be handled based on the flag).

dr-orlovsky commented 2 years ago

I think this issue (and the whole macro assembly compiler) is outdated because we have a proper standalone compiler for now: https://github.com/pandoracore/aluasm

However your questions and valid and deserve a dedicated issues. I can't answer on them right afay and need to look deeply by myself.