mirror of
https://github.com/mre/mos6502.git
synced 2024-11-28 22:51:26 +00:00
Fix modules.
This commit is contained in:
parent
1f896fb4e9
commit
2e2ba84d61
@ -25,7 +25,6 @@
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
mod address {
|
||||
#[deriving(PartialEq)]
|
||||
#[deriving(Eq)]
|
||||
#[deriving(PartialOrd)]
|
||||
@ -52,4 +51,3 @@ mod address {
|
||||
Address::min() <= *self && *self <= Address::max()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,9 +25,9 @@
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
mod registers;
|
||||
mod address;
|
||||
mod memory;
|
||||
use registers::Registers;
|
||||
use address::Address;
|
||||
use memory::Memory;
|
||||
|
||||
struct Machine {
|
||||
registers: Registers,
|
@ -26,6 +26,9 @@
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
mod machine;
|
||||
mod registers;
|
||||
mod address;
|
||||
mod memory;
|
||||
|
||||
fn main() {
|
||||
let machine = machine::Machine::new();
|
||||
|
@ -25,9 +25,6 @@
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
mod address;
|
||||
|
||||
mod memory {
|
||||
use address::Address;
|
||||
|
||||
pub struct Memory {
|
||||
@ -66,4 +63,3 @@ mod memory {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
mod registers {
|
||||
// Each status flag should be 0 or 1.
|
||||
pub struct Status {
|
||||
pub carry: u8,
|
||||
@ -62,4 +61,3 @@ mod registers {
|
||||
|
||||
impl Registers {
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user