mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2024-12-21 12:29:46 +00:00
f8bc917601
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. |
||
---|---|---|
.. | ||
branch_c02_ref.oph | ||
branch_c02.bin | ||
branch_c02.oph | ||
longbranch_ref.oph | ||
longbranch.bin | ||
longbranch.oph | ||
test65c02.bin | ||
test65c02.oph | ||
test6510.bin | ||
test6510.oph | ||
testbase.bin | ||
testbase.oph | ||
testdata.bin | ||
testdata.oph |