diff 06/ecl.xhtml @ 7:2a7b9d62c0c4

Fix details, and details and documentation for a few instructions
author Thibaut Girka <thib@sitedethib.com>
date Tue, 23 Aug 2011 11:58:03 +0200
parents b3644dff344c
children 79dfd9765a67
line wrap: on
line diff
--- a/06/ecl.xhtml
+++ b/06/ecl.xhtml
@@ -29,7 +29,7 @@ typedef struct {
     uint16_t <a href="ecl.xml">opcode</a>;
     uint16_t size; // Never less than 0xc.
     uint16_t rank_mask; // the first byte is always 0xff, and the second the mask of the ranks to which the instruction applies, 1 for easy, 8 for lunatic.
-    uint16_t param_mask; // If the last param is a stack, the number of bits at 0 indicates the number of items in the stack.
+    uint16_t param_mask; // Unused in EoSD, always 255. It is used in other Touhou games to indicate whether an argument is an "address" or not, though.
     unsigned char params[size-0xc];
 } thecl06_sub_t;
 </pre>
@@ -92,7 +92,7 @@ typedef struct {
 </pre>
 
 		<h3 id="type">Type</h3>
-		<p>Used in the game are: 0, 2, 4, 6 for the enemies (0x1c-long), 0xa for the 0x10-long instruction, and 8, 9 and 0xc for the 8-long one.</p>
+		<p>Used in the game are: 0, 2, 4, 6 for the enemies (0x1c-long), 0xa for the 0x10-long instruction, and 8, 9 and 0xc for the 8-long one. Type might be quite a misnomer since those are pretty much flags.</p>
 		<style type="text/css">
 			li.used {
 				font-weight: bold;
@@ -104,9 +104,9 @@ typedef struct {
 			<li class="used">mirrored enemy</li>
 			<li>mirrored enemy</li>
 			<li class="used">normal enemy</li>
-			<li>normal enemy</li>
+			<li>normal enemy (random placement)</li>
 			<li class="used">mirrored enemy</li>
-			<li>mirrored enemy</li>
+			<li>mirrored enemy (random placement)</li>
 			<li class="used">starts the msg (which?)</li>
 			<li class="used">nothing?</li>
 			<li class="used">crash!?</li>