about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 4757Kartik Agaram2018-11-206-40/+46
| | | | | | Let's start highlighting all global variables in Red. Assembly programming has a tendency to over-use them. They're a necessary evil, but we should minimize the number of functions that access them.
* 4756Kartik Agaram2018-11-196-4/+4
| | | | | Long-standing and long-copied typo has been messing with our exit status on test failures.
* 4755 - read-byte (sometimes called getchar)Kartik Agaram2018-11-193-0/+243
|
* 4754 - allow data segment to refer to variablesKartik Agaram2018-11-193-13/+55
|
* 4753Kartik Agaram2018-11-191-5/+5
|
* 4752Kartik Agaram2018-11-181-24/+24
|
* 4751Kartik Agaram2018-11-181-0/+6
|
* 4750Kartik Agaram2018-11-181-0/+4
| | | | | There can be situations where a run is striding through a segment. Reduce the number of reallocations that reallocations that requires.
* 4749 - speed up testsKartik Agaram2018-11-181-8/+14
| | | | | | | When we implemented 'read' our apps went over 0x1000 bytes, so I grew the initial segment size. But that slowed down emulation because each test was reallocating all segments. Now we allocate small segments at the start, and grow them gradually as needed.
* 4748Kartik Agaram2018-11-181-4/+4
| | | | Fix CI.
* 4747 - subx: 'read' primitiveKartik Agaram2018-11-185-16/+385
|
* 4746Kartik Agaram2018-11-171-17/+17
|
* 4745Kartik Agaram2018-11-173-1/+1
|
* 4744Kartik Agaram2018-11-171-2/+2
|
* 4743Kartik Agaram2018-11-123-4/+5
|
* 4742Kartik Agaram2018-11-051-1/+2
|
* 4741Kartik Agaram2018-10-303-16/+46
| | | | Extract a helper that we'll need for 'read'.
* 4740Kartik Agaram2018-10-303-53/+57
|
* 4739Kartik Agaram2018-10-301-3/+3
|
* 4738Kartik Agaram2018-10-302-12/+13
|
* 4737Kartik Agaram2018-10-301-1/+1
|
* 4736Kartik Agaram2018-10-293-43/+48
| | | | | | | | | We'll use a common stream data structure for input and output streams. Having separate types makes more sense in a more high-level language, where we have type checking and where functions for handling the different types are more concise. But in machine code the sweet spot is more toward fewer types.
* 4735Kartik Agaram2018-10-281-6/+6
|
* 4734Kartik Agaram2018-10-2834-1945/+1956
|
* 4733Kartik Agaram2018-10-281-1/+1
|
* 4732Kartik Agaram2018-10-282-4/+3
|
* 4731Kartik Agaram2018-10-287-25/+25
|
* 4730Kartik Agaram2018-10-281-1/+1
|
* 4729Kartik Agaram2018-10-285-42/+54
| | | | | | Start injecting all dependencies in the Crenshaw compiler app. In the process I realized the non-fake code path of 'stop' had a bug.
* 4728Kartik Agaram2018-10-281-1/+1
| | | | | What is this '|| exit 1' construct?! No need for it in the presence of ERREXIT.
* 4727 - commit to better 64-bit supportKartik Agaram2018-10-272-18/+16
| | | | | | | I've started testing more regularly on 64-bit Linux, and I realize that the binaries actually now compare identical even on 64-bit. Why did I ever add that condition to CI? Seems to be working now on Travis. Let's start comparing now and see if the problem happens again.
* 4726Kartik Agaram2018-10-279-6/+49
|
* 4725 - back to porting the Crenshaw compilerKartik Agaram2018-10-265-3/+16
|
* 4724Kartik Agaram2018-10-2427-2401/+2486
|
* 4723Kartik Agaram2018-10-242-10/+10
| | | | Fix CI.
* 4722Kartik Agaram2018-10-245-462/+680
|
* 4721Kartik Agaram2018-10-242-0/+0
|
* 4720Kartik Agaram2018-10-241-2/+2
| | | | Raise an error when we fall off the end of the code segment.
* 4719 - testable interface wrapping around exit()Kartik Agaram2018-10-243-71/+153
|
* 4718Kartik Agaram2018-10-242-6/+6
|
* 4717Kartik Agaram2018-10-246-68/+68
|
* 4716Kartik Agaram2018-10-231-3/+3
|
* 4715 - support one more negation instructionKartik Agaram2018-10-232-1/+48
|
* 4714Kartik Agaram2018-10-231-1/+21
| | | | Improve error-checking for unnecessary displacement operands.
* 4713Kartik Agaram2018-10-214-1/+137
| | | | | | | | Initial sketch of a dependency-injected wrapper around the exit() syscall. I don't have the primitives yet, just a sketch of how they should work -- and a passing test for non-local jumps without support for passing the exit status to the caller.
* 4712Kartik Agaram2018-10-211-89/+92
|
* 4711Kartik Agaram2018-10-174-165/+122
| | | | | | | Extract a helper for appending strings to raw buffers. I'd been resisting this idea, but it actually turns out to be a pretty clean abstraction in the end.
* 4710Kartik Agaram2018-10-174-9/+9
| | | | | Start using write() instead of _write().. and we promptly find a typo when dealing with real file descriptors.
* 4709Kartik Agaram2018-10-17108-5449/+6703
|
* 4708Kartik Agaram2018-10-172-4/+4
|