├── .github └── workflows │ ├── ci.yml │ ├── python-publish.yml │ └── sphinx.yml ├── .gitignore ├── .python-version ├── .vscode └── settings.json ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── docs ├── .nojekyll ├── Makefile ├── architecture.rst ├── assembly_language.rst ├── conf.py ├── examples │ ├── array_sum.rst │ ├── bubblesort.rst │ ├── count_bits.rst │ ├── factorial.rst │ ├── fibonacci.rst │ ├── find_max.rst │ ├── gcd.rst │ ├── hello_world.rst │ ├── index.rst │ ├── is_prime.rst │ ├── linear_search.rst │ ├── memory_copy.rst │ ├── multiply_by_shift.rst │ ├── power.rst │ ├── reverse.rst │ └── sum_1_to_n.rst ├── getting_started.rst ├── index.rst ├── make.bat └── visualization.rst ├── examples ├── array_sum.asm ├── bubblesort.asm ├── count_bits.asm ├── factorial.asm ├── fibonacci.asm ├── find_max.asm ├── gcd.asm ├── hello_world.asm ├── is_prime.asm ├── linear_search.asm ├── memory_copy.asm ├── multiply_by_shift.asm ├── power.asm ├── reverse.asm └── sum_1_to_n.asm ├── pyproject.toml ├── pytest.ini ├── src └── tiny8 │ ├── __init__.py │ ├── assembler.py │ ├── cli.py │ ├── cpu.py │ ├── memory.py │ ├── py.typed │ ├── utils.py │ └── visualizer.py ├── tests ├── conftest.py ├── test_arithmetic.py ├── test_assembler.py ├── test_cli.py ├── test_control_flow.py ├── test_cpu_branches.py ├── test_cpu_core.py ├── test_cpu_edge_cases.py ├── test_data_transfer.py ├── test_memory.py ├── test_ui_components.py └── test_utils.py └── uv.lock /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.github/workflows/sphinx.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/.github/workflows/sphinx.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.13 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/architecture.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/architecture.rst -------------------------------------------------------------------------------- /docs/assembly_language.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/assembly_language.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/examples/array_sum.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/array_sum.rst -------------------------------------------------------------------------------- /docs/examples/bubblesort.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/bubblesort.rst -------------------------------------------------------------------------------- /docs/examples/count_bits.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/count_bits.rst -------------------------------------------------------------------------------- /docs/examples/factorial.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/factorial.rst -------------------------------------------------------------------------------- /docs/examples/fibonacci.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/fibonacci.rst -------------------------------------------------------------------------------- /docs/examples/find_max.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/find_max.rst -------------------------------------------------------------------------------- /docs/examples/gcd.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/gcd.rst -------------------------------------------------------------------------------- /docs/examples/hello_world.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/hello_world.rst -------------------------------------------------------------------------------- /docs/examples/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/index.rst -------------------------------------------------------------------------------- /docs/examples/is_prime.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/is_prime.rst -------------------------------------------------------------------------------- /docs/examples/linear_search.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/linear_search.rst -------------------------------------------------------------------------------- /docs/examples/memory_copy.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/memory_copy.rst -------------------------------------------------------------------------------- /docs/examples/multiply_by_shift.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/multiply_by_shift.rst -------------------------------------------------------------------------------- /docs/examples/power.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/power.rst -------------------------------------------------------------------------------- /docs/examples/reverse.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/reverse.rst -------------------------------------------------------------------------------- /docs/examples/sum_1_to_n.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/examples/sum_1_to_n.rst -------------------------------------------------------------------------------- /docs/getting_started.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/getting_started.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/visualization.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/docs/visualization.rst -------------------------------------------------------------------------------- /examples/array_sum.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/array_sum.asm -------------------------------------------------------------------------------- /examples/bubblesort.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/bubblesort.asm -------------------------------------------------------------------------------- /examples/count_bits.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/count_bits.asm -------------------------------------------------------------------------------- /examples/factorial.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/factorial.asm -------------------------------------------------------------------------------- /examples/fibonacci.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/fibonacci.asm -------------------------------------------------------------------------------- /examples/find_max.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/find_max.asm -------------------------------------------------------------------------------- /examples/gcd.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/gcd.asm -------------------------------------------------------------------------------- /examples/hello_world.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/hello_world.asm -------------------------------------------------------------------------------- /examples/is_prime.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/is_prime.asm -------------------------------------------------------------------------------- /examples/linear_search.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/linear_search.asm -------------------------------------------------------------------------------- /examples/memory_copy.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/memory_copy.asm -------------------------------------------------------------------------------- /examples/multiply_by_shift.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/multiply_by_shift.asm -------------------------------------------------------------------------------- /examples/power.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/power.asm -------------------------------------------------------------------------------- /examples/reverse.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/reverse.asm -------------------------------------------------------------------------------- /examples/sum_1_to_n.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/examples/sum_1_to_n.asm -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/pytest.ini -------------------------------------------------------------------------------- /src/tiny8/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/__init__.py -------------------------------------------------------------------------------- /src/tiny8/assembler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/assembler.py -------------------------------------------------------------------------------- /src/tiny8/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/cli.py -------------------------------------------------------------------------------- /src/tiny8/cpu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/cpu.py -------------------------------------------------------------------------------- /src/tiny8/memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/memory.py -------------------------------------------------------------------------------- /src/tiny8/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tiny8/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/utils.py -------------------------------------------------------------------------------- /src/tiny8/visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/src/tiny8/visualizer.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_arithmetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_arithmetic.py -------------------------------------------------------------------------------- /tests/test_assembler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_assembler.py -------------------------------------------------------------------------------- /tests/test_cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_cli.py -------------------------------------------------------------------------------- /tests/test_control_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_control_flow.py -------------------------------------------------------------------------------- /tests/test_cpu_branches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_cpu_branches.py -------------------------------------------------------------------------------- /tests/test_cpu_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_cpu_core.py -------------------------------------------------------------------------------- /tests/test_cpu_edge_cases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_cpu_edge_cases.py -------------------------------------------------------------------------------- /tests/test_data_transfer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_data_transfer.py -------------------------------------------------------------------------------- /tests/test_memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_memory.py -------------------------------------------------------------------------------- /tests/test_ui_components.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_ui_components.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/tests/test_utils.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sql-hkr/tiny8/HEAD/uv.lock --------------------------------------------------------------------------------