mirror of
https://github.com/mre/mos6502.git
synced 2025-02-09 10:31:52 +00:00
Fix build.
This commit is contained in:
parent
6520983de4
commit
404f8ba1e8
@ -39,5 +39,5 @@ name = "emu6502"
|
|||||||
name = "emu6502"
|
name = "emu6502"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.1.0"
|
log = "0.2.1"
|
||||||
|
|
||||||
|
@ -25,10 +25,17 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
|
#![feature(core)]
|
||||||
|
#![feature(hash)]
|
||||||
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
// Needed for debug! / log! macros
|
// Needed for debug! / log! macros
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
extern crate rustc_bitflags;
|
||||||
|
|
||||||
pub mod address;
|
pub mod address;
|
||||||
pub mod instruction;
|
pub mod instruction;
|
||||||
pub mod machine;
|
pub mod machine;
|
||||||
|
@ -730,8 +730,7 @@ impl Machine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unstable)]
|
impl std::fmt::Debug for Machine {
|
||||||
impl std::fmt::Show for Machine {
|
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
write!(f, "Machine Dump:\n\nAccumulator: {}",
|
write!(f, "Machine Dump:\n\nAccumulator: {}",
|
||||||
self.registers.accumulator)
|
self.registers.accumulator)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#![allow(unstable)]
|
|
||||||
|
|
||||||
use std::num::Int;
|
use std::num::Int;
|
||||||
|
|
||||||
pub struct RangeIncl<T: Int> {
|
pub struct RangeIncl<T: Int> {
|
||||||
|
@ -55,7 +55,6 @@ impl StatusArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub bitflags! {
|
pub bitflags! {
|
||||||
#[allow(unstable)]
|
|
||||||
#[derive(Show)]
|
#[derive(Show)]
|
||||||
flags Status: u8 {
|
flags Status: u8 {
|
||||||
const PS_NEGATIVE = 0b10000000,
|
const PS_NEGATIVE = 0b10000000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user