Skip to content

Commit d6f9b41

Browse files
committed
Report unimplemented registers using hex values; NB sometimes see "0x-1" -- signedness issue
1 parent 35d660b commit d6f9b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/peripherals/peripheral.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ export class BasePeripheral implements Peripheral {
3434
) {}
3535

3636
readUint32(offset: number) {
37-
this.warn(`Unimplemented peripheral read from ${offset.toString(16)}`);
37+
this.warn(`Unimplemented peripheral read from 0x${offset.toString(16)}`);
3838
if (offset > 0x1000) {
3939
this.warn('Unimplemented read from peripheral in the atomic operation region');
4040
}
4141
return 0xffffffff;
4242
}
4343

4444
writeUint32(offset: number, value: number) {
45-
this.warn(`Unimplemented peripheral write to ${offset.toString(16)}: ${value}`);
45+
this.warn(`Unimplemented peripheral write to 0x${offset.toString(16)}: 0x${value.toString(16)}`);
4646
}
4747

4848
writeUint32Atomic(offset: number, value: number, atomicType: number) {

0 commit comments

Comments
 (0)