├── .envrc ├── .github └── workflows │ └── build.yml ├── .gitignore ├── README.md ├── doc └── avr-instruction-set-manual.pdf ├── linker.ld ├── samples ├── hello-world.zig └── math.zig ├── shell.nix ├── src ├── lib │ ├── Cpu.zig │ ├── aviron.zig │ ├── decoder.zig │ └── io.zig ├── libtestsuite │ └── lib.zig ├── main.zig ├── shared │ └── isa.zig ├── testconfig.zig └── testrunner.zig ├── testsuite.avr-gcc ├── README.md └── instructions │ ├── mul.S │ ├── muls.S │ └── mulsu.S ├── testsuite ├── dummy.zig ├── instructions │ ├── add.S │ ├── cbi.S │ ├── in-stdio.S │ ├── mul.elf │ ├── mul.elf.json │ ├── muls.elf │ ├── muls.elf.json │ ├── mulsu.elf │ ├── mulsu.elf.json │ ├── out-exit-0.S │ ├── out-exit-42.S │ ├── out-stderr.S │ ├── out-stdout.S │ ├── sbi.S │ └── sub.S ├── lib │ └── write-chan.zig ├── regs.inc └── simulator │ ├── scratch-reg0.S │ ├── scratch-reg1.S │ ├── scratch-reg2.S │ ├── scratch-reg3.S │ ├── scratch-reg4.S │ ├── scratch-reg5.S │ ├── scratch-reg6.S │ ├── scratch-reg7.S │ ├── scratch-reg8.S │ ├── scratch-reg9.S │ ├── scratch-rega.S │ ├── scratch-regb.S │ ├── scratch-regc.S │ ├── scratch-regd.S │ ├── scratch-rege.S │ └── scratch-regf.S └── tools ├── generate-tables.zig ├── isa.txt └── no-avr-gcc.zig /.envrc: -------------------------------------------------------------------------------- 1 | use_nix 2 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | zig-out 2 | .zig-cache 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/README.md -------------------------------------------------------------------------------- /doc/avr-instruction-set-manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/doc/avr-instruction-set-manual.pdf -------------------------------------------------------------------------------- /linker.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/linker.ld -------------------------------------------------------------------------------- /samples/hello-world.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/samples/hello-world.zig -------------------------------------------------------------------------------- /samples/math.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/samples/math.zig -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/shell.nix -------------------------------------------------------------------------------- /src/lib/Cpu.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/lib/Cpu.zig -------------------------------------------------------------------------------- /src/lib/aviron.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/lib/aviron.zig -------------------------------------------------------------------------------- /src/lib/decoder.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/lib/decoder.zig -------------------------------------------------------------------------------- /src/lib/io.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/lib/io.zig -------------------------------------------------------------------------------- /src/libtestsuite/lib.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/libtestsuite/lib.zig -------------------------------------------------------------------------------- /src/main.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/main.zig -------------------------------------------------------------------------------- /src/shared/isa.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/shared/isa.zig -------------------------------------------------------------------------------- /src/testconfig.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/testconfig.zig -------------------------------------------------------------------------------- /src/testrunner.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/src/testrunner.zig -------------------------------------------------------------------------------- /testsuite.avr-gcc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite.avr-gcc/README.md -------------------------------------------------------------------------------- /testsuite.avr-gcc/instructions/mul.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite.avr-gcc/instructions/mul.S -------------------------------------------------------------------------------- /testsuite.avr-gcc/instructions/muls.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite.avr-gcc/instructions/muls.S -------------------------------------------------------------------------------- /testsuite.avr-gcc/instructions/mulsu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite.avr-gcc/instructions/mulsu.S -------------------------------------------------------------------------------- /testsuite/dummy.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/dummy.zig -------------------------------------------------------------------------------- /testsuite/instructions/add.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/add.S -------------------------------------------------------------------------------- /testsuite/instructions/cbi.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/cbi.S -------------------------------------------------------------------------------- /testsuite/instructions/in-stdio.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/in-stdio.S -------------------------------------------------------------------------------- /testsuite/instructions/mul.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/mul.elf -------------------------------------------------------------------------------- /testsuite/instructions/mul.elf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/mul.elf.json -------------------------------------------------------------------------------- /testsuite/instructions/muls.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/muls.elf -------------------------------------------------------------------------------- /testsuite/instructions/muls.elf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/muls.elf.json -------------------------------------------------------------------------------- /testsuite/instructions/mulsu.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/mulsu.elf -------------------------------------------------------------------------------- /testsuite/instructions/mulsu.elf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/mulsu.elf.json -------------------------------------------------------------------------------- /testsuite/instructions/out-exit-0.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/out-exit-0.S -------------------------------------------------------------------------------- /testsuite/instructions/out-exit-42.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/out-exit-42.S -------------------------------------------------------------------------------- /testsuite/instructions/out-stderr.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/out-stderr.S -------------------------------------------------------------------------------- /testsuite/instructions/out-stdout.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/out-stdout.S -------------------------------------------------------------------------------- /testsuite/instructions/sbi.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/sbi.S -------------------------------------------------------------------------------- /testsuite/instructions/sub.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/instructions/sub.S -------------------------------------------------------------------------------- /testsuite/lib/write-chan.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/lib/write-chan.zig -------------------------------------------------------------------------------- /testsuite/regs.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/regs.inc -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg0.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg0.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg1.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg1.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg2.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg2.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg3.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg3.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg4.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg4.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg5.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg5.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg6.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg6.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg7.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg7.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg8.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg8.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-reg9.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-reg9.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-rega.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-rega.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-regb.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-regb.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-regc.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-regc.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-regd.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-regd.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-rege.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-rege.S -------------------------------------------------------------------------------- /testsuite/simulator/scratch-regf.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/testsuite/simulator/scratch-regf.S -------------------------------------------------------------------------------- /tools/generate-tables.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/tools/generate-tables.zig -------------------------------------------------------------------------------- /tools/isa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/tools/isa.txt -------------------------------------------------------------------------------- /tools/no-avr-gcc.zig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZigEmbeddedGroup/aviron/HEAD/tools/no-avr-gcc.zig --------------------------------------------------------------------------------