mirror of
https://github.com/mre/mos6502.git
synced 2024-11-28 07:49:19 +00:00
misc clippy fixes.
This commit is contained in:
parent
4b26e83529
commit
7328eb416a
@ -25,7 +25,7 @@
|
|||||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
// POSSIBILITY OF SUCH DAMAGE.
|
// POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
use crate::address::{Address, AddressDiff};
|
|
||||||
use crate::instruction::{self, DecodedInstr, Instruction, OpInput};
|
use crate::instruction::{self, DecodedInstr, Instruction, OpInput};
|
||||||
use crate::memory::Memory;
|
use crate::memory::Memory;
|
||||||
use crate::registers::{Registers, StackPointer, Status, StatusArgs};
|
use crate::registers::{Registers, StackPointer, Status, StatusArgs};
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
// POSSIBILITY OF SUCH DAMAGE.
|
// POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
use crate::address::Address;
|
|
||||||
use crate::address::AddressDiff;
|
|
||||||
use crate::cpu::CPU;
|
use crate::cpu::CPU;
|
||||||
|
|
||||||
// Abbreviations
|
// Abbreviations
|
||||||
@ -247,7 +247,7 @@ impl AddressingMode {
|
|||||||
// Add Y register to this address to get the final address
|
// Add Y register to this address to get the final address
|
||||||
// (Output: a 16-bit address)
|
// (Output: a 16-bit address)
|
||||||
let start = arr[0];
|
let start = arr[0];
|
||||||
let slice = memory.get_slice(u16::from(start), (2));
|
let slice = memory.get_slice(u16::from(start), 2);
|
||||||
OpInput::UseAddress(arr_to_addr(slice).wrapping_add(xextend(y)))
|
OpInput::UseAddress(arr_to_addr(slice).wrapping_add(xextend(y)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
// POSSIBILITY OF SUCH DAMAGE.
|
// POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
use crate::address::{Address, AddressDiff};
|
use crate::address::{Address};
|
||||||
use crate::num::ToPrimitive;
|
|
||||||
|
|
||||||
// JAM: We can probably come up with a better way to represent address ranges.
|
// JAM: We can probably come up with a better way to represent address ranges.
|
||||||
// Address range type?
|
// Address range type?
|
||||||
|
Loading…
Reference in New Issue
Block a user