Skip to content

Instantly share code, notes, and snippets.

View allkern's full-sized avatar
🎯
Focusing

Lisandro Alarcón allkern

🎯
Focusing
View GitHub Profile
@allkern
allkern / vu.txt
Last active June 11, 2025 14:47
PS2 VU Upper and Lower Encodings
Upper
060007FF 000001FD ABS
0600003F 00000028 ADD
0600003F 00000022 ADDi
0600003F 00000020 ADDq
0600003F 00000000 ADDx
0600003F 00000001 ADDy
0600003F 00000002 ADDz
0600003F 00000003 ADDw
060007FF 000002BC ADDA
@allkern
allkern / rv32c.txt
Created June 17, 2024 03:23
32-bit RISC-V Compressed ISA decoding (for RV32G)
e003 0000 caddi4spn
e003 2000 cfld
e003 4000 clw
e003 6000 cflw
e003 a000 cfsd
e003 c000 csw
e003 e000 cfsw
ffff 0001 cnop
e003 0001 caddi
e003 2001 cjal
@allkern
allkern / rv32.txt
Last active June 19, 2024 13:23
32-bit RISC-V decoding (IMAFD, Zifencei, Zicsr)
mask match instruction
fe00707f 00000033 add
fe00707f 02000033 sub
fe00707f 00004033 xor
fe00707f 00006033 or
fe00707f 00007033 and
fe00707f 00001033 sll
fe00707f 00005033 srl
fe00707f 02005033 sra
fe00707f 00002033 slt
@allkern
allkern / r3000a.txt
Last active October 9, 2025 15:33
R3000A decoding
Mask Match Cyc Instruction
fc1f0000 04000000 2 bltz
fc1f0000 04010000 2 bgez
fc1f0000 04100000 2 bltzal
fc1f0000 04110000 2 bgezal
fc000000 08000000 2 j
fc000000 0c000000 2 jal
fc000000 10000000 2 beq
fc000000 14000000 2 bne
fc000000 18000000 2 blez
@allkern
allkern / hv3.txt
Created February 16, 2024 18:44
HV3 ISA preliminary specification
HyRISC v3 ISA Specification:
LI
ADD
ADDI
SUB
SUBI
AND
ANDI
OR