<feed xmlns='http://www.w3.org/2005/Atom'>
<title>toy-cpu-assembler/test/full-pipeline, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/'/>
<entry>
<title>Fix and add tests for NULL deref cases found by scan-build</title>
<updated>2019-08-11T05:22:20+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-11T05:22:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=2d2628df0001d2b643811dc69717c4afe70c4e31'/>
<id>2d2628df0001d2b643811dc69717c4afe70c4e31</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test recipe which skips valgrind</title>
<updated>2019-08-04T02:31:11+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-04T02:31:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=0e6f47211a0516cf2c96d2b9e89c0d841978c143'/>
<id>0e6f47211a0516cf2c96d2b9e89c0d841978c143</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Wrap tests in valgrind, clean up memory leaks</title>
<updated>2019-08-04T02:24:50+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-04T02:21:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=4b1f9e2cb436e74ce6084dbc35df5f052cb701bf'/>
<id>4b1f9e2cb436e74ce6084dbc35df5f052cb701bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lex: empty file is equivalent to EOL</title>
<updated>2019-08-04T00:01:13+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-03T12:20:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=8f182d5db075f4f4b939725065596f49bbd0d0d4'/>
<id>8f182d5db075f4f4b939725065596f49bbd0d0d4</id>
<content type='text'>
lex() returning NULL is used to convey an error case but having not allocated
any tokens in the case of an empty input file isn't an error case. This patch
causes lex to treat an empty token stream after successfully examining a file
as just a single EOL token. This is a fair approximation of an empty file for
this assembler's purposes, and results in the correct behaviour of an empty
output file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
lex() returning NULL is used to convey an error case but having not allocated
any tokens in the case of an empty input file isn't an error case. This patch
causes lex to treat an empty token stream after successfully examining a file
as just a single EOL token. This is a fair approximation of an empty file for
this assembler's purposes, and results in the correct behaviour of an empty
output file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add initial emulator implementation</title>
<updated>2019-08-03T12:13:59+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-03T12:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=9aa02bebf295ce9436451e0ce85db7717a6c9f81'/>
<id>9aa02bebf295ce9436451e0ce85db7717a6c9f81</id>
<content type='text'>
This emulator provides a rough way for binaries designed for this CPU to be
executed in a virtual/emulated CPU for testing purposes. This patch also adds
a small test setup for automated assembly, execution and checking of register
postconditions for programs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This emulator provides a rough way for binaries designed for this CPU to be
executed in a virtual/emulated CPU for testing purposes. This patch also adds
a small test setup for automated assembly, execution and checking of register
postconditions for programs.
</pre>
</div>
</content>
</entry>
<entry>
<title>input_bin: Refactor disassembly to allow input from buffers</title>
<updated>2019-08-03T10:54:31+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-03T10:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=89917ead30321ff430fa2eab8e8d96ef4178d994'/>
<id>89917ead30321ff430fa2eab8e8d96ef4178d994</id>
<content type='text'>
This somewhat complicates the previous file dissassembly logic, but paves
the way for disassembling instructions from buffered memory. This will be
required for emulation.

Also adds some test cases which nabbed bugs during the development and
testing of this change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This somewhat complicates the previous file dissassembly logic, but paves
the way for disassembling instructions from buffered memory. This will be
required for emulation.

Also adds some test cases which nabbed bugs during the development and
testing of this change.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor disassembler to move data through instruction list</title>
<updated>2019-08-03T00:44:12+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-08-01T11:12:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=28d6a88c02f10b75fb4c5cb46178d2ef71629494'/>
<id>28d6a88c02f10b75fb4c5cb46178d2ef71629494</id>
<content type='text'>
This refactors the disassembler into two stages with the list of struct
instruction (currently also output by the parse stage) as an "intermediate
language" between disassembly and assembler output. This should make these
units, especially the "machine code =&gt; IL" section, more reusable for future
soft emulation work.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This refactors the disassembler into two stages with the list of struct
instruction (currently also output by the parse stage) as an "intermediate
language" between disassembly and assembler output. This should make these
units, especially the "machine code =&gt; IL" section, more reusable for future
soft emulation work.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add simple loop disasm test</title>
<updated>2019-08-03T00:44:12+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-07-31T09:38:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=15b556038033821aa85392f4013d68999f14e231'/>
<id>15b556038033821aa85392f4013d68999f14e231</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make full test use unique-per-test file names</title>
<updated>2019-08-03T00:44:12+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-07-31T09:15:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=37872f036728a7bc9b1842e73599162c8a2ab822'/>
<id>37872f036728a7bc9b1842e73599162c8a2ab822</id>
<content type='text'>
This allows for inspection of test failures when the script is run with noclean
and the failing test is not the last test in the run.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows for inspection of test failures when the script is run with noclean
and the failing test is not the last test in the run.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename .test files to .asm</title>
<updated>2019-08-03T00:44:12+00:00</updated>
<author>
<name>David Phillips</name>
<email>david@sighup.nz</email>
</author>
<published>2019-07-29T10:43:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.nah.nz/toy-cpu-assembler/commit/?id=c836b81b2ee2ecb828c0fa0caecdf91b208dc43d'/>
<id>c836b81b2ee2ecb828c0fa0caecdf91b208dc43d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
