Mercurial > hg > index.cgi
comparison Makefile @ 80:bb50ac9fdf37
Checkpoint with very basic integer and floating point arithmetic, untested
This commit has implementations for floating point add, subtract, multiply,
and divide, along with 32 bit signed integer equivalents. These can probably
be optimized and they are untested.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sat, 07 Oct 2023 02:56:59 -0600 |
parents | eb2681108660 |
children | f1d847f69c0d |
comparison
equal
deleted
inserted
replaced
79:df86e6d64ce2 | 80:bb50ac9fdf37 |
---|---|
1 .PHONY: all | 1 .PHONY: all |
2 all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco2.zip bin/coco2b.zip bin/coco3.zip | 2 all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco2.zip bin/coco2b.zip bin/coco3.zip |
3 | 3 |
4 lwb_srcs := consscr.s defs.s error.s expr.s genio.s init.s interp.s irq.s keyb.s keywords.s miscdata.s number.s print.s progctrl.s token.s vars.s | 4 lwb_srcs := consscr.s defs.s error.s expr.s fps.s genio.s init.s int.s interp.s irq.s keyb.s keywords.s miscdata.s number.s print.s progctrl.s token.s vars.s |
5 lwb_srcs := $(addprefix src/,$(lwb_srcs)) | 5 lwb_srcs := $(addprefix src/,$(lwb_srcs)) |
6 | 6 |
7 bin/lwbasic.rom: src/lwbasic.s $(lwb_srcs) | 7 bin/lwbasic.rom: src/lwbasic.s $(lwb_srcs) |
8 lwasm --tabs=16 --raw --list=src/lwbasic-coco2.list --symbols --output=bin/lwbasic.rom src/lwbasic.s | 8 lwasm --6809 --tabs=16 --raw --list=src/lwbasic-coco2.list --symbols --output=bin/lwbasic.rom src/lwbasic.s |
9 bin/lwbasic-coco2b.rom: src/lwbasic.s $(lwb_srcs) | 9 bin/lwbasic-coco2b.rom: src/lwbasic.s $(lwb_srcs) |
10 lwasm --tabs=16 --raw --list=src/lwbasic-coco2b.list --symbols --output=bin/lwbasic-coco2b.rom -DCOCO2B=1 src/lwbasic.s | 10 lwasm --6809 --tabs=16 --raw --list=src/lwbasic-coco2b.list --symbols --output=bin/lwbasic-coco2b.rom -DCOCO2B=1 src/lwbasic.s |
11 bin/lwbasic-coco3.rom: src/lwbasic.s $(lwb_srcs) | 11 bin/lwbasic-coco3.rom: src/lwbasic.s $(lwb_srcs) |
12 lwasm --tabs=16 --raw --list=src/lwbasic-coco3.list --symbols --output=bin/lwbasic-coco3.rom -DCOCO3=1 src/lwbasic.s | 12 lwasm --6809 --tabs=16 --raw --list=src/lwbasic-coco3.list --symbols --output=bin/lwbasic-coco3.rom -DCOCO3=1 src/lwbasic.s |
13 | 13 |
14 .PHONY: clean | 14 .PHONY: clean |
15 clean: | 15 clean: |
16 rm -f bin/*.rom bin/*.zip | 16 rm -f bin/*.rom bin/*.zip |
17 rm -f src/*.list | 17 rm -f src/*.list |