mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
build fixes
This commit is contained in:
parent
e17f1f70ed
commit
da050c082c
4 changed files with 7 additions and 8 deletions
4
byterun/.gitignore
vendored
4
byterun/.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
/byterun.exe
|
||||
byterun.exe
|
||||
byterun
|
||||
|
||||
build/
|
||||
.xmake/
|
||||
|
|
@ -8,4 +9,3 @@ compile_commands.json
|
|||
.cache/
|
||||
*.a
|
||||
*.o
|
||||
byterun
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
(rule
|
||||
(target byterun.exe)
|
||||
(deps
|
||||
(:include (source_tree include))
|
||||
(:main src/cli.c src/interpreter.c)
|
||||
(:parser src/parser.c)
|
||||
(:utils src/utils.c src/types.c src/stack.c)
|
||||
|
|
@ -8,4 +9,4 @@
|
|||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(run gcc -g -Iinclude/ %{main} %{runtime} -o %{target})))
|
||||
(run gcc -Iinclude/ -g %{main} %{parser} %{utils} %{runtime} -o %{target})))
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "../../runtime/runtime_common.h"
|
||||
|
||||
#define WORD_SIZE (CHAR_BIT * sizeof(int))
|
||||
|
||||
// ---
|
||||
|
||||
void Lassert(void *f, char *s, ...);
|
||||
|
|
|
|||
|
|
@ -92,12 +92,12 @@ void run(bytefile *bf) {
|
|||
Bsexp((aint*)s.sp, ip_read_int(&s.ip)); // TODO: check order
|
||||
break;
|
||||
|
||||
case 3: // STI
|
||||
case 3: // STI - write by ref (?)
|
||||
// TODO
|
||||
break;
|
||||
|
||||
case 4: // STA
|
||||
// TODO
|
||||
case 4: // STA - write to array elem
|
||||
// Bsta // TODO
|
||||
break;
|
||||
|
||||
case 5: // JMP 0x%.8x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue