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