diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-16 16:14:40 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-16 16:14:40 +0100 |
| commit | a3a630dfee207c111213d2cad85ceb983df7625a (patch) | |
| tree | 314d3c55e62f437596648704fbd7a81d2c332e44 /lib/xixanta/src/opcodes.rs | |
| parent | 161d7b406b7fba75a2057b8d9e780f521b9bc6bf (diff) | |
| download | tools.nes-a3a630dfee207c111213d2cad85ceb983df7625a.tar.gz tools.nes-a3a630dfee207c111213d2cad85ceb983df7625a.zip | |
Implement .def/.defined expressions
This can be combined with .if/.elsif statements just like any other
expression.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/opcodes.rs')
| -rw-r--r-- | lib/xixanta/src/opcodes.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xixanta/src/opcodes.rs b/lib/xixanta/src/opcodes.rs index 8488b77..80878ec 100644 --- a/lib/xixanta/src/opcodes.rs +++ b/lib/xixanta/src/opcodes.rs @@ -761,6 +761,8 @@ lazy_static! { functions.insert(String::from(".elsif"), Control { control_type: ControlType::Elsif, has_identifier: None, required_args: Some((1, 1)), touches_context: false, only_string: false }); functions.insert(String::from(".else"), Control { control_type: ControlType::Else, has_identifier: None, required_args: Some((0, 0)), touches_context: false, only_string: false }); functions.insert(String::from(".endif"), Control { control_type: ControlType::EndIf, has_identifier: None, required_args: Some((0, 0)), touches_context: false, only_string: false }); + functions.insert(String::from(".def"), Control { control_type: ControlType::Defined, has_identifier: None, required_args: Some((1, 1)), touches_context: false, only_string: false }); + functions.insert(String::from(".defined"), Control { control_type: ControlType::Defined, has_identifier: None, required_args: Some((1, 1)), touches_context: false, only_string: false }); functions }; |
