-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #15: add annotated output format
- Loading branch information
Showing
15 changed files
with
793 additions
and
489 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "customasm" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
edition = "2018" | ||
authors = ["Henrique Lorenzi <[email protected]>"] | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use crate::asm::BinaryBlock; | ||
|
||
|
||
pub struct Bank | ||
{ | ||
pub bank_name: String, | ||
pub bits: BinaryBlock | ||
} | ||
|
||
|
||
impl Bank | ||
{ | ||
pub fn new<S>(bank_name: S) -> Bank | ||
where S: Into<String> | ||
{ | ||
Bank | ||
{ | ||
bank_name: bank_name.into(), | ||
bits: BinaryBlock::new() | ||
} | ||
} | ||
} |
Oops, something went wrong.