Commit Graph

7290 Commits

Author SHA1 Message Date
Kartik Agaram 6f65b65f7d 7290
I've wrestled for a long time with how to support integer division with
its hard-coded registers. The answer's always been staring me in the face:
just turn it into a function! We already expect function outputs to go
to hard-coded registers.
2020-11-27 21:37:20 -08:00
Kartik Agaram 704265bd3c 7289 2020-11-27 12:39:18 -08:00
Kartik Agaram 3341af3d92 7288 2020-11-27 00:26:27 -08:00
Kartik Agaram 530af63477 7287
Regression: I'd broken compare on bytes. Apparently I took away support
for bytes from numberlike-output even though I didn't need to by the end.
2020-11-27 00:17:51 -08:00
Kartik Agaram 125bfde435 7286 - mu.subx: isolate bytes from previous values 2020-11-27 00:04:54 -08:00
Kartik Agaram c165b0be5a 7285 2020-11-26 23:20:15 -08:00
Kartik Agaram 736bfe9547 7284 2020-11-26 22:34:32 -08:00
Kartik Agaram b0dfe182ff 7283 2020-11-26 21:59:28 -08:00
Kartik Agaram 7f40e8a3f6 7282 2020-11-26 21:46:46 -08:00
Kartik Agaram 896a353a7d 7281 2020-11-26 21:37:09 -08:00
Kartik Agaram 066014d4b4 7280 2020-11-26 21:23:15 -08:00
Kartik Agaram 5ce7c8dcff 7279 2020-11-26 20:10:46 -08:00
Kartik Agaram e9f411d5c5 7278 - typo in mu.subx 2020-11-26 12:58:02 -08:00
Kartik Agaram 7cfd2b36a1 7277 2020-11-26 12:01:25 -08:00
Kartik Agaram fac93a64bd 7276 2020-11-26 11:36:29 -08:00
Kartik Agaram d041165d0f 7275 2020-11-26 11:18:24 -08:00
Kartik Agaram 6173a84f35 7274
Fix a bug in whole integer support. And we'll forget about compressing
large integers into scientific notation for now.
2020-11-25 23:35:51 -08:00
Kartik Agaram c6446c1f3d 7273
A wishlist of passing tests.

Let's see how the naive algorithm at http://www.ryanjuckett.com/programming/printing-floating-point-numbers
does.
2020-11-25 23:08:15 -08:00
Kartik Agaram 3ff2e99c0b 7272 - snapshot: printing floats in decimal
I've made some progress to where I can print whole integers right. But
this whole approach of mixing decimals with binary exponents is going to
be super confusing. I need to bite the bullet and just use decimal exponents.
2020-11-25 23:01:17 -08:00
Kartik Agaram b4932228ca 7271 2020-11-25 21:03:52 -08:00
Kartik Agaram dbb5df2790 7270 2020-11-21 22:04:15 -08:00
Kartik Agaram 32505d159e 7269 2020-11-21 21:40:23 -08:00
Kartik Agaram e786968a9c 7268 2020-11-20 17:08:01 -08:00
Kartik Agaram fd4d7b38da 7267 - mu.subx: type-check 'convert' statements 2020-11-20 00:20:58 -08:00
Kartik Agaram 729800593a 7266 2020-11-17 22:05:45 -08:00
Kartik Agaram 396a7ef691 7265 2020-11-17 19:06:19 -08:00
Kartik Agaram fc83d26766 7264 2020-11-17 19:03:55 -08:00
Kartik Agaram 10bf5a0986 7263 2020-11-17 18:47:38 -08:00
Kartik Agaram de8a15e9f0 7262 2020-11-17 18:24:38 -08:00
Kartik Agaram 1696ed831a 7261 - mu.subx: array bounds-checking done 2020-11-17 18:16:26 -08:00
Kartik Agaram 83221b4e21 7260
This seems to preserve the intent of commit 6555.
2020-11-17 16:32:38 -08:00
Kartik Agaram 1eb1cade71 7259 2020-11-17 13:12:36 -08:00
Kartik Agaram 98399a621f 7258 2020-11-17 10:04:53 -08:00
Kartik Agaram 18944f44e6 7257 - partially undo commit 7253
I don't need to pass the function pointer quite so low. I think..
2020-11-17 10:04:49 -08:00
Kartik Agaram 789c0ac05a 7256 2020-11-17 09:25:17 -08:00
Kartik Agaram e3349a169c 7255 2020-11-17 08:20:27 -08:00
Kartik Agaram 78d2754276 7254 2020-11-17 01:06:43 -08:00
Kartik Agaram 18579f77c6 7253 - mu.subx: starting to bounds-check 'index'
First step: start passing the function name into code-generation functions.
We're going to need it for the error message.
2020-11-16 22:32:25 -08:00
Kartik Agaram dd60a1d73c 7252 2020-11-16 20:44:02 -08:00
Kartik Agaram 3d31467c0d 7251 2020-11-16 00:37:37 -08:00
Kartik Agaram 8d2dece291 7250 2020-11-16 00:00:32 -08:00
Kartik Agaram 264aba4d92 7249 2020-11-15 23:23:05 -08:00
Kartik Agaram 002f2609e9 7248 - mu.subx: new primitive 'clear-object' 2020-11-15 23:13:23 -08:00
Kartik Agaram 2715d377b6 7247 2020-11-15 22:54:56 -08:00
Kartik Agaram b6b94712a1 7246 - tile: segment each function's area 2020-11-15 22:05:33 -08:00
Kartik Agaram bdbf2093ea 7245 - tile: right-align functions 2020-11-15 21:45:20 -08:00
Kartik Agaram 7ca4b6a2f7 7244 - tile: new layout for primitives 2020-11-15 21:01:17 -08:00
Kartik Agaram 56ed1a1073 7243 - tile: starting to make functions editable 2020-11-15 20:30:01 -08:00
Kartik Agaram a8dfb603fd 7242 2020-11-15 20:24:41 -08:00
Kartik Agaram 0879555213 7241 - mu.subx: check float registers 2020-11-15 17:24:38 -08:00