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:
```sh
sh build.sh make
sh build.sh make
```
If you want to write it to a usb device
```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 printCRLF
xor ax, ax
xor bx, bx
xor cx, cx
xor dx, dx
mov ah, 0x0F
int 10
call dumpax
mov ah, 08h
mov dl, [global_disk_identifier]
mov bx, 0x0
mov es, bx
mov di, 0x0
int 13h
call dump_general_registers
call printCRLF
call printCRLF
call printCRLF
jmp sing_ready

Loading…
Cancel
Save