get bit from the wrong place
This commit is contained in:
parent
6f3fd9b219
commit
710912d150
|
@ -1,6 +1,6 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
processor::{get_bit, Cpu, Direction, Flags, Reg8, SplitRegister},
|
processor::{Cpu, Direction, Flags, Reg8, SplitRegister},
|
||||||
util::{clear_bit, set_bit},
|
util::{clear_bit, get_bit, set_bit},
|
||||||
};
|
};
|
||||||
|
|
||||||
impl Cpu {
|
impl Cpu {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
processor::{get_bit, Cpu, Direction, Flags, SplitRegister},
|
processor::{Cpu, Direction, Flags, SplitRegister},
|
||||||
util::{get_rotation_carry, rotate},
|
util::{get_bit, get_rotation_carry, rotate},
|
||||||
};
|
};
|
||||||
use std::ops::{BitAnd, BitOr};
|
use std::ops::{BitAnd, BitOr};
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
use minifb::Window;
|
use minifb::Window;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
processor::{
|
processor::memory::mmio::gpu::{
|
||||||
get_bit,
|
scale_buffer, Palette, TiledataArea, TILE_WINDOW_HEIGHT, TILE_WINDOW_HEIGHT_SCALED,
|
||||||
memory::mmio::gpu::{
|
TILE_WINDOW_WIDTH, TILE_WINDOW_WIDTH_SCALED,
|
||||||
scale_buffer, Palette, TiledataArea, TILE_WINDOW_HEIGHT, TILE_WINDOW_HEIGHT_SCALED,
|
|
||||||
TILE_WINDOW_WIDTH, TILE_WINDOW_WIDTH_SCALED,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
util::get_bit,
|
||||||
FACTOR,
|
FACTOR,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue