Commit graph

61 commits

Author SHA1 Message Date
f8c5d2766c Fix formatting errors
Decimal numbers now look nicer, and --no-sparse works properly again.
2019-11-19 17:14:00 +00:00
a7ef16bc4e Do more state formatting
Registers can now be displayed above the memory content.
2019-11-19 16:50:37 +00:00
ee7639c1c7 Fix formatting of numbers into blocks 2019-11-19 16:03:56 +00:00
75e102ed7d Improve command-line option parsing 2019-11-19 11:45:24 +00:00
0d18329354 Add help for formatting options 2019-11-19 10:59:30 +00:00
8bfce48a7f Format mima state
Also, use the new formatter in mima-run (and while we're at it, clean up flag
file loading and prepare for symbol file loading).
2019-11-19 10:24:53 +00:00
45ec7d1708 Rename AllFlags to RawFlags
I just like this new name better
2019-11-19 10:24:23 +00:00
4707e929ef Switch to Mima.Format formatting 2019-11-19 08:02:58 +00:00
81fee29490 Extract some label-related stuff 2019-11-19 07:59:49 +00:00
23bd495521 Format more numbers 2019-11-18 14:08:46 +00:00
75304e8027 Format symbol file 2019-11-18 09:59:48 +00:00
5a486b59c2 Fix flag file parsing 2019-11-18 09:33:10 +00:00
5b172ad57f Format flag file 2019-11-18 09:22:35 +00:00
f3c7cdf8b3 Reorganize things in preparation for formatting 2019-11-18 09:22:21 +00:00
bc2594bf69 Load .mima-symbol file 2019-11-15 21:30:05 +00:00
d6db284c22 Improve address range parsing error messages 2019-11-15 19:10:07 +00:00
9adcc80373 Prepare for weeding 2019-11-14 23:47:06 +00:00
c91d3f23e9 Rename Mima.Parser to Mima.Parse 2019-11-14 23:46:48 +00:00
f75c3368bb Improve error message on MiMa abort 2019-11-13 15:22:49 +00:00
02e23e7d4a Automatically discover .mima-flags files 2019-11-13 15:22:35 +00:00
b554d80aa9 Introduce Run monad
A monad for nice, pure exceptions. I want to avoid working with IO
exceptions as much as possible.
2019-11-13 09:28:53 +00:00
1b8680004e Create utility function for loading and parsing files 2019-11-13 07:58:41 +00:00
f1d097094d Parse .mima-flag files 2019-11-13 07:53:10 +00:00
c887e57dbd Rename wonkily-named function 2019-11-12 21:23:23 +00:00
9caa8298fc Add support for flags in execution 2019-11-12 12:17:26 +00:00
957f65c380 Implement new specification 2019-11-10 18:17:21 +00:00
143a3e9a45 Parse comments at beginning of file correctly 2019-11-10 14:34:29 +00:00
5e9c50d618 Allow digits in label names
Also, only allow a-zA-Z as the first character of label names.
2019-11-10 14:32:55 +00:00
cd5ff1e105 Fix parsing of LDVR/STVR 2019-11-10 11:33:29 +00:00
fde6fc29ec Fix parser not allowing comments in some places 2019-11-10 11:21:35 +00:00
bd8bd20224 Parse register contents at beginning of file 2019-11-10 10:28:04 +00:00
dc990a2e7a Parse instructions with labels 2019-11-09 23:41:39 +00:00
21e72420dd Add more conversions 2019-11-09 23:37:22 +00:00
803c826395 Parse instructions with labels 2019-11-09 19:24:50 +00:00
4f5817c032 Fix topBit always returning False 2019-11-08 18:46:07 +00:00
112a49a7b7 Use OddWords library 2019-11-08 18:33:08 +00:00
63350d5dd9 Load and save specification file format 2019-11-07 22:18:32 +00:00
f3a3432c9c Clean up string formatting 2019-11-07 20:23:19 +00:00
af70c1a02c Print memory dump again 2019-11-07 16:46:21 +00:00
ef06f7b309 Reimplement all opcodes 2019-11-07 13:37:26 +00:00
dd7c9d44a6 Add all opcodes to the instruction representation 2019-11-07 10:49:51 +00:00
75b06c3a9f Rename opcode-related things 2019-11-07 10:45:17 +00:00
2d76ff4f93 Rename "short" to "small" and "long" to "large" 2019-11-07 10:21:30 +00:00
3eb9430208 Change low-level data types
This commit reorganizes and restructures the low level data types,
like the MimaWord, in preparation for implementing the new MiMa
specification.
2019-11-07 09:48:29 +00:00
0c780cfece Swap STIV and LDIV
Now the opcodes match the ones at
https://github.com/mkiesinger/mimaFPGA#op-codes
2019-11-06 20:56:08 +00:00
d9d8f4e0b9 Fix memory dump legend 2019-11-06 20:20:30 +00:00
a3f2c05875 Use strict maps where possible 2019-11-06 19:51:20 +00:00
f07b825313 Improve memory dump output 2019-11-06 18:24:33 +00:00
1c895add5a Run MiMa for a specified amount of steps
Also, print IP and Acc at the time of the dump
2019-11-06 17:37:17 +00:00
082a205a7e Implement most of mima-run CLI 2019-11-06 17:20:28 +00:00