Fixed the signed truncation of 36-bit values (so that "-34,359,738,368. - 1" correctly produces "34359738367. aka 0o377777777777"), added the proper the right-to-left parsing of unary operators (all two of them: negate and complement), changed the PDP-10 disassembler to honor the selected base when displaying opcodes, and updated all the number-to-string conversions to select an appropriate number of digits when rendering values without a specified number of digits.
This commit is contained in:
parent
822d400f27
commit
a6021441c3
13 changed files with 665 additions and 637 deletions
|
|
@ -617,7 +617,7 @@ class DebuggerPDP10 extends Debugger {
|
|||
*/
|
||||
toStrOffset(off)
|
||||
{
|
||||
return this.toStrBase(off);
|
||||
return this.toStrBase(off, 18);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -645,7 +645,7 @@ class DebuggerPDP10 extends Debugger {
|
|||
* ADDR_LIMIT is not derived from WORD_LIMIT; we're just taking advantage of the fact
|
||||
* that ADDR_LIMIT happens to be exactly half of WORD_LIMIT, and they are both powers of two.
|
||||
*/
|
||||
return Str.toOct(w / PDP10.ADDR_LIMIT, 6) + ' ' + Str.toOct(w % PDP10.ADDR_LIMIT, 6);
|
||||
return this.toStrBase(w / PDP10.ADDR_LIMIT, 18) + ' ' + this.toStrBase(w % PDP10.ADDR_LIMIT, 18);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue