From 5820a68446d3a302006d967cea822d6cba7c2db2 Mon Sep 17 00:00:00 2001 From: franek Date: Thu, 7 May 2020 12:47:17 +0200 Subject: [PATCH] Update qemu commands --- README.md | 2 +- makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5f3b9d..fdbaa2b 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/makefile b/makefile index c3db758..6259572 100644 --- a/makefile +++ b/makefile @@ -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