about summary refs log tree commit diff stats
path: root/subx/apps/survey.subx
Commit message (Collapse)AuthorAgeFilesLines
* mostly done with emit-outputKartik Agaram2019-07-091-6/+131
| | | | | Some nooks and crannies will need light final debugging with xxd, but emit-hex-output covers most of the logic.
* done with emit-segmentsKartik Agaram2019-07-091-33/+532
| | | | Only failures now are the first two tests in survey.subx.
* .Kartik Agaram2019-07-091-26/+26
|
* .Kartik Agaram2019-07-091-0/+1
|
* .Kartik Agaram2019-07-091-2/+2
|
* .Kartik Agaram2019-07-091-1/+1
|
* clean up after a few callsKartik Agaram2019-07-091-4/+9
|
* preserve truthiness of non-booleansKartik Agaram2019-07-091-16/+12
| | | | | Everywhere we check if something is true, we check it by comparing against 0, not 1.
* this looks like a bugKartik Agaram2019-07-091-1/+1
| | | | | But of course the test is still infinite-looping so we can't be sure. I'm still just reading the code.
* .Kartik Agaram2019-07-091-15/+4
|
* .Kartik Agaram2019-07-091-19/+17
|
* move 'segment-start' to a global variable as wellKartik Agaram2019-07-091-12/+10
| | | | | It's ugly to have function locals in global variables, but we'll figure out later how to deal with it.
* .Kartik Agaram2019-07-091-8/+0
|
* there's a variant of compute-width for slicesKartik Agaram2019-07-091-9/+5
| | | | | Looks like the original compute-width is now dead. But still seems useful to have around.
* there's a variant of get-or-insert for slicesKartik Agaram2019-07-091-27/+16
| | | | | | The compute-offsets test now goes into an infinite loop :( But I figure all these changes are useful anyway, we should just debug the error separately.
* keep labels definitions on a separate lineKartik Agaram2019-07-091-6/+12
| | | | SubX in SubX doesn't support mixing labels with other stuff :)
* switch to global HeapKartik Agaram2019-07-091-10/+5
|
* .Kartik Agaram2019-07-081-8/+8
| | | | | Be more consistent about names of ends of a slice. (In the opposite direction compared to last night's 925fc490d2ce8b8d411de87bd0af5b3a8a704213.)
* .Kartik Agaram2019-07-081-7/+6
| | | | minor style tweaks
* colocate compute-offsets with its globalsKartik Agaram2019-07-081-9/+14
|
* .Kartik Agaram2019-07-081-8/+8
| | | | Be more consistent about names of ends of a slice.
* .Kartik Agaram2019-07-081-5/+5
|
* build `num-bytes`Kartik Agaram2019-07-071-0/+503
|
* move `is-label?` to `subx-common`Kartik Agaram2019-07-071-83/+0
|
* made first compute-offset test passnc2019-07-071-27/+58
|
* remove segfaults in survey.subxnc2019-07-071-8/+8
|
* new failing test: emit-segmentsKartik Agaram2019-07-071-1/+254
| | | | Now the only piece I plan to not write tests for is emit-headers.
* .Kartik Agaram2019-07-071-7/+8
|
* move phase 3 out of helpersKartik Agaram2019-07-071-117/+117
|
* cleanup in compute-offset and fix bug in compute-widthnc2019-07-071-12/+11
|
* more progress in compute-offsetnc2019-07-041-30/+59
|
* implement segment section in compute-offsetsnc2019-07-041-3/+112
|
* .Kartik Agaram2019-07-041-2/+2
| | | | | | Fix a couple of syntax errors. survey.subx still failing tests.
* add todo for section thats not quite completenc2019-07-031-1/+1
|
* add is-label blocknc2019-07-031-3/+46
|
* updates to survey - part of compute-offsets implementednc2019-07-031-1/+136
|
* subx/survey: now computing label addressesKartik Agaram2019-07-021-47/+65
|
* .Kartik Agaram2019-07-021-12/+31
| | | | | subx/survey/compute-addresses: Now computing segment starting addresses correctly.
* .Kartik Agaram2019-07-021-5/+5
|
* .Kartik Agaram2019-07-021-4/+8
|
* error in pseudocode for compute-offsetsKartik Agaram2019-07-021-1/+3
|
* .Kartik Agaram2019-07-011-33/+46
| | | | Now tracing segment names correctly.
* .Kartik Agaram2019-07-011-0/+27
|
* .Kartik Agaram2019-07-011-0/+24
|
* .Kartik Agaram2019-07-011-14/+15
| | | | | | Make `compute-addresses` less clever. Stop striding from the middle of one row to the next. This way we'll also obviate the need for indexing backwards from a pointer in the next commit.
* some primitives for emitting tracesKartik Agaram2019-07-011-1/+447
| | | | | | | | | | | | | | Kinda hacky, but might scale enough for machine code. This was really hard to debug. Single tests passed, but when I ran all tests I got breakage because tests long before (from the 056trace layer) were not cleaning up properly. My instinct was to call clear-stream on Trace-stream, which was wrong (the trace didn't have the wrong contents, it was literally a bad object). It was also wrong in a counter-productive way: calling clear-stream on a real Trace stream (which is the size of a page of memory) takes a long time in emulated mode.
* add test datanc2019-06-291-1/+10
|
* Implement is-label?nc2019-06-291-0/+75
|
* .Kartik Agaram2019-06-281-0/+1
|
* initial draft of solution for 'compute-addresses'Kartik Agaram2019-06-281-4/+73
| | | | No trace statements yet, so we don't know if it works.