cc18d535a5
crc32: add notw macro
...
instead of materializing a constant 0xffffffff, do a NOT and then
zero-extend the result. my qemu doesn't support the zext.w instruction,
so we have to do two shifts instead. these can potentially be fused
into a single instruction by the processor.
2024-08-23 23:14:51 -07:00
6d1413c754
crc32
2024-08-23 23:14:11 -07:00
c541d5fa08
lib/flags: more progress + test script
2023-05-24 22:26:50 -07:00
44d953a322
lib/flags: progress
2023-05-24 22:23:41 -07:00
ba2d991765
lib/flags: wip flag parsing
...
definitely doesn't work yet, but i wanted to make a snapshot of my
current progress
2023-05-23 19:45:14 -07:00
2ecbb120e2
echo: print newline even with no args, and add some tests
2023-04-24 23:24:38 -07:00
d49a5c9edc
echo
2023-04-23 18:02:44 -07:00
b267b3f0b2
env: fix strlen and add more comments
2023-04-23 15:46:34 -07:00
84ce44330c
env: use writev to add the newline
...
this allows us to print each line in a single, atomic write call,
without modifying or buffering it.
2023-04-23 15:21:38 -07:00
e20f0c4b1e
lib/sort
2023-04-23 11:25:15 -07:00
853b937691
printregs
2023-04-20 22:12:13 -07:00
6b66d832cf
add hexdump
2023-04-17 00:27:28 -07:00
3b2e88e661
printstack and env
2023-04-16 19:04:10 -07:00
9f0de41e02
add cat
2023-04-16 13:47:49 -07:00
39153e074d
add a test case
2023-04-16 11:27:46 -07:00
6f4ee19f88
disable compressed instructions for true and false
...
they're so small it doesn't really matter; better to keep them simple.
2023-04-16 11:14:21 -07:00
7bf0e225a3
initial commit
2023-04-16 10:38:46 -07:00