Code Snippets Pawn

Short texts Pawn 🧑‍💻 Code snippets Pawn ✍️ Reading lists Pawn 👀

memset (doesn’t run on jit)

FillArray(arr[], value, length = sizeof(arr)) { new dst; new bytes = length * (cellbits / charbits); __emit { // dst = COD + CIP – DAT + bytes to fill param lctrl 0 // COD move.alt lctrl 6 // CIP add move.alt lctrl 1 // DAT sub.alt add.c 0x44 // 17 instructions since lctrl 6, […]