@specy/risc-v 1.0.2 → 1.0.4

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 CHANGED
@@ -398,7 +398,7 @@ interface JsRiscV {
398
398
  * @param register The name of the register.
399
399
  * @returns The value of the register in long format.
400
400
  */
401
- getRegisterValueLong(register: RegisterName): bigint;
401
+ getRegisterValueLong(register: RegisterName): string;
402
402
  /**
403
403
  * Registers a handler function for a specific event or condition.
404
404
  * @param name The name of the event or condition.
@@ -414,12 +414,17 @@ interface JsRiscV {
414
414
  * Gets the current value of the stack pointer in long format.
415
415
  * @returns The value of the stack pointer in long format.
416
416
  */
417
- stackPointerLong: bigint;
417
+ stackPointerLong: string;
418
418
  /**
419
419
  * Gets the current value of the program counter.
420
420
  * @returns The value of the program counter.
421
421
  */
422
422
  programCounter: number;
423
+ /**
424
+ * Gets the current value of the program counter in long format.
425
+ * @returns The value of the program counter in long format.
426
+ */
427
+ programCounterLong: string;
423
428
  /**
424
429
  * Gets the values of all registers.
425
430
  * @returns An array containing the register values. The order of the values is implementation defined.
@@ -429,7 +434,7 @@ interface JsRiscV {
429
434
  * Gets the values of all registers in long format.
430
435
  * @returns An array containing the register values in long format. The order of the values is implementation defined.
431
436
  */
432
- getRegistersValuesLong(): bigint[];
437
+ getRegistersValuesLong(): string[];
433
438
  /**
434
439
  * Gets the undo stack.
435
440
  * @returns An array of `JsBackStep` objects representing the history of the simulation.
package/dist/index.d.ts CHANGED
@@ -398,7 +398,7 @@ interface JsRiscV {
398
398
  * @param register The name of the register.
399
399
  * @returns The value of the register in long format.
400
400
  */
401
- getRegisterValueLong(register: RegisterName): bigint;
401
+ getRegisterValueLong(register: RegisterName): string;
402
402
  /**
403
403
  * Registers a handler function for a specific event or condition.
404
404
  * @param name The name of the event or condition.
@@ -414,12 +414,17 @@ interface JsRiscV {
414
414
  * Gets the current value of the stack pointer in long format.
415
415
  * @returns The value of the stack pointer in long format.
416
416
  */
417
- stackPointerLong: bigint;
417
+ stackPointerLong: string;
418
418
  /**
419
419
  * Gets the current value of the program counter.
420
420
  * @returns The value of the program counter.
421
421
  */
422
422
  programCounter: number;
423
+ /**
424
+ * Gets the current value of the program counter in long format.
425
+ * @returns The value of the program counter in long format.
426
+ */
427
+ programCounterLong: string;
423
428
  /**
424
429
  * Gets the values of all registers.
425
430
  * @returns An array containing the register values. The order of the values is implementation defined.
@@ -429,7 +434,7 @@ interface JsRiscV {
429
434
  * Gets the values of all registers in long format.
430
435
  * @returns An array containing the register values in long format. The order of the values is implementation defined.
431
436
  */
432
- getRegistersValuesLong(): bigint[];
437
+ getRegistersValuesLong(): string[];
433
438
  /**
434
439
  * Gets the undo stack.
435
440
  * @returns An array of `JsBackStep` objects representing the history of the simulation.