Commit Graph

23 Commits

Author SHA1 Message Date
Kartik Agaram 665a4d7040 4327
Encapsulate RAM management.
2018-07-08 22:33:15 -07:00
Kartik K. Agaram bc9f26de67 4196 2018-01-24 23:02:09 -08:00
Kartik K. Agaram 0c6c7ff714 4195 2018-01-24 22:43:05 -08:00
Kartik K. Agaram 9c1d07baec 4194 2018-01-24 22:07:06 -08:00
Kartik K. Agaram 3639efce20 4193 2018-01-24 21:38:08 -08:00
Kartik K. Agaram 871ea368d1 4189 2018-01-24 21:14:31 -08:00
Kartik K. Agaram 0cb988d0ae 4185 2018-01-24 12:59:14 -08:00
Kartik K. Agaram 3ecd66fb7c 4183 2018-01-24 02:47:49 -08:00
Kartik K. Agaram 292ccba1bb 4085 - done with first cut of the SubX VM
subx: 'call' and 'return' instructions
2017-10-18 03:11:56 -07:00
Kartik K. Agaram 8a0268317f 4084
subx: extract helpers for 'push' and 'pop'. We will be using them in
'call' and 'ret' as well.
2017-10-18 02:27:56 -07:00
Kartik K. Agaram 099ed980c4 4083
subx: 'pop'
2017-10-18 02:13:34 -07:00
Kartik K. Agaram 9e45873ff4 4079
subx: 'pop'
2017-10-18 00:57:46 -07:00
Kartik K. Agaram 95e5511ab8 4069
subx: unconditional 'jump'
2017-10-15 01:59:11 -07:00
Kartik K. Agaram 125bea475f 4067
subx: 'mov'
2017-10-15 00:06:37 -07:00
Kartik K. Agaram 311297cb00 4066
I spent a while spelunking into the code generated by C compilers before
realizing that ignoring the order of arguments for 'cmp' instructions
clarifies everything.
2017-10-14 23:35:00 -07:00
Kartik K. Agaram c67ca4b926 4065
subx: 'compare'

Hopefully I've implemented the 'sense' of comparisons right..
2017-10-14 23:00:05 -07:00
Kartik K. Agaram 0cb3c774b2 4064 2017-10-14 19:18:51 -07:00
Kartik K. Agaram 5a25c6e66f 4058 2017-10-13 01:24:13 -07:00
Kartik K. Agaram 8745e7456a 4057 2017-10-13 01:13:33 -07:00
Kartik K. Agaram ce31518788 4056
subx: 'or'
2017-10-13 01:05:53 -07:00
Kartik K. Agaram 280f511546 4055
subx: Implement 'and' for the addressing modes we've built so far.
2017-10-13 00:54:59 -07:00
Kartik K. Agaram f829120a62 4053 2017-10-12 23:50:00 -07:00
Kartik K. Agaram 9e0ec84fb8 4051
subx: Move register direct mode before indirect in the exposition.
2017-10-12 23:38:02 -07:00