aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-14 23:38:47 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-14 23:38:47 +0100
commite9564ef4324b1740c8e9306d59162e39fb62f9d2 (patch)
treec8a7e46c77e1bb6dbc7e27b0f90f8b726cffa47b
parent6aded1e9501634bfffc46f87f65fb605bc1c41d5 (diff)
downloadtools.nes-e9564ef4324b1740c8e9306d59162e39fb62f9d2.tar.gz
tools.nes-e9564ef4324b1740c8e9306d59162e39fb62f9d2.zip
Add .byt as a synonym for .byte
Not that I like it, but there are existing code which already uses this. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--lib/xixanta/src/opcodes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xixanta/src/opcodes.rs b/lib/xixanta/src/opcodes.rs
index 7f9da45..f27129d 100644
--- a/lib/xixanta/src/opcodes.rs
+++ b/lib/xixanta/src/opcodes.rs
@@ -741,6 +741,7 @@ lazy_static! {
functions.insert(String::from(".endmacro"), Control { control_type: ControlType::EndMacro, has_identifier: None, required_args: Some((0, 0)), touches_context: true });
functions.insert(String::from(".segment"), Control { control_type: ControlType::Segment, has_identifier: None, required_args: Some((1, 1)), touches_context: false });
functions.insert(String::from(".byte"), Control { control_type: ControlType::Byte, has_identifier: None, required_args: None, touches_context: false });
+ functions.insert(String::from(".byt"), Control { control_type: ControlType::Byte, has_identifier: None, required_args: None, touches_context: false });
functions.insert(String::from(".db"), Control { control_type: ControlType::Byte, has_identifier: None, required_args: None, touches_context: false });
functions.insert(String::from(".word"), Control { control_type: ControlType::Word, has_identifier: None, required_args: None, touches_context: false });
functions.insert(String::from(".dw"), Control { control_type: ControlType::Word, has_identifier: None, required_args: None, touches_context: false });