-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add many updates and further development
- Loading branch information
1 parent
411dce9
commit 341e0eb
Showing
8 changed files
with
113 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,45 @@ | ||
//! ncurses-based TUI interactive debugger | ||
#[cfg(feature = "debugger")] | ||
mod language; | ||
#[allow(unknown_lints, useless_attribute, needless_lifetimes, match_same_arms, cyclomatic_complexity, clone_on_copy, type_complexity, dead_code, unused_comparisons, unused_label, absurd_extreme_comparisons)] | ||
#[cfg(feature = "debugger")] | ||
mod dbglanguage; | ||
|
||
#[cfg(feature = "debugger")] | ||
pub mod graphics; | ||
#[cfg(feature = "debugger")] mod tests; | ||
|
||
|
||
/* | ||
************************************************************************** | ||
* Dummy mods below * | ||
************************************************************************** | ||
*/ | ||
|
||
#[cfg(not(feature = "debugger"))] | ||
mod dbglanguage { | ||
//TODO: improve this if you can | ||
#[allow(non_snake_case, unused_variables)] | ||
#[allow(non_snake_case, unused_variables, dead_code)] | ||
pub fn parse_Input(input: &str) -> ! { | ||
panic!("Compile with --features=debugger to use the debugging language"); | ||
} | ||
} | ||
|
||
#[cfg(not(feature = "debugger"))] | ||
pub mod graphics { | ||
use cpu::*; | ||
pub struct Debugger { | ||
|
||
} | ||
|
||
#[allow(unused_variables, dead_code)] | ||
impl Debugger { | ||
pub fn new(gb: &Cpu) -> Debugger { | ||
panic!("Compile with --features=debugger to use the debugger") | ||
} | ||
|
||
pub fn step(&mut self, cpu: &mut Cpu) { | ||
panic!("Compile with --features=debugger to use the debugger") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters