{"id":19723972,"url":"https://github.com/vs4vijay/vizix","last_synced_at":"2025-04-29T22:31:09.745Z","repository":{"id":37033514,"uuid":"249473501","full_name":"vs4vijay/vizix","owner":"vs4vijay","description":" An operating system for fun and learning.","archived":false,"fork":false,"pushed_at":"2025-01-08T16:49:27.000Z","size":3,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T20:02:53.382Z","etag":null,"topics":["assembly","bare-metal","clang","esp32","gcc","kernel","linux","linux-kernel","nasm","operating-system","os","qemu","raspberry-pi","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vs4vijay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-23T15:45:19.000Z","updated_at":"2025-02-12T13:52:05.000Z","dependencies_parsed_at":"2023-12-18T22:40:28.827Z","dependency_job_id":"ddc74700-4a35-48b5-80cc-1e8dd9a691cc","html_url":"https://github.com/vs4vijay/vizix","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":0.07547169811320753,"last_synced_commit":"cea96a3642a6804b7af030f13be74d3dfff3ad1b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fvizix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fvizix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fvizix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fvizix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vs4vijay","download_url":"https://codeload.github.com/vs4vijay/vizix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251593000,"owners_count":21614454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","bare-metal","clang","esp32","gcc","kernel","linux","linux-kernel","nasm","operating-system","os","qemu","raspberry-pi","rust"],"created_at":"2024-11-11T23:24:06.362Z","updated_at":"2025-04-29T22:31:09.733Z","avatar_url":"https://github.com/vs4vijay.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VIZIX\n\nAn operating system for fun and learning\n\n## Development Flow (Write an OS)\n- Create Boot Sector\n- \n\n## Development Tools Required\n- qemu\n- nasm\n- gcc \n\nPS: On Mac, Using homebrew: `brew install qemu nasm`\n\n## Running\n- `nasm -f bin Vizix.asm -o Vizix.bin`\n- `qemu Vizix.bin`\n\n## Bootsector Example:\n```\n; Infinite loop\nloop:\n    jmp loop \n\n; Fill with 510 zeros minus the size of the previous code\ntimes 510-($-$$) db 0\n\n; Magic number\ndw 0xaa55\n```\n\n## Registers:\n- General Purpose Registers:\n  - `ax`; Accumulator (EAX)\n  - `bx`; Base (EBX)\n  - `cx`; Counter (ECX)\n  - `dx`; Data (EDX)\n- Stack Registers:\n  - `bp`; Base Pointer, Stores the base address of stack (EBP)\n  - `sp`; Stack Pointer, Stores the top address of stack, sp gets decremented (ESP)\n- Pointer Registers:\n  - `si`; Source Index, (ESI)\n  - `di`; Destination Index, (EDI)\n  - `ip`; Instruction Pointer\n- Segmentation: Obsolete memory protection technique\n  - Segment Register: Can be altered using registers\n    - `cs`; Code Segment; Can not be altered\n    - `ds`; Data Segment\n    - `ss`; Stack Segment\n    - `es`; Extra Segment\n    - `fs`, `gs`; General Purpose Segment\n- Special Registers:\n  - `CR0,2,3`\n  - `DR0,1,2,3,6,7`\n  - `TR4,5,6,7`\n\n\n## Bootloaders:\n- Geek Loading: Everything in Boot Record\n- One-stage Loading\n- Two-stage Loading: `GRUB` (GRand Unified Bootloader)\n\n\n\n### References:\n- Little OS Book - https://littleosbook.github.io/\n- https://wiki.osdev.org/Bare_Bones\n- https://github.com/cfenollosa/os-tutorial\n- https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf\n- https://www.cs.cmu.edu/~410/\n- https://wiki.osdev.org/Main_Page\n- http://stanislavs.org/helppc/idx_interrupt.html\n- https://legacy.gitbook.com/book/samypesse/how-to-create-an-operating-system/details\n- https://samypesse.gitbook.io/how-to-create-an-operating-system/\n- https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System\n- https://github.com/arjun024/mkernel\n- http://3zanders.co.uk/2017/10/13/writing-a-bootloader/\n- http://mikeos.sourceforge.net/write-your-own-os.html\n- http://osblog.stephenmarz.com/index.html\n- https://os.phil-opp.com/\n- https://www.rpi4os.com/\n- https://s-matyukevich.github.io/raspberry-pi-os/\n- https://www.fysnet.net/osdesign_book_series.htm\n- https://pages.cs.wisc.edu/~remzi/OSTEP/\n- https://operating-system-in-1000-lines.vercel.app/en\n\n\n### Hardware\n- https://eater.net/8bit/\n- https://nand.arhan.sh/\n- https://www.nand2tetris.org/\n- https://nandgame.com/\n- https://www.megaprocessor.com/\n- https://gitlab.com/x653/nand2tetris-fpga/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvs4vijay%2Fvizix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvs4vijay%2Fvizix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvs4vijay%2Fvizix/lists"}