mirror of
https://github.com/mre/mos6502.git
synced 2024-06-01 14:41:38 +00:00
remove num
This commit is contained in:
parent
801f65bb23
commit
c96b00a459
|
@ -43,11 +43,6 @@ name = "mos6502"
|
|||
bitflags = "2.3.3"
|
||||
log = "0.4.19"
|
||||
|
||||
[dependencies.num]
|
||||
version = "0.4.0"
|
||||
# no_std support
|
||||
default-features = false
|
||||
|
||||
[features]
|
||||
decimal_mode = []
|
||||
default = ["decimal_mode"]
|
||||
|
|
|
@ -995,7 +995,6 @@ mod tests {
|
|||
|
||||
use super::*;
|
||||
use crate::memory::Memory as Ram;
|
||||
use num::range_inclusive;
|
||||
|
||||
#[test]
|
||||
fn dont_panic_for_overflow() {
|
||||
|
@ -1585,8 +1584,8 @@ mod tests {
|
|||
fn exclusive_or_test() {
|
||||
let mut cpu = CPU::new(Ram::new());
|
||||
|
||||
for a_before in range_inclusive(0u8, 255u8) {
|
||||
for val in range_inclusive(0u8, 255u8) {
|
||||
for a_before in 0u8..=255u8 {
|
||||
for val in 0u8..=255u8 {
|
||||
cpu.execute_instruction((Instruction::LDA, OpInput::UseImmediate(a_before)));
|
||||
|
||||
cpu.exclusive_or(val);
|
||||
|
@ -1613,8 +1612,8 @@ mod tests {
|
|||
fn inclusive_or_test() {
|
||||
let mut cpu = CPU::new(Ram::new());
|
||||
|
||||
for a_before in range_inclusive(0u8, 255u8) {
|
||||
for val in range_inclusive(0u8, 255u8) {
|
||||
for a_before in 0u8..=255u8 {
|
||||
for val in 0u8..=255u8 {
|
||||
cpu.execute_instruction((Instruction::LDA, OpInput::UseImmediate(a_before)));
|
||||
|
||||
cpu.inclusive_or(val);
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
extern crate num;
|
||||
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user