Haribote OS
32 bit Operating System based on the book "30 日でできる! OS 自作入門"
Development Environment
- OS
- Mac OS X 10.15.7 19H2
- Homebrew 2.7.1
- Editor
- Visual Studio Code 1.52.1
- Binary Editor
- Visual Studio Code with its extension "Hex Editor" v1.3.0
Requirements
Requirements to develop Haribote OS on Mac OS X
- Assembler
- NASM version 2.15.05 compiled on Aug 29 2020
- Emulator
- QEMU emulator version 5.1.0
- Utilities
- Mtools (GNU mtools) 4.0.26
- Use
mformat
,mcopy
in Mtools to create the disk image
- Use
- Mtools (GNU mtools) 4.0.26
- Compiler
- Linker Script
- Use the linker script as
hrb.ld
from section "linker script for OS"("OS 用リンカスクリプト") in this website.
- Use the linker script as
- C Program for converting
hankaku.txt
- TODO from 『30 日でできる!OS 自作入門』を macOS Catalina で実行する
- chapter 5-5
- Function
sprintf
- TODO from 『30 日でできる!OS 自作入門』を macOS Catalina で実行する
- chapter 5-7
Setup
Installation of Requirements
- Install Assembler
brew install nasm
nasm --version
# NASM version 2.15.05 compiled on Aug 29 2020
- Install Emulator
brew install qemu
qemu-system-i386 --version
# QEMU emulator version 5.1.0
# Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
- Install Mtools
brew install mtools
mtools --version
# mtools (GNU mtools) 4.0.26
# configured with the following options: disable-xdf disable-vold disable-new-vold disable-debug enable-raw-term
- Install Compiler
brew tap nativeos/i386-elf-toolchain
brew install i386-elf-binutils i386-elf-gcc
i386-elf-gcc --version
# i386-elf-gcc (GCC) 9.2.0
# Copyright (C) 2019 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Test
TODO