Commit Graph

4848 Commits

Author SHA1 Message Date
Kartik Agaram 5a9795bb66 4881 2018-12-28 08:56:21 -08:00
Kartik Agaram e0610e396f 4880 2018-12-28 02:18:16 -08:00
Kartik Agaram 044b413021 4879 2018-12-28 02:07:11 -08:00
Kartik Agaram efc3c64b0d 4878 2018-12-27 23:44:03 -08:00
Kartik Agaram f842ab98de 4877 2018-12-27 23:38:38 -08:00
Kartik Agaram 58abd047ec 4876 2018-12-27 23:17:34 -08:00
Kartik Agaram 5beb25b508 4875
Another tweak for a light background.
2018-12-25 23:02:16 -08:00
Kartik Agaram fb7cd3f16c 4874 2018-12-25 23:01:26 -08:00
Kartik Agaram 17b8233f44 4873 2018-12-20 16:37:10 -08:00
Kartik Agaram f9b08fb7c1 4872 - ctags definitions for SubX
Symlink or append exuberant_ctags_rc to your ~/.ctagsrc.
2018-12-17 21:16:31 -08:00
Kartik Agaram 8490f17dec 4871
Experimenting with a light background colorscheme.
2018-12-17 00:47:25 -08:00
Kartik Agaram 0d7afdf7b4 4870
Don't treat this as a section comment:

  e8/call foo  # -1 is negative
2018-12-17 00:46:37 -08:00
Kartik Agaram cdfff1a18d 4869 2018-12-16 20:52:47 -08:00
Kartik Agaram 011a634cc6 4868 2018-12-16 20:52:41 -08:00
Kartik Agaram 50a6c04860 4867 2018-12-15 00:12:48 -08:00
Kartik Agaram afa6e18b1b 4866 2018-12-10 23:38:14 -08:00
Kartik Agaram 3d4fba4d12 4865
More mnemonic register usage in write-stream.
2018-12-10 09:55:46 -08:00
Kartik Agaram 3a4d870730 4864
Our first buffer overflow!
2018-12-10 00:17:47 -08:00
Kartik Agaram dd08c9e69b 4863 2018-12-10 00:14:49 -08:00
Kartik Agaram f9ec61327a 4862 2018-12-09 23:37:34 -08:00
Kartik Agaram 5262ed0de3 4861 2018-12-09 22:46:39 -08:00
Kartik Agaram 42a933078c 4860 - stage 1 of SubX compiler in SubX is done!
I'm imagining 3 core stages total:
  1. convert text hex bytes -> binary (✓)
  2. pack and reorder operands
  3. compute label addresses

(Not including extras like error-checking.)
2018-12-09 21:18:05 -08:00
Kartik Agaram c91d67a29b 4859 2018-12-09 21:08:06 -08:00
Kartik Agaram 3fede2964e 4858 - debugging tips 2018-12-08 01:00:30 -08:00
Kartik Agaram e20d5c0636 4857
Clean up the debugging flow, and go over help messages for inconsistencies.
They predate the new Readme, which takes some time to describe the x86
instruction set.
2018-12-06 23:28:43 -08:00
Kartik Agaram 780d868502 4856
Fix CI.
2018-12-06 12:55:22 -08:00
Kartik Agaram c3adc0d422 4855 2018-12-06 12:54:03 -08:00
Kartik Agaram 09944ba6a8 4854 2018-12-06 12:52:38 -08:00
Kartik Agaram 24e3796c23 4853 2018-12-06 12:27:06 -08:00
Kartik Agaram b94863fdf2 4852 2018-12-06 12:10:24 -08:00
Kartik Agaram 48140fcd3f 4851
Bugfix in scenarios where scan-next-byte needs to abort.

I'm starting to have trouble keeping strings, streams and buffered-files
straight.
2018-12-06 12:07:48 -08:00
Kartik Agaram 272408b06b 4850 2018-12-06 11:11:43 -08:00
Kartik Agaram e9909be374 4849 2018-12-06 11:01:23 -08:00
Kartik Agaram a966881b6e 4848 2018-12-06 10:50:26 -08:00
Kartik Agaram 81605224f0 4847 2018-12-06 09:41:40 -08:00
Kartik Agaram 33e7c3a751 4846
Clean up a few things:

a) Call scan-next-byte in hex.subx with the right number of args. Turns
out tests continue to work fine if they never use the other args.

b) Tear down a test for 'stop' in the right order. Not important since we
have no EBP to restore. But can still be misleading.

c) Have 'check-ints-equal' return nothing. Handy for it to not mess up
EAX. I never use the result anyway, and the name also is imperative suggesting
callers won't expect a return value.
2018-12-06 09:34:55 -08:00
Kartik Agaram 33cf1f90be 4845 2018-12-06 00:42:12 -08:00
Kartik Agaram 0becf53645 4844 2018-12-06 00:18:13 -08:00
Kartik Agaram 257ca35ab4 4845
Making progress on hex1 (http://web.archive.org/web/20061108010907/http://www.rano.org/bcompiler.html)
2018-12-06 00:16:01 -08:00
Kartik Agaram 9fe5bca490 4844 2018-12-06 00:15:45 -08:00
Kartik Agaram cbe5bec6f0 4843
Colorize function names containing special characters like '?'.
2018-12-05 23:16:53 -08:00
Kartik Agaram 27ef047ae5 4842 2018-12-05 22:34:59 -08:00
Kartik Agaram 79328f9ad6 4841
New helper: print an error message, then a numeric byte, then abort.
2018-12-04 12:26:27 -08:00
Kartik Agaram a94b60b5cc 4840
New helper: printing a string to a buffered file.
2018-12-04 12:16:17 -08:00
Kartik Agaram 707935d0a8 4839 2018-12-04 12:12:18 -08:00
Kartik Agaram af5797eeff 4838
Better to use EDI as a mnemonic for 'destination'.
2018-12-04 10:40:01 -08:00
Kartik Agaram 9e03e2bd37 4837
Let's standardize to use opcode 39 rather than 3b by default.
2018-12-04 10:19:18 -08:00
Kartik Agaram ca0a598c87 4836 2018-12-04 09:59:42 -08:00
Kartik Agaram 768093cd94 4835 2018-12-04 09:57:40 -08:00
Kartik Agaram 381d80f8a4 4834
Fix CI since 4827.
2018-12-04 09:56:23 -08:00