2019-05-15 20:06:45 +02:00
|
|
|
# The OS/K Team licenses this file to you under the MIT license.
|
|
|
|
# See the LICENSE file in the project root for more information.
|
2019-05-15 19:26:40 +02:00
|
|
|
|
2019-05-19 19:54:29 +02:00
|
|
|
all: kas
|
2019-05-15 21:47:08 +02:00
|
|
|
|
2019-05-16 20:09:20 +02:00
|
|
|
kpc:
|
2019-06-05 12:53:09 +02:00
|
|
|
@cd vm && make --no-print-directory
|
2019-05-16 19:49:51 +02:00
|
|
|
|
2019-05-29 22:59:17 +02:00
|
|
|
kas: kpc as/k-as.py as/regs.lst
|
2019-06-05 12:53:09 +02:00
|
|
|
@cp vm/in/instrs.lst as
|
|
|
|
@rm -f vm/in/instrs.lst
|
2019-05-15 19:26:40 +02:00
|
|
|
|
2019-06-05 12:53:09 +02:00
|
|
|
DOSK = $(shell find ka -name '*.k')
|
2019-05-15 19:26:40 +02:00
|
|
|
|
2019-06-05 12:53:09 +02:00
|
|
|
vm/a.out: $(DOSK)
|
|
|
|
@cd ka && ../as/k-as.py dos.k 0x100000 ../vm/a.out
|
2019-05-30 18:31:50 +02:00
|
|
|
|
2019-06-05 12:53:09 +02:00
|
|
|
test: kas vm/a.out
|
|
|
|
@vm/k.exe vm/a.out > vm/stdout.txt
|
|
|
|
@rm -f vm/a.out
|
2019-05-30 18:31:50 +02:00
|
|
|
@echo "output:"
|
|
|
|
@echo ">>>>>>>>"
|
2019-06-05 12:53:09 +02:00
|
|
|
@cat -v vm/stdout.txt
|
2019-05-30 18:31:50 +02:00
|
|
|
@echo
|
|
|
|
@echo "<<<<<<<<"
|
|
|
|
@echo
|
2019-05-29 22:59:17 +02:00
|
|
|
|
2019-06-05 12:53:09 +02:00
|
|
|
disasm: kas vm/a.out
|
|
|
|
@vm/k.exe vm/a.out -d
|
|
|
|
@mv fwprog.dis vm
|