Browse Source

Merge pull request #23 from Rhodez-x/imada

Imada
go32
Jørn Guldberg 7 years ago committed by GitHub
parent
commit
c617a19427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      README.md
  2. 17
      kernel.nasm

14
README.md

@ -17,15 +17,23 @@ You can build and run the OS with following command
``` ```
If you only want to run SingOS:
```sh
sh build.sh run
```
If you only want to compile the binary: If you only want to compile the binary:
```sh ```sh
sh build.sh make sh build.sh make
``` ```
If you want to write it to a usb device If you want to write it to a usb device
```sh ```sh
sudo dd if=/some_dir/bootloader.bin of=/dev/name_device status=progress oflag=sync sudo dd if=/some_dir/SingOS.img of=/dev/name_device status=progress oflag=sync
``` ```

17
kernel.nasm

@ -12,13 +12,16 @@ start_sing:
call dumpax call dumpax
call printCRLF call printCRLF
xor ax, ax mov ah, 08h
xor bx, bx mov dl, [global_disk_identifier]
xor cx, cx mov bx, 0x0
xor dx, dx mov es, bx
mov ah, 0x0F mov di, 0x0
int 10 int 13h
call dumpax
call dump_general_registers
call printCRLF
call printCRLF
call printCRLF call printCRLF
jmp sing_ready jmp sing_ready

Loading…
Cancel
Save