adventuring / adventuring/ChaosFight

Find and optimize unnecessary cmp/cpx/cpy # 0 before beq/bne

オープン
#1,317 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Assembly
スター
1
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

Find occurrences of `cmp # 0` / `cpx # 0` / `cpy # 0` that are suspect because the Z flag is already set by previous operations (lda, adc, sbc, etc.) and a compare to literal zero is unnecessary before beq/bne. These can be optimized by removing the compare instruction.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。