about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 4810Kartik Agaram2018-11-302-0/+0
|
* 4809 - subx: html with 5 colors for commentsKartik Agaram2018-11-3038-4449/+4614
|
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-3025-384/+394
|
* 4807Kartik Agaram2018-11-301-1/+2
| | | | Stop highlighting capitalized words in metadata as global variables.
* 4806Kartik Agaram2018-11-301-2/+2
| | | | | | Drop a wildcard in my edit shortcuts that's getting confused between apps/crenshaw2-1.subx and apps/crenshaw2-1b.subx. We're pretty much always using the full filename (excluding .subx extension) anyway.
* 4805Kartik Agaram2018-11-302-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More tweaking of colors, as far as possible in 256-color terminal mode that's almost entirely just for me, and beyond that in the generated html that more people may look at. In the former I have to work with a limited palette, while I'd like the latter to be more accessible for others. Evolution of colors: === 1 .subxH1Comment { color: #00ffff; } .subxH2Comment { color: #00afff; } .subxComment { color: #00afff; } .subxS1Comment { color: #0080ff; } .subxS2Comment { color: #0040ff; } === 2 sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html sed -i 's/^\.subxH2Comment.*/.subxH2Comment { color:#00bbff; }/' $1.html sed -i 's/^\.subxComment.*/.subxComment { color:#00bbff; }/' $1.html sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#0098ff; }/' $1.html sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0070ff; }/' $1.html # slightly too dark === 3: http://www.perbang.dk/rgbgradient from start to end sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html sed -i 's/^\.subxH2Comment.*/.subxH2Comment { color:#00ddff; }/' $1.html sed -i 's/^\.subxComment.*/.subxComment { color:#00bbff; }/' $1.html sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#0099ff; }/' $1.html sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0078ff; }/' $1.html === 4: drop down to 4 colors sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html sed -i 's/^\.subxComment.*/.subxComment { color:#00d2ff; }/' $1.html sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#00a4ff; }/' $1.html sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0078ff; }/' $1.html === 4: make final one just a little too dark sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html sed -i 's/^\.subxComment.*/.subxComment { color:#00cfff; }/' $1.html sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#009fff; }/' $1.html sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#0070ff; }/' $1.html # slightly too dark === 5: make darkest shade a little less blue, just at the edge of too dark sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html sed -i 's/^\.subxComment.*/.subxComment { color:#16ccff; }/' $1.html sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#2d99ff; }/' $1.html sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#4466ff; }/' $1.html # slightly too dark === 6: HSV gradient between the same endpoints sed -i 's/^\.subxH1Comment.*/.subxH1Comment { color:#00ffff; }/' $1.html sed -i 's/^\.subxComment.*/.subxComment { color:#16bfff; }/' $1.html sed -i 's/^\.subxS1Comment.*/.subxS1Comment { color:#2d8cff; }/' $1.html sed -i 's/^\.subxS2Comment.*/.subxS2Comment { color:#4466ff; }/' $1.html # slightly too dark
* 4804Kartik Agaram2018-11-301-12/+12
|
* 4803Kartik Agaram2018-11-301-128/+128
|
* 4802Kartik Agaram2018-11-3026-828/+828
| | | | | | | | | | | | | | | | Some automated commenting cleanup. Still needs more careful manual scanning. sed -i 's/^# 1-3/# . 1-3/' *.subx */*.subx sed -i 's/^# op/# . op/' *.subx */*.subx sed -i 's/# vim/# . . vim/' *.subx */*.subx sed -i 's/^ # push args/ # . . push args/' *.subx */*.subx sed -i 's/^ # discard args/ # . . discard args/' *.subx */*.subx sed -i 's/^ # call/ # . . call/' *.subx */*.subx sed -i 's/^ # prolog/ # . prolog/' *.subx */*.subx sed -i 's/^ # epilog/ # . epilog/' *.subx */*.subx sed -i 's/^ # save registers/ # . save registers/' *.subx */*.subx sed -i 's/^ # restore registers/ # . restore registers/' *.subx */*.subx sed -i 's/ operand / register /' *.subx */*.subx
* 4801Kartik Agaram2018-11-3024-2981/+2981
| | | | Reindent all SubX code to make some room for the new comment style.
* 4800Kartik Agaram2018-11-302-10/+11
|
* 4799Kartik Agaram2018-11-301-4/+4
|
* 4798Kartik Agaram2018-11-301-28/+6
| | | | Another attempt at picking colors for the 5 different levels of comments.
* 4797Kartik Agaram2018-11-304-4/+4
|
* 4796Kartik Agaram2018-11-3028-3234/+3214
|
* 4795Kartik Agaram2018-11-281-3/+3
|
* 4794Kartik Agaram2018-11-281-1/+1
|
* 4793Kartik Agaram2018-11-281-9/+46
| | | | | Experimenting with putting code examples higher up in the Readme. Thanks Pelle Hjek for the feedback: http://arclanguage.org/item?id=20875.
* 4792Kartik Agaram2018-11-281-2/+2
| | | | Thanks Pelle Hjek for the feedback: http://arclanguage.org/item?id=20870
* 4791Kartik Agaram2018-11-271-13/+14
|
* 4790Kartik Agaram2018-11-271-3/+3
|
* 4789Kartik Agaram2018-11-271-4/+4
|
* 4788Kartik Agaram2018-11-272-2/+2
|
* 4787Kartik Agaram2018-11-272-180/+194
|
* 4786Kartik Agaram2018-11-261-1/+1
|
* 4785Kartik Agaram2018-11-261-1/+1
|
* 4784Kartik Agaram2018-11-261-1/+1
|
* 4783Kartik Agaram2018-11-261-0/+46
|
* 4782Kartik Agaram2018-11-2652-4034/+6662
|
* 4781Kartik Agaram2018-11-261-9/+11
|
* 4780Kartik Agaram2018-11-2621-12/+12
|
* 4779Kartik Agaram2018-11-261-54/+95
|
* 4778 - entirely rewritten ReadmeKartik Agaram2018-11-255-135/+266
|
* 4777Kartik Agaram2018-11-251-7/+7
|
* 4776Kartik Agaram2018-11-254-100/+90
| | | | | | | | | | | | | Crenshaw compiler now runs natively as well. It turns out I was misreading the Intel manual, and the jump instructions that I thought take disp16 operands actually take disp32 operands by default on both i686 and x86_64 processors. The disp16 versions are some holdover from the 16-bit days. This was the first time I've used one of these erstwhile-disp16 instructions, but I still haven't tested most of them. We'll see if we run into future issues.
* 4775Kartik Agaram2018-11-245-213/+857
| | | | | | | Start with an exactly corresponding version to Crenshaw 2-1: single-digit numbers. The only change: we assume the number is in hex. The next version now supports multi-digit hex numbers.
* 4774Kartik Agaram2018-11-243-23/+2
| | | | Simplification.
* 4773 - done with crenshaw chapter 2-1Kartik Agaram2018-11-245-15/+128
| | | | In the process I had to fix a couple more bugs in support for disp16 instructions.
* 4772Kartik Agaram2018-11-242-2/+4
|
* 4771Kartik Agaram2018-11-242-0/+7
| | | | | | | I stopped handling disp16 at some point, and using instructions with such an operand messes up segment alignment when generating ELF binaries. I don't test my ELF generation. This is a sign that maybe I should start.
* 4770Kartik Agaram2018-11-241-6/+6
|
* 4769Kartik Agaram2018-11-241-9/+37
|
* 4768Kartik Agaram2018-11-243-0/+240
|
* 4767Kartik Agaram2018-11-243-50/+50
|
* 4766Kartik Agaram2018-11-241-3/+4
|
* 4765Kartik Agaram2018-11-231-1/+2
|
* 4764Kartik Agaram2018-11-232-5/+221
|
* 4763 - back to the 'trivial' crenshaw2-1 compilerKartik Agaram2018-11-233-2/+426
| | | | | This time I've ported (and test-driven) 'GetChar' and 'GetNum'. The new tests bring together our new testable interfaces for read() and exit().
* 4762Kartik Agaram2018-11-231-5/+8
|
* 4761Kartik Agaram2018-11-234-12/+11
| | | | | Bugfix: I forgot about ELF segment offsets when implementing VMAs. Eventually segments grew large enough that I started seeing overlaps.