aboutsummaryrefslogtreecommitdiff
path: root/cmd/hlang/nguh
diff options
context:
space:
mode:
authorXe <me@christine.website>2022-12-31 14:43:42 -0500
committerXe <me@christine.website>2022-12-31 14:43:42 -0500
commit4970fdc51f8c83dcd38bbdd25606fe030c0c26d2 (patch)
tree36d9d32f5b2b6aca843952fb9eb0d75e11f86697 /cmd/hlang/nguh
parent2fe527950512b97a544d2d59539026514ad59544 (diff)
downloadx-4970fdc51f8c83dcd38bbdd25606fe030c0c26d2.tar.xz
x-4970fdc51f8c83dcd38bbdd25606fe030c0c26d2.zip
nice
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'cmd/hlang/nguh')
-rw-r--r--cmd/hlang/nguh/compile.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/hlang/nguh/compile.go b/cmd/hlang/nguh/compile.go
index d268d77..72fb6aa 100644
--- a/cmd/hlang/nguh/compile.go
+++ b/cmd/hlang/nguh/compile.go
@@ -135,6 +135,7 @@ func Compile(tree *peg.Node) ([]byte, error) {
funcBuf.Write([]byte{
0x20, 0x00, // local.get 0
0x10, 0x00, // call 0
+ 0x01, 0x01, // two padding NOPs to get a single `h` binary to be 69 bytes.
0x0b, // end of function
})