mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Add global var index 0 value to enum.
This commit is contained in:
parent
63d9b0249a
commit
f3d50dbe5a
1 changed files with 3 additions and 2 deletions
|
@ -79,7 +79,8 @@ const Ev3ByteValue = {
|
|||
NUM8: 0x81, // = 0b1000-001 = 1 byte to follow
|
||||
NUM16: 0x82, // = 0b1000-010 = 2 bytes to follow
|
||||
NUM32: 0x83, // = 0b1000-011 = 4 bytes to follow
|
||||
GLOBAL8: 0xE1 // = 0b1110-001 = size of global var - 1 byte to follow
|
||||
GLOBAL8: 0xE1, // = 0b1110-001 = size of global var - 1 byte to follow
|
||||
GLOBAL_INDEX_0: 0x20 // = 0b00100000 = global var index "0"
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -738,7 +739,7 @@ class EV3 {
|
|||
cmds[2] = 33; // 0x21 ARRAY // TODO: document
|
||||
cmds[3] = 96; // 0x60 CHANGED // TODO: document
|
||||
cmds[4] = Ev3ByteValue.GLOBAL8;
|
||||
cmds[5] = 32; // 0x20 global var index "0" 0b00100000 // TODO: document
|
||||
cmds[5] = Ev3ByteValue.GLOBAL_INDEX_0;
|
||||
|
||||
// Command and payload lengths
|
||||
allocation = 33;
|
||||
|
|
Loading…
Reference in a new issue