From fdcf9416fc21a47508531cda9d3082c67bf83766 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Fri, 18 Aug 2023 12:07:16 +0200 Subject: inline assembly --- bootstrap.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bootstrap.lua') diff --git a/bootstrap.lua b/bootstrap.lua index 04f33dd..c0243c6 100755 --- a/bootstrap.lua +++ b/bootstrap.lua @@ -218,6 +218,18 @@ local function compile_fn() strings = "str_" .. str_counter .. ": db " .. table.concat(str, ",") .. "\n" .. strings str_counter = str_counter + 1 c = nil + elseif c == "`" then + while true do + local x = read_char() + if not x then + syntax_error("unterminated inline assembly") + end + if x == "`" then + break + end + io.write(x) + end + c = nil elseif c == "[" then local lambda = fn_counter print("jmp end_" .. lambda) -- cgit v1.2.3