1
0
mirror of https://github.com/mre/mos6502.git synced 2024-11-28 22:51:26 +00:00

Fix modules.

This commit is contained in:
Andrew Keeton 2014-09-27 22:09:31 -04:00
parent 1f896fb4e9
commit 2e2ba84d61
5 changed files with 85 additions and 90 deletions

View File

@ -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()
}
}
}

View File

@ -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,

View File

@ -26,6 +26,9 @@
// POSSIBILITY OF SUCH DAMAGE.
mod machine;
mod registers;
mod address;
mod memory;
fn main() {
let machine = machine::Machine::new();

View File

@ -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 {
}
}
}
}

View File

@ -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 {
}
}