Alternate Assembler

Software questions and issues with the FV-1

Moderator: frank

Post Reply
ndf
Posts: 1
Joined: Tue Jun 20, 2017 5:43 am

Alternate Assembler

Post by ndf » Mon Jun 26, 2017 8:50 am

For anyone looking for an alternative assembler to the one provided with SpinIDE, here's a simple python script I made up: asfv1

This assembler is pure python3, so it should run on anything that can run python. It mostly replicates behaviour of the SpinIDE, with a few minor caveats. The biggest difference is that you can specify integer values for all real operands, and you can specify real arguments for any of the 24bit accumulator instructions.

To install, run:

pip3 install asfv1

Or download from PyPi:

https://pypi.python.org/pypi/asfv1

Also available from github:

https://github.com/ndf-zz/asfv1

It runs on the command line:

--

$ asfv1 -h
usage: asfv1 [-h] [-q] [-c] [-n] [-p {0,1,2,3,4,5,6,7}] [-b]
[infile] [outfile]

Assemble a single FV-1 DSP program.

positional arguments:
infile program source file
outfile assembled output file

optional arguments:
-h, --help show this help message and exit
-q, --quiet suppress warnings
-c, --clamp clamp out of range values without error
-n, --noskip don't skip unused instruction space
-p {0,1,2,3,4,5,6,7} target program number (hex output)
-b, --binary write binary output instead of hex

--

If anyone really wants a windows package, let me know - should be possible. Any comments or suggestions are very welcome.

I've also got a working python/libusb script to read/write and verify programs on the devel board, but it's a little messy and requires some more work to get it working reliably.

Post Reply