From 22a95bd813c284af582cac59a6ee490e2a0d4665 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 25 Apr 2021 15:56:34 -0700 Subject: expand memory to 2GB It requires more than 1GB to fill the screen with a chessboard pattern using the definition in shell/iterative-definitions.limg. I also speed up the chessboard program by clearing the screen up front and then only rendering the white pixels. --- shell/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shell/README.md') diff --git a/shell/README.md b/shell/README.md index 20dc3615..2f6d6bd0 100644 --- a/shell/README.md +++ b/shell/README.md @@ -9,11 +9,11 @@ $ ./translate shell/*.mu # generates code.img 2. Run it: ```sh -$ qemu-system-i386 code.img +$ qemu-system-i386 -m 2G code.img ``` or: ``` -$ bochs -f bochsrc +$ bochs -f bochsrc # _much_ slower ``` To save typing in a large s-expression, create a secondary disk for data: @@ -34,7 +34,7 @@ $ cat iterative-definitions.limg |dd of=data.img conv=notrunc Now run with both code and data disks: ```sh -$ qemu-system-i386 -hda code.img -hdb data.img +$ qemu-system-i386 -m 2G -hda code.img -hdb data.img ``` or: ``` @@ -58,7 +58,7 @@ may speed up emulation: As a complete example, here's the command I typically use on Linux: ``` -$ qemu-system-i386 -enable-kvm -hda code.img -hdb data.img +$ qemu-system-i386 -m 2G -enable-kvm -hda code.img -hdb data.img ``` *Known issues* -- cgit 1.4.1-2-gfad0