@specy/risc-v 1.0.1 → 1.0.2
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 +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +2988 -2769
- package/dist/index.mjs +2988 -2769
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -393,6 +393,12 @@ interface JsRiscV {
|
|
|
393
393
|
* @returns The value of the register.
|
|
394
394
|
*/
|
|
395
395
|
getRegisterValue(register: RegisterName): number;
|
|
396
|
+
/**
|
|
397
|
+
* Gets the value of a register in long format.
|
|
398
|
+
* @param register The name of the register.
|
|
399
|
+
* @returns The value of the register in long format.
|
|
400
|
+
*/
|
|
401
|
+
getRegisterValueLong(register: RegisterName): bigint;
|
|
396
402
|
/**
|
|
397
403
|
* Registers a handler function for a specific event or condition.
|
|
398
404
|
* @param name The name of the event or condition.
|
|
@@ -404,6 +410,11 @@ interface JsRiscV {
|
|
|
404
410
|
* @returns The value of the stack pointer.
|
|
405
411
|
*/
|
|
406
412
|
stackPointer: number;
|
|
413
|
+
/**
|
|
414
|
+
* Gets the current value of the stack pointer in long format.
|
|
415
|
+
* @returns The value of the stack pointer in long format.
|
|
416
|
+
*/
|
|
417
|
+
stackPointerLong: bigint;
|
|
407
418
|
/**
|
|
408
419
|
* Gets the current value of the program counter.
|
|
409
420
|
* @returns The value of the program counter.
|
|
@@ -414,6 +425,11 @@ interface JsRiscV {
|
|
|
414
425
|
* @returns An array containing the register values. The order of the values is implementation defined.
|
|
415
426
|
*/
|
|
416
427
|
getRegistersValues(): number[];
|
|
428
|
+
/**
|
|
429
|
+
* Gets the values of all registers in long format.
|
|
430
|
+
* @returns An array containing the register values in long format. The order of the values is implementation defined.
|
|
431
|
+
*/
|
|
432
|
+
getRegistersValuesLong(): bigint[];
|
|
417
433
|
/**
|
|
418
434
|
* Gets the undo stack.
|
|
419
435
|
* @returns An array of `JsBackStep` objects representing the history of the simulation.
|
package/dist/index.d.ts
CHANGED
|
@@ -393,6 +393,12 @@ interface JsRiscV {
|
|
|
393
393
|
* @returns The value of the register.
|
|
394
394
|
*/
|
|
395
395
|
getRegisterValue(register: RegisterName): number;
|
|
396
|
+
/**
|
|
397
|
+
* Gets the value of a register in long format.
|
|
398
|
+
* @param register The name of the register.
|
|
399
|
+
* @returns The value of the register in long format.
|
|
400
|
+
*/
|
|
401
|
+
getRegisterValueLong(register: RegisterName): bigint;
|
|
396
402
|
/**
|
|
397
403
|
* Registers a handler function for a specific event or condition.
|
|
398
404
|
* @param name The name of the event or condition.
|
|
@@ -404,6 +410,11 @@ interface JsRiscV {
|
|
|
404
410
|
* @returns The value of the stack pointer.
|
|
405
411
|
*/
|
|
406
412
|
stackPointer: number;
|
|
413
|
+
/**
|
|
414
|
+
* Gets the current value of the stack pointer in long format.
|
|
415
|
+
* @returns The value of the stack pointer in long format.
|
|
416
|
+
*/
|
|
417
|
+
stackPointerLong: bigint;
|
|
407
418
|
/**
|
|
408
419
|
* Gets the current value of the program counter.
|
|
409
420
|
* @returns The value of the program counter.
|
|
@@ -414,6 +425,11 @@ interface JsRiscV {
|
|
|
414
425
|
* @returns An array containing the register values. The order of the values is implementation defined.
|
|
415
426
|
*/
|
|
416
427
|
getRegistersValues(): number[];
|
|
428
|
+
/**
|
|
429
|
+
* Gets the values of all registers in long format.
|
|
430
|
+
* @returns An array containing the register values in long format. The order of the values is implementation defined.
|
|
431
|
+
*/
|
|
432
|
+
getRegistersValuesLong(): bigint[];
|
|
417
433
|
/**
|
|
418
434
|
* Gets the undo stack.
|
|
419
435
|
* @returns An array of `JsBackStep` objects representing the history of the simulation.
|