Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 5140 - fix an out-of-bounds bug | Kartik Agaram | 2019-05-04 | 1 | -2/+2 |
| | | | | | | | | | | | We were writing 32-bit words when we meant to write 8-bit bytes. Most of the time this doesn't matter because: * x86 is little endian, * a write to (x, x+1, x+2, x+3) is over-written by the next to (x+1, x+2, x+3, x+4), and * the 3 higher/later bytes are always 0 so no information is lost The only place this matters is if we're close to the end of the stream. | ||||
* | 5139 | Kartik Agaram | 2019-05-04 | 1 | -10/+6 |
| | | | | | | | Replace the 'negative?' variable with a second read from the stack. It's not clear if this is more or less efficient (https://github.com/akkartik/mu/pull/20#issuecomment-489285130) but taking out the local variable does seem easier to read. | ||||
* | 5138 | Kartik Agaram | 2019-05-04 | 1 | -11/+4 |
| | | | | | | Drop some redundant transfers between registers. The x86 instruction set can perform most operations on all available registers, and things are more comprehensible if each conceptual variable has a single location. | ||||
* | 5137 | Kartik Agaram | 2019-05-04 | 1 | -77/+52 |
| | | | | | | | | | | A few minor stylistic things that may ease reading, but not significantly enough that I care to force others to follow them: * no end-of-line comments for instructions without /rm32 * arguments either at tab stops or after 2 spaces * compare 'with' when using in asymmetric tests (greater/lesser), compare 'and' for symmetric equality checking * prefix internal labels with function name | ||||
* | 5136 - test for a previous bug | Kartik Agaram | 2019-05-04 | 1 | -0/+30 |
| | | | | Thanks Charles Saternos for the bugfix in 4a0b4344a3! | ||||
* | 5135 | Kartik Agaram | 2019-05-04 | 7 | -0/+0 |
| | |||||
* | Merge pull request #20 from akkartik/charles-l-print-int-decimal | Kartik Agaram | 2019-05-04 | 1 | -85/+97 |
|\ | | | | | exercise: reimplement print-int-decimal | ||||
| * | implemented solution | nc | 2019-05-03 | 1 | -1/+109 |
| | | |||||
| * | Merge branch 'master' into charles-l-print-int-decimal | nc | 2019-05-01 | 11 | -59/+181 |
| |\ | |/ |/| | |||||
* | | 5133 - show instruction source in trace | Kartik Agaram | 2019-04-28 | 7 | -14/+104 |
| | | | | | | | | | | | | | | | | | | | | It's a little hacky in some corner cases. In particular, if debug information isn't available the trace will contain duplicated lines. This is because I don't want the core trace lines all my tests rely on (introduced in the 'vm' layer) to have to know about debug info (introduced in the 'labels' and 'debug' layers). Thanks Charles Saternos for the feedback and suggestion! | ||||
* | | 5132 | Kartik Agaram | 2019-04-28 | 2 | -16/+1 |
| | | | | | | | | Stop hackily tracing function being called. Trying something better. | ||||
* | | 5131 | Kartik Agaram | 2019-04-27 | 7 | -32/+37 |
| | | | | | | | | Rename '--map' to '--debug'. | ||||
* | | 5130 - only show build status of 'master' branch | Kartik Agaram | 2019-04-27 | 1 | -1/+1 |
| | | |||||
* | | 5129 | Kartik Agaram | 2019-04-27 | 1 | -29/+32 |
| | | |||||
* | | 5128 | Kartik Agaram | 2019-04-26 | 1 | -9/+48 |
| | | |||||
* | | 5127 | Kartik Agaram | 2019-04-26 | 1 | -1/+1 |
| | | |||||
| * | exercise: reimplement print-int-decimal | Kartik Agaram | 2019-04-26 | 1 | -97/+1 |
|/ | |||||
* | 5126 - add a message to a silent CI failure mode | Kartik Agaram | 2019-04-26 | 1 | -19/+19 |
| | |||||
* | 5125 | Kartik Agaram | 2019-04-25 | 2 | -8/+9 |
| | |||||
* | 5124 | Kartik Agaram | 2019-04-23 | 4 | -4/+4 |
| | |||||
* | 5123 | Kartik Agaram | 2019-04-23 | 2 | -967/+959 |
| | |||||
* | 5122 | Kartik Agaram | 2019-04-23 | 2 | -7/+7 |
| | |||||
* | 5121 | Kartik Agaram | 2019-04-23 | 2 | -2/+2 |
| | |||||
* | 5120 | Kartik Agaram | 2019-04-23 | 1 | -1/+1 |
| | |||||
* | 5119 | Kartik Agaram | 2019-04-23 | 15 | -10307/+11549 |
| | |||||
* | 5118 - convert int to string | Kartik Agaram | 2019-04-23 | 9 | -0/+285 |
| | |||||
* | 5117 | Kartik Agaram | 2019-04-23 | 1 | -0/+1 |
| | |||||
* | 5116 | Kartik Agaram | 2019-04-23 | 1 | -0/+1 |
| | |||||
* | 5115 | Kartik Agaram | 2019-04-22 | 2 | -1/+1 |
| | |||||
* | 5114 - helper for idiv instruction | Kartik Agaram | 2019-04-21 | 2 | -0/+40 |
| | |||||
* | 5113 - x86's integer division (idiv) instruction | Kartik Agaram | 2019-04-21 | 2 | -2/+94 |
| | |||||
* | 5112 | Kartik Agaram | 2019-04-19 | 2 | -1/+63 |
| | |||||
* | 5111 | Kartik Agaram | 2019-04-18 | 1 | -3/+3 |
| | |||||
* | 5110 | Kartik Agaram | 2019-04-18 | 1 | -2/+3 |
| | |||||
* | Merge pull request #19 from akkartik/label-imm32-arg | Kartik Agaram | 2019-04-18 | 1 | -0/+13 |
|\ | | | | | Add functionality to support labels as imm32 arguments to opcodes | ||||
| * | Add functionality to support labels as imm32 arguments to opcodes | nc | 2019-04-18 | 1 | -0/+13 |
|/ | |||||
* | 5108 | Kartik Agaram | 2019-04-18 | 2 | -10/+10 |
| | |||||
* | 5107 | Kartik Agaram | 2019-04-18 | 2 | -4/+281 |
| | |||||
* | 5106 | Kartik Agaram | 2019-04-17 | 3 | -2/+147 |
| | |||||
* | 5105 | Kartik Agaram | 2019-04-16 | 8 | -395/+207 |
| | | | | | Pull in a _different_ function than `next-word` (commit 5092) into a shared file between phases. Let's see how this goes. | ||||
* | 5104 | Kartik Agaram | 2019-04-16 | 2 | -18/+13 |
| | | | | Don't forget metadata for string literals. | ||||
* | 5103 | Kartik Agaram | 2019-04-16 | 2 | -61/+88 |
| | |||||
* | 5102 - tokenize string literals | Kartik Agaram | 2019-04-16 | 2 | -0/+582 |
| | | | | | | Current plan: $ cat files.subx ... |dquotes |assort |pack |survey |hex > a.out | ||||
* | 5102 | Kartik Agaram | 2019-04-16 | 7 | -11/+11 |
| | |||||
* | 5101 | Kartik Agaram | 2019-04-16 | 1 | -1/+1 |
| | |||||
* | 5100 | Kartik Agaram | 2019-04-16 | 1 | -1/+1 |
| | |||||
* | 5099 | Kartik Agaram | 2019-04-16 | 1 | -4/+4 |
| | |||||
* | 5098 | Kartik Agaram | 2019-04-16 | 1 | -6/+6 |
| | |||||
* | 5097 | Kartik Agaram | 2019-04-16 | 2 | -8/+10 |
| | |||||
* | 5096 | Kartik Agaram | 2019-04-16 | 1 | -2/+2 |
| |