Initial size handling

This commit is contained in:
IlyaShurupov 2024-10-10 11:17:03 +03:00
parent e028ad1a41
commit b2c393d23a
28 changed files with 543 additions and 135 deletions

View file

@ -410,14 +410,14 @@ alni instSize(const Instruction& inst) {
}
void writeConst(ByteCode& out, alni& idx, uint2 data) {
for (auto byte : Range(sizeof(uint2))) {
for (auto byte : IterRange(sizeof(uint2))) {
out.mInstructions[idx] = OpCode((int1) (data >> byte * 8));
idx++;
}
}
void writeParam(ByteCode& out, alni& idx, const int1* data, alni size) {
for (auto byte : Range(size)) {
for (auto byte : IterRange(size)) {
out.mInstructions[idx] = OpCode(data[byte]);
idx++;
}