Merge pull request from towerofnix/counter-vm

Implement counter blocks
This commit is contained in:
kchadha 2018-04-09 13:55:35 -04:00 committed by GitHub
commit d177f4cd0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 1 deletions
src/serialization

View file

@ -859,6 +859,21 @@ const specMap = {
argMap: [
]
},
'COUNT': {
opcode: 'control_get_counter',
argMap: [
]
},
'INCR_COUNT': {
opcode: 'control_incr_counter',
argMap: [
]
},
'CLR_COUNT': {
opcode: 'control_clear_counter',
argMap: [
]
},
'touching:': {
opcode: 'sensing_touchingobject',
argMap: [