Skip to content

Commit

Permalink
Update qemu commands
Browse files Browse the repository at this point in the history
  • Loading branch information
franeklubi committed May 7, 2020
1 parent d043a16 commit 5820a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ I recommend using an emulator, namely `qemu`.

* To use `qemu`, first download binary (a.bin) from the [releases section](https://github.com/franeklubi/dino/releases), then run this command:
```sh
$ qemu a.bin
$ qemu-system-x86_64 a.bin || qemu-system-i386 a.bin
```

* If you have `make`, `nasm` and `qemu` installed, you can just use this command:
Expand Down
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ main: dino.asm

run: dino.asm
make
qemu-system-x86_64 -drive file=a.bin,format=raw,index=0,media=disk
qemu-system-x86_64 -drive file=a.bin,format=raw,index=0,media=disk || \
qemu-system-i386 -drive file=a.bin,format=raw,index=0,media=disk
rm ./a.bin

count: dino.asm
Expand Down

0 comments on commit 5820a68

Please sign in to comment.