changed python tools to python3.11

This commit is contained in:
Michael Schröder 2023-08-04 16:44:31 +02:00
parent f476ed8da2
commit b16bfcfd43
32 changed files with 111 additions and 57 deletions

View File

@ -1,12 +1,14 @@
PYTHON = /bin/python3.11
leds:
../tools/Assembler/assembler.pyc leds.asm
$(PYTHON) ../tools/Assembler/assembler.pyc leds.asm
cp leds.hack ../05_Computer_Architecture/04_HACK/ROM.hack
mult:
../tools/Assembler/assembler.pyc mult.asm
$(PYTHON) ../tools/Assembler/assembler.pyc mult.asm
cp mult.hack ../05_Computer_Architecture/04_HACK/ROM.hack
upload:
../tools/Assembler/assembler.pyc leds.asm
../tools/AsciiToBin.py leds.hack
$(PYTHON) ../tools/Assembler/assembler.pyc leds.asm
$(PYTHON) ../tools/AsciiToBin.py leds.hack
iceprogduino -o 64k -w leds.bin
clean:
rm -f *.hack *~ *.bin

View File

@ -1,9 +1,11 @@
PYTHON = /bin/python3.11
NAME = hello
all: asm install
asm:
../../tools/Assembler/assembler.pyc $(NAME).asm
$(PYTHON) ../../tools/Assembler/assembler.pyc $(NAME).asm
install:
cp $(NAME).hack ../00_HACK/ROM.hack
clean:

View File

@ -1,9 +1,11 @@
PYTHON = /bin/python3.11
NAME = echo
all: asm install
asm:
../../tools/Assembler/assembler.pyc $(NAME).asm
$(PYTHON) ../../tools/Assembler/assembler.pyc $(NAME).asm
install:
cp $(NAME).hack ../00_HACK/ROM.hack
clean:

View File

@ -1,9 +1,11 @@
PYTHON = /bin/python3.11
NAME = cat
all: asm install
asm:
../../tools/Assembler/assembler.pyc $(NAME).asm
$(PYTHON) ../../tools/Assembler/assembler.pyc $(NAME).asm
install:
cp $(NAME).hack ../00_HACK/ROM.hack
clean:

View File

@ -1,9 +1,11 @@
PYTHON = /bin/python3.11
NAME = buffer
all: asm install
asm:
../../tools/Assembler/assembler.pyc $(NAME).asm
$(PYTHON) ../../tools/Assembler/assembler.pyc $(NAME).asm
install:
cp $(NAME).hack ../00_HACK/ROM.hack
clean:

View File

@ -1,9 +1,11 @@
PYTHON = /bin/python3.11
NAME = boot
all: asm install
asm:
../../tools/Assembler/assembler.pyc $(NAME).asm
$(PYTHON) ../../tools/Assembler/assembler.pyc $(NAME).asm
install:
cp $(NAME).hack ../00_HACK/ROM.hack
clean:

View File

@ -1,13 +1,15 @@
PYTHON = /bin/python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,13 +1,15 @@
PYTHON = python3.11
all: jack vm asm bin sim
jack:
../../tools/JackCompiler/JackCompiler.pyc ./
$(PYTHON) ../../tools/JackCompiler/JackCompiler.pyc ./
vm:
../../tools/VMTranslator/VMTranslator.pyc ./
$(PYTHON) ../../tools/VMTranslator/VMTranslator.pyc ./
asm:
../../tools/Assembler/assembler.pyc out.asm
$(PYTHON) ../../tools/Assembler/assembler.pyc out.asm
bin:
../../tools/AsciiToBin.py out.hack
$(PYTHON) ../../tools/AsciiToBin.py out.hack
sim:
cp out.hack ../00_HACK/ROM.hack
upload:

View File

@ -1,17 +1,32 @@
# Revision V2.0
## update 04.08.2023
### update tools to python3.11:
- `tools/Assembler/assembler.pyc`: update tools to python 3.11
- `tools/Jack/JackCompiler.pyc`: update tools to python 3.11
- `tools/Jack/VMTranslator.pyc`: update tools to python 3.11
### corrected:
- corrected diagramms: leds.png, mult.png
## update 18.10.2022
### correct typos:
* `Hack/CPU.v`: Replace `loadM` with `writeM`
* update diagramms
### update tools to python3.10:
* `tools/Assembler/assembler.pyc`: update tools to python 3.10
* `tools/Jack/JackCompiler.pyc`: update tools to python 3.10
* `tools/Jack/VMTranslator.pyc`: update tools to python 3.10
### update Jack-OS:
* `Jack/UART.jack`: replace `init()` with `init(int addr)`
### wierd behaviour of iCE40HX8K-EVB:
@ -21,10 +36,13 @@
* `Hack/Clock.v`: 25MHz?
### iceprog: programmer.ino
* set default to `bridge` (led green on).
### consistency:
* `Hack/Reset.v`:
### boot from spi
* 04_Hack-FLASH

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.