https://github.com/atirut-w/oceanbios
Custom OCMOS BIOS
https://github.com/atirut-w/oceanbios
6502 bios ocmos opencomputers
Last synced: about 1 year ago
JSON representation
Custom OCMOS BIOS
- Host: GitHub
- URL: https://github.com/atirut-w/oceanbios
- Owner: atirut-w
- Created: 2022-05-31T12:39:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T17:42:44.000Z (over 3 years ago)
- Last Synced: 2025-02-07T13:49:23.022Z (over 1 year ago)
- Topics: 6502, bios, ocmos, opencomputers
- Language: C++
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OceanBIOS
Custom BIOS for the OCMOS addon for OpenComputers.
**WARNING**: This project is in very early stage. Reserved memory areas may change, etc etc. Don't expect a very stable experience using this.
## Boot sequence
- For each unmanaged drives
- Load the first 512 bytes
- Check for boot signature(0xAA55 LE)
- If signature is valid, reset stack pointer and jump to the boot sector
- Display error message and halt
## Disk images
Disk image created by some utilities, such as `mkfs.fat`, always have a boot sector signature. If you don't want the BIOS to boot a disk image, you can simply remove the said signature before compressing them for OpenComputers.
## Building
---
Before building this project, make sure you have the [LLVM-MOS SDK](https://github.com/llvm-mos/llvm-mos-sdk/releases) installed for compiling 6502 binaries.
---
Run the following commands from the cloned repository:
```bash
mkdir build && cd build
cmake ..
make
```
You should now have two built files, `bios.bin` and `bios.bin.elf`. The former is a raw binary file for flashing onto an EEPROM, and the latter contains the BIOS in ELF format.