ls

simple syscall based programming language from scratch
git clone git://git.kocotian.pl/ls.git
Log | Files | Refs | README | LICENSE

commit e848a314d2c1af0d3f6e73a9b1dbdcfb0c5e55ce
parent ee70fceca27f67bfe8df9e5e2fd1dafe755f6394
Author: kocotian <kocotian@kocotian.pl>
Date:   Tue, 16 Mar 2021 19:30:08 +0100

Sign change

Diffstat:
Mgrammar.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/grammar.c b/grammar.c @@ -87,6 +87,7 @@ g_expression(Token *tokens, size_t toksize) } else if (tokens[i].type == TokenMinusSign) { /* -sign-change */ ++i; i += g_expression(tokens + i, toksize - i); + ASMCONCAT("\tneg rax\n"); } else if (tokens[i].type == TokenExclamationMark) { /* !negation */ ++i; i += g_expression(tokens + i, toksize - i);