removed unnecessary things, updated and audited the code

This commit is contained in:
2026-06-13 11:31:07 -06:00
parent 29797fb707
commit a36705a931
13 changed files with 529 additions and 1718 deletions
+16 -16
View File
@@ -144,7 +144,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "58645013",
"metadata": {},
"outputs": [
@@ -152,16 +152,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Real instructions : 128\n",
"Reserved slots : 14\n",
"Real instructions : 132\n",
"Reserved slots : 10\n",
"Duplicate check : PASSED\n",
"\n",
"Groups found:\n",
"group\n",
"Integer 19\n",
"Boolean 16\n",
"System 15\n",
"Bit Wise 14\n",
"Boolean 12\n",
"Branch 12\n",
"Floating Point 10\n",
"Casts 10\n",
@@ -283,7 +283,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"id": "452bc76c",
"metadata": {},
"outputs": [
@@ -292,7 +292,7 @@
"output_type": "stream",
"text": [
"Masks written to: .//autogen/InstructionMasks.hpp\n",
"Lines generated : 272\n"
"Lines generated : 280\n"
]
}
],
@@ -357,7 +357,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"id": "5aaebef0",
"metadata": {},
"outputs": [
@@ -365,7 +365,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Instructions formatted: 128\n",
"Instructions formatted: 132\n",
"\n",
"--- Preview (first 2 instructions) ---\n",
" // [System] 0x000 — NOP: No Operation\n",
@@ -380,7 +380,7 @@
"\n",
"\n",
"CPU.hpp updated successfully at: .//src//spider/runtime/cpu/CPU.hpp\n",
"Total lines in updated file: 883\n"
"Total lines in updated file: 911\n"
]
}
],
@@ -451,7 +451,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"id": "instrmap_gen",
"metadata": {},
"outputs": [
@@ -460,9 +460,9 @@
"output_type": "stream",
"text": [
"InstrMap.cpp written to: .//src//spider/runtime/instr/InstrMap.cpp\n",
" Size : 34,157 bytes\n",
" Array entries : 512 (128 populated, 384 nullptr)\n",
" Switch cases : 128\n",
" Size : 33,581 bytes\n",
" Array entries : 512 (132 populated, 380 nullptr)\n",
" Switch cases : 132\n",
" Line endings : LF-only verified\n"
]
}
@@ -545,11 +545,11 @@
" mnem = opcode_to_mnem.get(opc)\n",
" if mnem:\n",
" name = opcode_to_name[opc]\n",
" L.append(f' &CPU::{mnem + \",\":<28s}// 0x{opc:03X} — {name}')\n",
" L.append(f' &CPU::{mnem + \",\":<22s}// 0x{opc:03X} — {name}')\n",
" else:\n",
" tag = ''\n",
" if opc in reserved_opcodes:\n",
" tag = ' (reserved)'\n",
" tag = ' (reserved)'\n",
" L.append(f' {\"nullptr,\":<28s}// 0x{opc:03X}{tag}')\n",
"\n",
"L.append('};')\n",
@@ -681,7 +681,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.3"
"version": "3.13.7"
}
},
"nbformat": 4,