๐งฌ Ahmad's EmojiScript โ GRISP Shadow Arena
Bytecode dialect compiled to SigilOp instructions. Fast-path validation for the Lisp Machine runtime. 15 emoji opcodes, stack-based VM, deterministic execution.
Live Compiler + Executor
๐ EmojiScript Source
Instruction Reference
Stack Operations
| Emoji |
Name |
Effect |
๐ข<digits> |
Push |
Push i64 literal onto stack |
Arithmetic Operators
| Emoji |
Name |
Effect |
| โ | Add | Pop 2, push sum |
| โ | Sub | Pop 2, push difference |
| โ๏ธ | Mul | Pop 2, push product |
| โ | Div | Pop 2, push quotient |
Bitwise Operators
| Emoji |
Name |
Effect |
| ๐ค | And | Bitwise AND |
| ๐ | Or | Bitwise OR |
| ๐ | Xor | Bitwise XOR |
Control Flow
| Emoji |
Name |
Args |
Effect |
| โก๏ธ | Jump | target | Unconditional jump to PC |
| โ | JumpIf | target | Jump if TOS โ 0, pop predicate |
| โฉ๏ธ | Return | โ | Halt execution |
Advanced (Future)
| Emoji |
Name |
Purpose |
| ๐ | CapGate | Capability proof (pops 2 args) |
| โก | Call | Indirect function call |
| ๐๏ธ | Alloc | Allocate memory |
| ๐ค | Load | Load from memory |
| ๐ฆ | Store | Store to memory |
Examples
Arithmetic:
๐ข40 ๐ข2 โ โฉ๏ธ โ 42
๐ข100 ๐ข40 โ โฉ๏ธ โ 60
๐ข6 ๐ข7 โ๏ธ โฉ๏ธ โ 42
Bitwise:
๐ข15 ๐ข7 ๐ค โฉ๏ธ โ 7 (AND: 1111 & 0111 = 0111)
๐ข12 ๐ข5 ๐ โฉ๏ธ โ 13 (OR: 1100 | 0101 = 1101)
Control:
๐ข1 โ โฉ๏ธ โ jump if predicate
๐ข0 โก๏ธ โ infinite loop