A cross-assembler for the 6502 series of microprocessors.
Go to file
Michael C. Martin f8bc917601 A new 'correctness optimization': ExtendBranches.
This pass actually isn't an optimizer in that it produces larger
binaries when it triggers. However, the larger binaries created
will actually assemble properly.

The ExtendBranches pass detects Relative instructions (that is,
branches) that extend past the signed-8-bit range Relative instructions
permit, and replaces them with a branch-jump combination with identical
semantics.

Since this may be evidence of a program bug, Ophis will warn when
the optimization is triggered.

Due to similarities between this pass and UpdateLabels, both passes
have been refactored in passing.
2012-05-27 15:57:23 -07:00
bin Rewrite the driver script in Python; use os.path.realpath(). 2011-12-19 13:41:09 -06:00
doc Remove the deprecated and incomplete compatibility mode for Perl65. 2012-05-27 15:57:10 -07:00
site Initial import of the Ophis 1.0 distribution and supplemental material 2011-08-20 16:33:25 -07:00
src A new 'correctness optimization': ExtendBranches. 2012-05-27 15:57:23 -07:00
tests A new 'correctness optimization': ExtendBranches. 2012-05-27 15:57:23 -07:00
tools Initial import of the Ophis 1.0 distribution and supplemental material 2011-08-20 16:33:25 -07:00
.gitignore Add backup files to .gitignore 2012-05-27 15:57:22 -07:00
README Initial README commit 2011-08-20 16:11:17 -07:00

Ophis is a cross-assembler for the 65xx series of chips. It supports
the stock 6502 opcodes, the 65c02 extensions, and syntax for the
"undocumented opcodes" in the 6510 chip used on the Commodore
64. (Syntax for these opcodes matches those given in the VICE team's
documentation.)

Ophis is written in pure Python and should be highly portable.

It is provided under the MIT license, reproduced below:

---

Ophis, Copyright (C) 2002-2010 Michael Martin and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.