added a create-project system to assembler, and fixed a couple of parsing bugs
This commit is contained in:
@@ -71,6 +71,30 @@ pub enum Register {
|
||||
Pcx,
|
||||
}
|
||||
|
||||
impl Register {
|
||||
#[must_use]
|
||||
pub fn general() -> Vec<Self> {
|
||||
vec![
|
||||
Self::Rg0,
|
||||
Self::Rg1,
|
||||
Self::Rg2,
|
||||
Self::Rg3,
|
||||
Self::Rg4,
|
||||
Self::Rg5,
|
||||
Self::Rg6,
|
||||
Self::Rg7,
|
||||
Self::Rg8,
|
||||
Self::Rg9,
|
||||
Self::Rga,
|
||||
Self::Rgb,
|
||||
Self::Rgc,
|
||||
Self::Rgd,
|
||||
Self::Rge,
|
||||
Self::Rgf,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Register {
|
||||
fn default() -> Self {
|
||||
Self::NoReg
|
||||
|
||||
Reference in New Issue
Block a user