@specy/risc-v 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43006,7 +43006,10 @@ var RISCVRegisters = /* @__PURE__ */ ((RISCVRegisters2) => {
|
|
|
43006
43006
|
RISCVRegisters2[RISCVRegisters2["t6"] = 31] = "t6";
|
|
43007
43007
|
return RISCVRegisters2;
|
|
43008
43008
|
})(RISCVRegisters || {});
|
|
43009
|
-
|
|
43009
|
+
function keysOfEnum(e) {
|
|
43010
|
+
return Object.keys(e).filter((k) => isNaN(Number(k)));
|
|
43011
|
+
}
|
|
43012
|
+
var RISCV_REGISTERS = keysOfEnum(RISCVRegisters);
|
|
43010
43013
|
function registerHandlers(riscv, handlers) {
|
|
43011
43014
|
for (const [name, handler] of Object.entries(handlers)) {
|
|
43012
43015
|
riscv.registerHandler(name, handler);
|
package/dist/index.mjs
CHANGED
|
@@ -42972,7 +42972,10 @@ var RISCVRegisters = /* @__PURE__ */ ((RISCVRegisters2) => {
|
|
|
42972
42972
|
RISCVRegisters2[RISCVRegisters2["t6"] = 31] = "t6";
|
|
42973
42973
|
return RISCVRegisters2;
|
|
42974
42974
|
})(RISCVRegisters || {});
|
|
42975
|
-
|
|
42975
|
+
function keysOfEnum(e) {
|
|
42976
|
+
return Object.keys(e).filter((k) => isNaN(Number(k)));
|
|
42977
|
+
}
|
|
42978
|
+
var RISCV_REGISTERS = keysOfEnum(RISCVRegisters);
|
|
42976
42979
|
function registerHandlers(riscv, handlers) {
|
|
42977
42980
|
for (const [name, handler] of Object.entries(handlers)) {
|
|
42978
42981
|
riscv.registerHandler(name, handler);
|