Skip to content

Conversation

@markdryan
Copy link
Owner

  • Fix a small bug in the find command.
  • Change the optimisation level from -SO2 to -SO3
  • Move the calibration code out of Specasm's loader into a separate machine code file.
  • Reorganise the unit tests so that most of them can be run on the Spectrum itself
  • The various optimisations reduce the size of the main Specasm binary by about 1.8Kb

To make it easier to run some of the unit tests on the very
spectrum itself!

Signed-off-by: Mark Ryan <[email protected]>
We weren't correctly initialising the map test structure.

Signed-off-by: Mark Ryan <[email protected]>
Just like the z88dk version does.

Signed-off-by: Mark Ryan <[email protected]>
The assembler tests can now be run directly on the spectrum.  The
test data is stored in data files created by the test_content_zx
tool.  It is expected to be in the same directory as unitzx.tap.

Signed-off-by: Mark Ryan <[email protected]>
So it can be more easily shared between the posix and zx test
programs.

Signed-off-by: Mark Ryan <[email protected]>
Part of this functionality is needed by the unit tests and the
posix tools (saimport,salink,sexport) and part is just needed
by the tools.  We don't want this part in the unit tests.

Signed-off-by: Mark Ryan <[email protected]>
We want to use peer_unit rather than peer_zx but we still
need the functions for writing strings to the screen and
clearing lines.  These functions have been move into
util_print_zx so that they can be re-used by both the unit
tests and the real zx applications.

Signed-off-by: Mark Ryan <[email protected]>
The README has been updated to explain how to build and run the
tests.
Which saves us a few bytes.

Signed-off-by: Mark Ryan <[email protected]>
We move the calibration code out of the DATA statements in the
BASIC loader and into a separate binary, which we place in the tap
file.  The saves about 200 bytes.

Signed-off-by: Mark Ryan <[email protected]>
This release contains a bug fix to the find function in the
editor, the binaries are rebuilt with the -O3 optimiser, and
the size of the BASIC loader has been reduced.

Signed-off-by: Mark Ryan <[email protected]>
@markdryan markdryan merged commit 095ffaa into main Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants