Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
内容
2件の修正になりましたが、相互に関係するので1件の PR となっているのをご承知おきください。
手動でのテスト、既存のテストが問題なく実行できることまでは確認しています。
申し訳ないですがMZT用のテストコードは追加できていません。
MZT 出力のオプション追加と実装
ヘルプ出力も含めて関連しそうな箇所は修正しているつもりです。
修正内容に不備、過不足ありましたら訂正お願いします。
CMT 出力の不具合修正
不具合内容
現在の処理では CMTヘッダのアドレスに実行開始アドレスを設定しているため、
格納先頭アドレス≠実行開始アドレスの場合に不整合が発生します。
不具合再現例
このアセンブル結果は次のとおりになります。
ここで開始アドレスが 1208 になっているため、ローダは 1208 からプログラムを配置します。
これは 1200 となるのが正しいです。