about summary refs log tree commit diff stats
path: root/translate_subx_baremetal
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-22 23:29:04 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-22 23:29:04 -0800
commit0f73127ef1eba0a8ea814c26115523da3590ffe2 (patch)
treef2480aea129e680e5fc995e730e2083074c44b32 /translate_subx_baremetal
parenta451b2e14f06c19eaf98f32dcc2b45e2940a570b (diff)
downloadmu-0f73127ef1eba0a8ea814c26115523da3590ffe2.tar.gz
7547 - baremetal: rpn calculator
Still in progress. Known bugs:
* Cursor management is broken. Every line currently seems to leave
  behind a shadow cursor.
* No shift-key support yet, which means no addition or multiplication.
  (This app doesn't have division yet.)
Diffstat (limited to 'translate_subx_baremetal')
-rwxr-xr-xtranslate_subx_baremetal2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_subx_baremetal b/translate_subx_baremetal
index adfa4aa0..d337ffe2 100755
--- a/translate_subx_baremetal
+++ b/translate_subx_baremetal
@@ -39,7 +39,7 @@ apps/hex < baremetal/boot.hex  > boot.bin
 cat boot.bin a.bin > disk.bin
 dd if=disk.bin of=disk.img conv=notrunc
 
-if [ `stat --printf="%s" disk.bin` -ge 32256 ]  # 63 sectors * 512 bytes per sector
+if [ `stat --printf="%s" disk.bin` -ge 65536 ]  # 128 sectors * 512 bytes per sector (keep this sync'd with boot.hex)
 then
   echo "disk.bin won't all be loaded on boot"
   exit 1