Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
5fd09668
Commit
5fd09668
authored
11 years ago
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
Add MAP_ADD opcode to VM.
parent
bd25445a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/vm.c
+7
-0
7 additions, 0 deletions
py/vm.c
with
7 additions
and
0 deletions
py/vm.c
+
7
−
0
View file @
5fd09668
...
@@ -305,6 +305,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t *
...
@@ -305,6 +305,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t *
rt_store_map
(
sp
[
0
],
sp
[
-
2
],
sp
[
-
1
]);
rt_store_map
(
sp
[
0
],
sp
[
-
2
],
sp
[
-
1
]);
break
;
break
;
case
PYBC_MAP_ADD
:
DECODE_UINT
;
// I think it's guaranteed by the compiler that sp[unum + 1] is a map
rt_store_map
(
sp
[
unum
+
1
],
sp
[
0
],
sp
[
1
]);
sp
+=
2
;
break
;
case
PYBC_BUILD_SET
:
case
PYBC_BUILD_SET
:
DECODE_UINT
;
DECODE_UINT
;
obj1
=
rt_build_set
(
unum
,
sp
);
obj1
=
rt_build_set
(
unum
,
sp
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment