about summary refs log tree commit diff stats
path: root/translate_subx_baremetal_emulated
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_emulated
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_emulated')
-rwxr-xr-xtranslate_subx_baremetal_emulated2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_subx_baremetal_emulated b/translate_subx_baremetal_emulated
index f73f09a5..0e65799a 100755
--- a/translate_subx_baremetal_emulated
+++ b/translate_subx_baremetal_emulated
@@ -33,7 +33,7 @@ dd if=/dev/zero of=disk.img count=20160  # 512-byte sectors, so 10MB
 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
42' href='#n42'>42 43 44 45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154