From 647cd3471766425f52b88db8875a55a31aeced1d Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Tue, 6 Aug 2019 23:31:16 +0700 Subject: [PATCH] __emit: Switch to the code segment when used outside functions --- source/compiler/sc1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index cc70a26..ca5fa5c 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -1784,6 +1784,7 @@ static void parse(void) /* ignore zero's */ break; case t__EMIT: + begcseg(); emit_flags |= efGLOBAL; lex(&val,&str); emit_parse_line();