Commit Graph

50 Commits

Author SHA1 Message Date
andromeda
b607bd13f3 IT SORTA WORKS LESGOOO 2026-03-23 23:37:39 +01:00
andromeda
40be72a5c3 remove superfluety 2026-03-23 22:29:13 +01:00
andromeda
f4f0f50d80 test completeness, couple semantics 2026-03-23 22:27:52 +01:00
andromeda
9233ca421b ;) 2026-03-23 18:11:27 +01:00
andromeda
9a88a859cf remove some stuff it doesn't need 2026-03-23 17:39:26 +01:00
andromeda
75e9c27dda remove superfluous wrapper function 2026-03-23 17:23:09 +01:00
andromeda
b952210561 add hash 2026-03-23 17:00:32 +01:00
andromeda
50e635332c start migration to better parsing of arguments 2026-03-23 16:25:10 +01:00
andromeda
cab89cdd2b a couple semantics 2026-03-22 04:19:51 +01:00
andromeda
55c426631b correctly handle [register]s as operands 2026-03-21 21:42:50 +01:00
andromeda
73ea2bb2b5 add addressing to evaluate_operand 2026-03-20 09:04:50 +01:00
andromeda
a5fd811b3f add trim_trailing_whitespace 2026-03-19 21:58:59 +01:00
andromeda
ad6a79d937 throw error with non-register operands 2026-03-18 20:52:00 +01:00
andromeda
ac0a10fafd finally change .gitignore, correctly handle register operands 2026-03-18 20:45:12 +01:00
andromeda
2e222c304a add evaluate_operand, fix operator tokenising 2026-03-18 20:26:30 +01:00
andromeda
ec88bd7381 rearrange test case 2026-03-18 18:41:48 +01:00
andromeda
d5c2dde221 identify some tokens 2026-03-18 16:53:35 +01:00
andromeda
de60e52c5a range check char length 2026-03-18 16:21:34 +01:00
andromeda
17a0a1a406 yeh only chr consts fn 2026-03-18 16:18:19 +01:00
andromeda
e79a30ba71 add rough char/str parsing 2026-03-17 21:16:17 +01:00
andromeda
0160d2e127 add binary 2026-03-15 22:02:36 +01:00
andromeda
c05adee382 add octal 2026-03-15 21:55:16 +01:00
andromeda
64d3e4f635 remove dead lines 2026-03-15 21:19:30 +01:00
andromeda
238069aa0d evaluate constants as long as they are hex in the form 0x 2026-03-15 21:18:40 +01:00
andromeda
4a3350fe4e get token id of operators 2026-03-13 22:49:15 +01:00
andromeda
0ee8ff7914 some major architecture changes 2026-03-12 23:03:29 +01:00
andromeda
bc19d760b9 remove dead lines 2026-03-12 14:30:24 +01:00
andromeda
1b93cab4f6 add warn print, clean up a little 2026-03-12 14:26:38 +01:00
andromeda
9e68a6bb6e increase/fix warnings 2026-03-12 14:12:33 +01:00
andromeda
c003e63d62 remove unused code 2026-03-12 14:03:46 +01:00
andromeda
e775b05f85 add print.* modes 2026-03-12 13:54:44 +01:00
andromeda
a84f2d7453 add get_ModRM 2026-03-11 20:14:13 +01:00
andromeda
e6d7cb2f21 add get_reg_bits and test, streamline ModRM calculations, correct opcodes, fix typos... 2026-03-10 21:21:59 +01:00
andromeda
08c39a2bd8 add get_opcode and its test, fix a couple bugs + semantics things 2026-03-10 16:32:06 +01:00
andromeda
a972f38bb6 add get_direct_addressing_ModRM and test_*, fix a couple bugs/typos, add 'reg value' as register metadata 2026-03-09 23:01:12 +01:00
andromeda
869420ef7a fix some bugs, work on assembler 2026-03-09 11:00:59 +01:00
andromeda
33710a8ebe work on metadata system, put tests in seperate file 2026-03-09 10:08:19 +01:00
andromeda
0b7526661c clear up internal data structures, add to README 2026-03-08 16:03:24 +01:00
andromeda
e10d771743 parse brackets, improve docs 2026-03-08 12:35:14 +01:00
andromeda
172566dfe3 remove line feed characters xD 2026-03-08 11:23:46 +01:00
andromeda
f4cadcfff9 change token table entries, remove temporary file :shame: 2026-03-08 11:15:05 +01:00
andromeda
0d66e77976 get tokenising working a bit :p also some fixes and semantics 2026-03-08 10:56:20 +01:00
andromeda
63e3a1ea7e add some tokens, length1 token support 2026-03-07 21:33:28 +01:00
andromeda
19a3e4ff5b little optimisation, add single-token parsing function 2026-03-07 20:57:19 +01:00
andromeda
50964e945e encode register tokens 2026-03-07 16:44:40 +01:00
andromeda
46bdc91966 clear tables 2026-03-07 15:51:51 +01:00
andromeda
30a7b5cb34 add elemb, improve token checking 2026-03-07 12:43:55 +01:00
andromeda
444e85e30c clarify doc 2026-03-06 22:36:47 +01:00
andromeda
00be2cc545 reformat, add copy_token and test, fix bug 2026-03-06 22:16:26 +01:00
andromeda
9c65697dd8 bunch of stuff idek 2026-03-06 20:33:51 +01:00