diff options
| author | take-cheeze <[email protected]> | 2018-10-29 19:34:56 +0900 |
|---|---|---|
| committer | take-cheeze <[email protected]> | 2018-10-29 19:34:56 +0900 |
| commit | 7d51a7bbf5439f294dd5b7281ebd960211dc4baa (patch) | |
| tree | 4b650e0f26fb42659e5d3f05bfb6813019471384 /doc/opcode.md | |
| parent | 557805da071e2dc685a7893107ca06a8e3787af0 (diff) | |
| download | mruby-7d51a7bbf5439f294dd5b7281ebd960211dc4baa.tar.gz mruby-7d51a7bbf5439f294dd5b7281ebd960211dc4baa.zip | |
Fix document
Diffstat (limited to 'doc/opcode.md')
| -rw-r--r-- | doc/opcode.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/opcode.md b/doc/opcode.md index fea0afafd..eab82a26f 100644 --- a/doc/opcode.md +++ b/doc/opcode.md @@ -84,17 +84,17 @@ with `"`, either `OP_EXT1` or `OP_EXT2` or `OP_EXT2` can be prefixed. |OP_RETURN_BLK' |B |return R(a) (in-block return) |OP_BREAK' |B |break R(a) |OP_BLKPUSH' |BS |R(a) = block (16=5:1:5:1:4) -|OP_ADD" |BB |R(a) = R(a)+R(a+1) (Syms[b]=:+) -|OP_ADDI" |BBB |R(a) = R(a)+mrb_int(c) (Syms[b]=:+) -|OP_SUB" |BB |R(a) = R(a)-R(a+1) (Syms[b]=:-) -|OP_SUBI" |BB |R(a) = R(a)-C (Syms[b]=:-) -|OP_MUL" |BB |R(a) = R(a)*R(a+1) (Syms[b]=:*) -|OP_DIV" |BB |R(a) = R(a)/R(a+1) (Syms[b]=:/) -|OP_EQ" |BB |R(a) = R(a)==R(a+1) (Syms[b]=:==) -|OP_LT" |BB |R(a) = R(a)<R(a+1) (Syms[b]=:<) -|OP_LE" |BB |R(a) = R(a)<=R(a+1) (Syms[b]=:<=) -|OP_GT" |BB |R(a) = R(a)>R(a+1) (Syms[b]=:>) -|OP_GE" |BB |R(a) = R(a)>=R(a+1) (Syms[b]=:>=) +|OP_ADD" |BB |R(a) = R(a)+R(a+1) +|OP_ADDI" |BBB |R(a) = R(a)+mrb_int(c) +|OP_SUB" |BB |R(a) = R(a)-R(a+1) +|OP_SUBI" |BB |R(a) = R(a)-C +|OP_MUL" |BB |R(a) = R(a)*R(a+1) +|OP_DIV" |BB |R(a) = R(a)/R(a+1) +|OP_EQ" |BB |R(a) = R(a)==R(a+1) +|OP_LT" |BB |R(a) = R(a)<R(a+1) +|OP_LE" |BB |R(a) = R(a)<=R(a+1) +|OP_GT" |BB |R(a) = R(a)>R(a+1) +|OP_GE" |BB |R(a) = R(a)>=R(a+1) |OP_ARRAY' |BB |R(a) = ary_new(R(a),R(a+1)..R(a+b)) |OP_ARRAY2" |BB |R(a) = ary_new(R(b),R(b+1)..R(b+c)) |OP_ARYCAT' |B |ary_cat(R(a),R(a+1)) |
