<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ndwiki.org/index.php?action=history&amp;feed=atom&amp;title=README-DDT</id>
	<title>README-DDT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ndwiki.org/index.php?action=history&amp;feed=atom&amp;title=README-DDT"/>
	<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=README-DDT&amp;action=history"/>
	<updated>2026-05-06T11:52:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=README-DDT&amp;diff=3644&amp;oldid=prev</id>
		<title>Roger: Created page with &quot;=DDT= * DEBUGGING. * DISASSEMBLY. * TRACING.  Functions to help debug and develop the nd100em has been included in its functionality. This document will try describe how each...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=README-DDT&amp;diff=3644&amp;oldid=prev"/>
		<updated>2016-08-13T14:21:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=DDT= * DEBUGGING. * DISASSEMBLY. * TRACING.  Functions to help debug and develop the nd100em has been included in its functionality. This document will try describe how each...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=DDT=&lt;br /&gt;
* DEBUGGING.&lt;br /&gt;
* DISASSEMBLY.&lt;br /&gt;
* TRACING.&lt;br /&gt;
&lt;br /&gt;
Functions to help debug and develop the nd100em has been included in its functionality.&lt;br /&gt;
This document will try describe how each of those subsystems work/dump info and possibly&lt;br /&gt;
postprocessing of that and tools needed.&lt;br /&gt;
&lt;br /&gt;
==DEBUGGING==&lt;br /&gt;
&lt;br /&gt;
If you set debug=1 in the config file, nd100em will produce a file called debug.log,&lt;br /&gt;
where simple information can be dumped out from any routines that need to.&lt;br /&gt;
&lt;br /&gt;
==DISASSEMBLY==&lt;br /&gt;
===Tracing disassembler===&lt;br /&gt;
&lt;br /&gt;
If you set disasm=1 in the config file, nd100em will internally build a structure&lt;br /&gt;
of the running program, so basically it also becomes a tracing disassembler. It tracks&lt;br /&gt;
if an address is used as data or code, and tags it accordingly. At the end of program&lt;br /&gt;
execution, it will dump this structure into a disassembly file, with extra comments&lt;br /&gt;
containing things like what address accessed a data word, labels relative jumps etc.&lt;br /&gt;
It currently can only handle code without paging active.&lt;br /&gt;
&lt;br /&gt;
Output is: &amp;lt;addr&amp;gt; &amp;lt;word&amp;gt; &amp;lt;possible label&amp;gt; &amp;lt;code|UNKN:|DATA:&amp;gt; &amp;lt;comment&amp;gt;&lt;br /&gt;
&lt;br /&gt;
comment field can be: &lt;br /&gt;
* From what address was this data accessed&lt;br /&gt;
* Alternative interpretion as code instead of data&lt;br /&gt;
* To what label this jump goes, note: only tracks first jump&lt;br /&gt;
&lt;br /&gt;
Some examples of how it might look are:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
005072    044003          UNKN: &amp;#039;H&amp;#039;          % LDA 3&lt;br /&gt;
005073    174375          UNKN:           % BSET ONE 170 DA&lt;br /&gt;
005074    146142          UNKN: &amp;#039;b&amp;#039;          % RADD CLD SL DP&lt;br /&gt;
005075    000000          DATA:                                 % 004773 005020 004773 &lt;br /&gt;
005076    170420    L00004 SAA 20                          &lt;br /&gt;
005077    164303          IOX 303                         &lt;br /&gt;
005100    164313          IOX 313                         &lt;br /&gt;
005101    164403          IOX 403                         &lt;br /&gt;
005102    164413          IOX 413                         &lt;br /&gt;
005103    164433          IOX 433                         &lt;br /&gt;
005104    044005          LDA 5                           &lt;br /&gt;
005105    164303          IOX 303                         &lt;br /&gt;
005106    164313          IOX 313                         &lt;br /&gt;
005107    164403          IOX 403                         &lt;br /&gt;
005110    146142          RADD CLD SL DP                  % L00005 &lt;br /&gt;
005111    144004          DATA:                                 % 005104 004703 004714 &lt;br /&gt;
005112    000001          DATA:                                 % 000377 005113 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
000340    020040          DATA: &amp;#039; &amp;#039;&amp;#039; &amp;#039;                          % 004476 004504 &lt;br /&gt;
000341    047125          DATA: &amp;#039;N&amp;#039;&amp;#039;U&amp;#039;                          % 004476 004504 &lt;br /&gt;
000342    046502          DATA: &amp;#039;M&amp;#039;&amp;#039;B&amp;#039;                          % 004476 004504 &lt;br /&gt;
000343    042522          DATA: &amp;#039;E&amp;#039;&amp;#039;R&amp;#039;                          % 004476 004504 &lt;br /&gt;
000344    051440          DATA: &amp;#039;S&amp;#039;&amp;#039; &amp;#039;                          % 004476 004504 &lt;br /&gt;
000345    035040          DATA: &amp;#039;:&amp;#039;&amp;#039; &amp;#039;                          % 004476 004504 &lt;br /&gt;
000346    023400          DATA: &amp;#039;&amp;#039;&amp;#039;                             % 004476 &lt;br /&gt;
000347    006412          UNKN:           % STA ,X ,B 12&lt;br /&gt;
000350    044523          UNKN: &amp;#039;I&amp;#039;&amp;#039;S&amp;#039;          % LDA ,B 123&lt;br /&gt;
000351    020111          UNKN: &amp;#039; &amp;#039;&amp;#039;I&amp;#039;          % STD 111&lt;br /&gt;
000352    052040          UNKN: &amp;#039;T&amp;#039;&amp;#039; &amp;#039;          % LDT ,X 40&lt;br /&gt;
000353    040440          UNKN: &amp;#039;A&amp;#039;&amp;#039; &amp;#039;          % MIN ,B 40&lt;br /&gt;
000354    047055          UNKN: &amp;#039;N&amp;#039;&amp;#039;-&amp;#039;          % LDA I ,X 55&lt;br /&gt;
000355    030460          UNKN: &amp;#039;1&amp;#039;&amp;#039;0&amp;#039;          % STF ,B 60&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TRACING==&lt;br /&gt;
&lt;br /&gt;
In flux at the moment, so this will be documented later more accurately.&lt;/div&gt;</summary>
		<author><name>Roger</name></author>
	</entry>
</feed>