diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:14 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:14 +0100 |
commit | 38764943e5fc61c424c018068dc7f6790dddf147 (patch) | |
tree | 65a0f5a00c91436b30e580f16365557437d61da7 /src/instset.c | |
parent | 0e7b2e49585e3725736ae380cbd2dfb28fea5093 (diff) |
Format repass.
Diffstat (limited to 'src/instset.c')
-rw-r--r-- | src/instset.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/instset.c b/src/instset.c index 2ab127a..94c3df7 100644 --- a/src/instset.c +++ b/src/instset.c @@ -4,15 +4,17 @@ boolean sal_is_inst(uint32 word) { - /* Test if a given 32 bit integer contains a valid Salis instruction. + /* + * Test if a given 32 bit integer contains a valid Salis instruction. */ return word < INST_COUNT; } static boolean is_in_between(uint32 inst, uint32 low, uint32 hi) { - /* Test whether a Salis instruction lies within a given range. This is - useful for identifying template instructions and/or register modifiers. + /* + * Test whether a Salis instruction lies within a given range. This is + * useful for identifying template instructions and/or register modifiers. */ assert(sal_is_inst(inst)); assert(sal_is_inst(low)); @@ -22,8 +24,9 @@ static boolean is_in_between(uint32 inst, uint32 low, uint32 hi) boolean sal_is_template(uint32 inst) { - /* Test whether a given instruction is a template element - (i.e. NOP0 or NOP1). + /* + * Test whether a given instruction is a template element (i.e. NOP0 or + * NOP1). */ assert(sal_is_inst(inst)); return is_in_between(inst, NOP0, NOP1); @@ -31,8 +34,9 @@ boolean sal_is_template(uint32 inst) boolean sal_is_mod(uint32 inst) { - /* Test whether a given instruction is a register modifier - (i.e. MODA, MODB, MODC or MODD). + /* + * Test whether a given instruction is a register modifier (i.e. MODA, MODB, + * MODC or MODD). */ assert(sal_is_inst(inst)); return is_in_between(inst, MODA, MODD); |