mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
stuff
This commit is contained in:
parent
0d2f94314a
commit
0a29f911a2
10
Makefile
10
Makefile
@ -1,13 +1,13 @@
|
|||||||
# The OS/K Team licenses this file to you under the MIT license.
|
# The OS/K Team licenses this file to you under the MIT license.
|
||||||
# See the LICENSE file in the project root for more information.
|
# See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
all: pc as
|
all: kpc kas
|
||||||
|
|
||||||
pc:
|
kpc:
|
||||||
cd pc && make
|
@cd pc && make --no-print-directory
|
||||||
|
|
||||||
as:
|
kas:
|
||||||
cd as && make
|
@cd as && make --no-print-directory
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
# The OS/K Team licenses this file to you under the MIT license.
|
||||||
|
# See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
all: k-as.py
|
@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
# The OS/K Team licenses this file to you under the MIT license.
|
||||||
|
# See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
11
pc/Makefile
11
pc/Makefile
@ -3,15 +3,14 @@
|
|||||||
|
|
||||||
all: k.exe
|
all: k.exe
|
||||||
|
|
||||||
src = instrs.c decd.c main.c regs.c \
|
src = instrs.c decd.c main.c regs.c dump.c jumps.c
|
||||||
dump.c jumps.c
|
|
||||||
|
|
||||||
obj = $(patsubst %.c,%.o,$(src))
|
obj = $(patsubst %.c,%.o,$(src))
|
||||||
|
|
||||||
%.o: %.c instrs/i_arch.h */*.h $(src)
|
%.o: %.c i_arch.h *.h $(src)
|
||||||
@gcc -O2 -Wall -I./karch -c $< -o $@
|
@gcc -O2 -Wall -c $< -o $@
|
||||||
|
|
||||||
instrs/i_arch.h: INSTRS instrs.py
|
i_arch.h: INSTRS instrs.py
|
||||||
@python3 instrs.py
|
@python3 instrs.py
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
@ -20,6 +19,6 @@ clean:
|
|||||||
@rm *.o
|
@rm *.o
|
||||||
|
|
||||||
k.exe: $(obj) i_arch.h INSTRS instrs.py
|
k.exe: $(obj) i_arch.h INSTRS instrs.py
|
||||||
@gcc -O2 -Wall $(obj) -o ../k.exe
|
@gcc -O2 -Wall $(obj) -o k.exe
|
||||||
@rm *.o
|
@rm *.o
|
||||||
|
|
||||||
|
@ -198,5 +198,5 @@ static inline void writemem64(ctx_t *ctx, ulong val, ulong addr)
|
|||||||
ctx->mp[real++] = val & 0xFFFF;
|
ctx->mp[real++] = val & 0xFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "../instr/arch_i.h"
|
#include "arch_i.h"
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
# The OS/K Team licences this file to you under the MIT license.
|
# The OS/K Team licences this file to you under the MIT license.
|
||||||
# See the LICENSE file in the project root for more information.
|
# See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
fi = open("instr/INSTRS")
|
fi = open("INSTRS")
|
||||||
hd = open("instr/arch_i.h", "w")
|
hd = open("arch_i.h", "w")
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user