Commit graph pcjs/modules/shared/lib/debugger.js
Author SHA1 Message Date
Jeff
e7988597c5 Changed the remainder operator from '%' to '^/', mainly because '%' must be allowed in MACRO-10 symbols instead, but also because '%' led one to believe it was a "mod" operator (it wasn't); added IFDEF support to the MACRO-10 Mini-Assembler; updated the Debugger's assemble command to recognize filenames with "KLM" extensions, too. 2017-03-31 09:37:38 -07:00
Jeff
1d1ac0cb7b The shared expression parser now adapts to the (critically) different precedence of MACRO-10 operators 2017-03-30 11:53:21 -07:00
Jeff
d5c48df9bc Added support for MACRO-10 literal collapsing; it's not super-aggressive, but it's more than adequate for what DEC's diagnostics require 2017-03-28 15:22:17 -07:00
Jeff
d13e7a5faf The expression parser now allows spaces inside expressions (a relaxation for certain MACRO-10 typos; eg, "- 1" where "-1" was expected) 2017-03-28 12:01:06 -07:00
Jeff
b2a6a06908 Fixed parsing of expressions with spaces 2017-03-28 09:17:09 -07:00
Jeff
6ad35d2d17 Added the ^L MACRO-10 unary zero-bit-counting operator, and updated the last blog post with expression parser differences (eg, interpretation of numbers with a decimal point) 2017-03-21 17:40:37 -07:00
Jeff
127ddb88b4 Added the unary + operator, and cleaned up the display of values from the expression parser 2017-03-21 12:47:43 -07:00
Jeff
a6021441c3 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. 2017-03-20 13:34:25 -07:00
Jeff
5d2a1ed16b Fixed limits on MACRO-10 ASCII and SIXBIT constants 2017-03-19 14:13:24 -07:00
Jeff
4cce2177f4 The recursive MACRO-10 test case (MACTEST1.MAC) found in the June 1972 MACRO-10 manual passes now 2017-03-19 14:03:49 -07:00
Jeff
fb83d1e503 More MACRO-10 parsing improvements 2017-03-19 12:03:45 -07:00
Jeff
1c3c9c9856 Added various MACRO-10 expression improvements 2017-03-18 17:12:54 -07:00
Jeff
abd17be706 Allow the debugger to switch to base 2 2017-03-17 11:20:26 -07:00
Jeff
9c96ec14ad Started executing basic PDP-10 instruction diagnostic #1 2017-03-17 00:01:49 -07:00
Jeff
01e9bcf0fe Fixed multiline ASCIZ MACRO-10 pseudo-op, and expressions with binary shift suffixes finally evaluate correctly in parseExpression() 2017-03-16 16:50:47 -07:00
Jeff
ab0dccd866 Added MACRO-10 work-arounds for numeric values with embedded binary shift counts 2017-03-16 12:45:19 -07:00
Jeff
6e0e489bee Cleaned up the expression parser, fixed some PDP-10 evaluation errors, and added support unary minus 2017-03-16 10:30:56 -07:00
Jeff
0e8e2ed4a2 Improved fixup handling for better MACRO-10 support 2017-03-16 00:32:30 -07:00
Jeff
3f8705ad98 Successfully assembled my first MACRO-10 source file (DAKAD.MAC) 2017-03-14 14:44:03 -07:00
Jeff
e1f37c8275 More MACRO-10 fixes 2017-03-13 17:44:01 -07:00
Jeff
05e09699dd Cleaned up expression evaluation for improved compatibility with MACRO-10 2017-03-12 11:44:38 -07:00
Jeff
e2e018af67 More MACRO-10 support 2017-03-11 23:30:06 -08:00
Jeff Parsons
c0de732f76 Changed toStrBase() to accept a number of bits rather than a number of bytes, because bytes aren't always 8 bits (see PDP-10) 2017-02-24 10:58:56 -08:00
Jeff Parsons
ba7de38fbf Created PDP-10 skeleton 2017-02-19 15:22:58 -08:00
Jeff Parsons
822ab39cbe Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
Jeff Parsons
f87161f5d6 v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
Jeff Parsons
ba8771adf1 Added some RK11 fixes for the 11/70 CPU EXERCISER, and some Debugger improvements for dumping address info ("da") 2016-12-08 17:05:03 -08:00
Jeff Parsons
9746891780 Debugger commands work with known IOPAGE symbols now 2016-12-05 15:38:46 -08:00
Jeff
d67e848973 Changed 11/70 machines to allocate RAM as a single chunk, and updated the 11/70 page on toggle-ins (/devices/pdp11/machine/1170/panel/debugger/README.md) 2016-11-03 14:42:35 -07:00
Jeff
b3bf213cd9 Enable the Debugger to get/set front panel switches as register SW 2016-11-02 19:41:29 -07:00
Jeff Parsons
3a7b769fa3 Added support to FileDump for generating binary dumps from MACRO11 listing (.lst) files, since I wasn't having much success with dumpobj or obj2hex.pl; note that this assumes a listing file produced by the macro11 cross-assembler written by Richard Krehbiel in 2001, updated in 2009, and maintained here: https://github.com/shattered/macro11. There are other versions of macro11 floating around, like the one in the simtools project that accompanies simh, and the one built for the Windows-based PDP11GUI app. 2016-10-15 11:05:38 -07:00
Jeff Parsons
b1f8fca2d9 Re-enabled source maps, at least for the PDP-11 emulators (for now) 2016-10-14 09:30:17 -07:00
Jeff
e24d507aa2 Removed useless version numbers and dates from .js file headers 2016-10-06 16:22:24 -07:00
Jeff
d90d10ea52 Moved PDP-11 console I/O to SerialPort component 2016-10-04 14:02:39 -07:00
Jeff
98081c6a6d Allow the PDP-11 debugger to use parentheses for sub-expressions 2016-09-29 09:38:17 -07:00
Jeff
44a2ec9f03 Fixed Debugger memory editing and register handling, tidied up some flag operations, and removed more now-unnecessary address checks in cpustate 2016-09-29 09:11:25 -07:00
Jeff
eb5aaa5d66 Strip leading zeros from selected debugger constants (typically immediate values) 2016-09-27 12:53:36 -07:00
Jeff
3497466113 Cleaned up interrupt handling, register initialization, MMU initialization, etc 2016-09-26 16:53:37 -07:00
Jeff Parsons
a15e222076 Added support for a Debugger "base" option that presets the default base (eg, 8, 10, 16) for most numeric input/output 2016-09-19 16:43:07 -07:00
Jeff Parsons
1df54a338f Assorted PDP-11 debugger changes 2016-09-19 16:30:08 -07:00
Jeff Parsons
d8856ac8bd Making some headway on the PDP-11 debugger (finally) 2016-09-16 14:53:05 -07:00
Jeff Parsons
1265104e6d Added support for converting numbers to/from octal, along with improved support for binary numbers 2016-09-15 18:23:09 -07:00
Jeff Parsons
375ddc12f3 Factored parseAddrReference() 2016-09-15 09:15:43 -07:00
Jeff Parsons
5398064ec4 Started Keys factoring 2016-09-15 07:59:12 -07:00
Jeff Parsons
e5c5a8e6be Some more Debugger factoring 2016-09-14 21:11:57 -07:00
Jeff Parsons
a8bb0c7841 First stab at factoring some common Debugger functionality into a shared component 2016-09-14 15:36:38 -07:00