Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document more opcodes thanks to 32th System
  • Loading branch information
Priw8 committed Oct 19, 2019
1 parent f4539e0 commit 0f294b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
10 changes: 8 additions & 2 deletions content/modding/ins.md
@@ -1,6 +1,12 @@
## ECL instruction table
Note: this is based on information from [here](https://thwiki.cc/%E8%84%9A%E6%9C%AC%E5%AF%B9%E7%85%A7%E8%A1%A8/ECL).
Note2: this is very incomplete as of now.
Based on:
- [THBWiki](https://thwiki.cc/%E8%84%9A%E6%9C%AC%E5%AF%B9%E7%85%A7%E8%A1%A8/ECL)
- [Dass' documentation](https://en.touhouwiki.net/wiki/User:Mddass/Touhou_File_Format_Specification/ECL/V2.2)
- My own research
- 32th System's research
- Dai's research

Note: this is incomplete as of now.

[html]
Select game version:
Expand Down
18 changes: 9 additions & 9 deletions js/ecl/ins.js
Expand Up @@ -2558,17 +2558,17 @@ const INS_13 = {
number: 638,
game: 13,
args: "S",
argnames: ["a"],
description: "[c=red]Unknown.[/c]",
documented: false
argnames: ["n"],
description: "Adds %1 to score (or subtracts if %1 is negative). There is no lower boundary check, so if this causes score to go below 0, and underflow happens.",
documented: true
},
639: {
number: 639,
game: 13,
args: "S",
argnames: ["a"],
description: "[c=red]Unknown.[/c]",
documented: false
argnames: ["id"],
description: "Same as [ins=632,13], except it sets an unknown flag to 1 ([ins=632,13] sets it to 0)",
documented: true
},
640: {
number: 640,
Expand Down Expand Up @@ -2747,9 +2747,9 @@ const INS_14 = {
number: 641,
game: 14,
args: "S",
argnames: ["a"],
description: "[c=red]Unknown, %1 is supposedly `etId`.[/c]",
documented: false
argnames: ["etId"],
description: "Subtracts 1 from the index used by [ins=611,13] and [ins=612,13], unless it's already 0. This basically changes where the next transformation will be appended.",
documented: true
}
};

Expand Down

0 comments on commit 0f294b0

Please sign in to comment.