summaryrefslogtreecommitdiff
path: root/npc/functions/bitwise.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/bitwise.txt')
-rw-r--r--npc/functions/bitwise.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/npc/functions/bitwise.txt b/npc/functions/bitwise.txt
index fd80024e..7d0047e8 100644
--- a/npc/functions/bitwise.txt
+++ b/npc/functions/bitwise.txt
@@ -73,17 +73,17 @@ function script get_nibble {
case 0:
.@s=0; .@m=0xF; break;
case 1:
- .@s=4; .@m=0XF0; break;
+ .@s=4; .@m=0xF0; break;
case 2:
- .@s=8; .@m=0XF00; break;
+ .@s=8; .@m=0xF00; break;
case 3:
- .@s=12; .@m=0XF000; break;
+ .@s=12; .@m=0xF000; break;
case 4:
- .@s=16; .@m=0XF0000; break;
+ .@s=16; .@m=0xF0000; break;
case 5:
- .@s=20; .@m=0XF00000; break;
+ .@s=20; .@m=0xF00000; break;
case 6:
- .@s=24; .@m=0XF000000; break;
+ .@s=24; .@m=0xF000000; break;
default:
Exception("Invalid Nibble: "+getarg(1), RB_DEFAULT, .@v);
}
@@ -99,11 +99,11 @@ function script get_byte {
case 0:
.@s=0; .@m=0xFF; break;
case 1:
- .@s=8; .@m=0XFF00; break;
+ .@s=8; .@m=0xFF00; break;
case 2:
- .@s=16; .@m=0XFF0000; break;
+ .@s=16; .@m=0xFF0000; break;
case 3:
- .@s=24; .@m=0X7F000000; break;
+ .@s=24; .@m=0x7F000000; break;
default:
Exception("Invalid Byte: "+getarg(1), RB_DEFAULT, .@v);
}
@@ -128,17 +128,17 @@ function script set_nibble {
case 0:
.@s=0; .@m=0xF; break;
case 1:
- .@s=4; .@m=0XF0; break;
+ .@s=4; .@m=0xF0; break;
case 2:
- .@s=8; .@m=0XF00; break;
+ .@s=8; .@m=0xF00; break;
case 3:
- .@s=12; .@m=0XF000; break;
+ .@s=12; .@m=0xF000; break;
case 4:
- .@s=16; .@m=0XF0000; break;
+ .@s=16; .@m=0xF0000; break;
case 5:
- .@s=20; .@m=0XF00000; break;
+ .@s=20; .@m=0xF00000; break;
case 6:
- .@s=24; .@m=0XF000000; break;
+ .@s=24; .@m=0xF000000; break;
default:
Exception("Invalid SNibble: "+getarg(2), RB_DEFAULT);
}
@@ -154,11 +154,11 @@ function script set_byte {
case 0:
.@s=0; .@m=0xFF; break;
case 1:
- .@s=8; .@m=0XFF00; break;
+ .@s=8; .@m=0xFF00; break;
case 2:
- .@s=16; .@m=0XFF0000; break;
+ .@s=16; .@m=0xFF0000; break;
case 3:
- .@s=24; .@m=0X7F000000; break;
+ .@s=24; .@m=0x7F000000; break;
default:
Exception("Invalid SByte: "+getarg(2), RB_DEFAULT);
}