From c7ff0b98146693b60a3f075818f96764f646b2d5 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Fri, 29 Jul 2022 22:41:17 -0700 Subject: Fix the bytecode interpreter. I'm too scared to actually try to run it right now. --- csc/encoding.csc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'csc') diff --git a/csc/encoding.csc b/csc/encoding.csc index f6a003d..1208993 100644 --- a/csc/encoding.csc +++ b/csc/encoding.csc @@ -167,6 +167,10 @@ (('exit code) (make-opcode w 13 (is-const? code) #f) (arg->le-bytes w code)) + (('alloc-bytevector dest size) + (make-opcode w 14 (is-const? size) #f) + (arg->le-bytes w dest) + (arg->le-bytes w size)) (_ (error "invalid opcode" opcode)))) -- cgit v1.3.1