@specy/risc-v 1.0.3 → 1.0.5
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.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +2273 -2207
- package/dist/index.mjs +2273 -2207
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -136,6 +136,7 @@ type JsInstruction = {
|
|
|
136
136
|
example: string;
|
|
137
137
|
description: string;
|
|
138
138
|
tokens: JsInstructionToken[];
|
|
139
|
+
isRv64Only: boolean;
|
|
139
140
|
};
|
|
140
141
|
type RiscvTokenizedLine = {
|
|
141
142
|
line: string;
|
|
@@ -398,7 +399,7 @@ interface JsRiscV {
|
|
|
398
399
|
* @param register The name of the register.
|
|
399
400
|
* @returns The value of the register in long format.
|
|
400
401
|
*/
|
|
401
|
-
getRegisterValueLong(register: RegisterName):
|
|
402
|
+
getRegisterValueLong(register: RegisterName): string;
|
|
402
403
|
/**
|
|
403
404
|
* Registers a handler function for a specific event or condition.
|
|
404
405
|
* @param name The name of the event or condition.
|
|
@@ -414,7 +415,7 @@ interface JsRiscV {
|
|
|
414
415
|
* Gets the current value of the stack pointer in long format.
|
|
415
416
|
* @returns The value of the stack pointer in long format.
|
|
416
417
|
*/
|
|
417
|
-
stackPointerLong:
|
|
418
|
+
stackPointerLong: string;
|
|
418
419
|
/**
|
|
419
420
|
* Gets the current value of the program counter.
|
|
420
421
|
* @returns The value of the program counter.
|
|
@@ -424,7 +425,7 @@ interface JsRiscV {
|
|
|
424
425
|
* Gets the current value of the program counter in long format.
|
|
425
426
|
* @returns The value of the program counter in long format.
|
|
426
427
|
*/
|
|
427
|
-
programCounterLong:
|
|
428
|
+
programCounterLong: string;
|
|
428
429
|
/**
|
|
429
430
|
* Gets the values of all registers.
|
|
430
431
|
* @returns An array containing the register values. The order of the values is implementation defined.
|
|
@@ -434,7 +435,7 @@ interface JsRiscV {
|
|
|
434
435
|
* Gets the values of all registers in long format.
|
|
435
436
|
* @returns An array containing the register values in long format. The order of the values is implementation defined.
|
|
436
437
|
*/
|
|
437
|
-
getRegistersValuesLong():
|
|
438
|
+
getRegistersValuesLong(): string[];
|
|
438
439
|
/**
|
|
439
440
|
* Gets the undo stack.
|
|
440
441
|
* @returns An array of `JsBackStep` objects representing the history of the simulation.
|
package/dist/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ type JsInstruction = {
|
|
|
136
136
|
example: string;
|
|
137
137
|
description: string;
|
|
138
138
|
tokens: JsInstructionToken[];
|
|
139
|
+
isRv64Only: boolean;
|
|
139
140
|
};
|
|
140
141
|
type RiscvTokenizedLine = {
|
|
141
142
|
line: string;
|
|
@@ -398,7 +399,7 @@ interface JsRiscV {
|
|
|
398
399
|
* @param register The name of the register.
|
|
399
400
|
* @returns The value of the register in long format.
|
|
400
401
|
*/
|
|
401
|
-
getRegisterValueLong(register: RegisterName):
|
|
402
|
+
getRegisterValueLong(register: RegisterName): string;
|
|
402
403
|
/**
|
|
403
404
|
* Registers a handler function for a specific event or condition.
|
|
404
405
|
* @param name The name of the event or condition.
|
|
@@ -414,7 +415,7 @@ interface JsRiscV {
|
|
|
414
415
|
* Gets the current value of the stack pointer in long format.
|
|
415
416
|
* @returns The value of the stack pointer in long format.
|
|
416
417
|
*/
|
|
417
|
-
stackPointerLong:
|
|
418
|
+
stackPointerLong: string;
|
|
418
419
|
/**
|
|
419
420
|
* Gets the current value of the program counter.
|
|
420
421
|
* @returns The value of the program counter.
|
|
@@ -424,7 +425,7 @@ interface JsRiscV {
|
|
|
424
425
|
* Gets the current value of the program counter in long format.
|
|
425
426
|
* @returns The value of the program counter in long format.
|
|
426
427
|
*/
|
|
427
|
-
programCounterLong:
|
|
428
|
+
programCounterLong: string;
|
|
428
429
|
/**
|
|
429
430
|
* Gets the values of all registers.
|
|
430
431
|
* @returns An array containing the register values. The order of the values is implementation defined.
|
|
@@ -434,7 +435,7 @@ interface JsRiscV {
|
|
|
434
435
|
* Gets the values of all registers in long format.
|
|
435
436
|
* @returns An array containing the register values in long format. The order of the values is implementation defined.
|
|
436
437
|
*/
|
|
437
|
-
getRegistersValuesLong():
|
|
438
|
+
getRegistersValuesLong(): string[];
|
|
438
439
|
/**
|
|
439
440
|
* Gets the undo stack.
|
|
440
441
|
* @returns An array of `JsBackStep` objects representing the history of the simulation.
|