Difference between revisions of "Might and Magic: Secret of the Inner Sanctum: Control Codes"

From Data Crystal
Jump to: navigation, search
(Created page with "{{subpage|game=Might and Magic: Secret of the Inner Sanctum:Notes}} == Text == 20 05 F9 Yes / No Prompt 20 10 D2 Wait For Input 20 1E C8 Show Player Status Box 20 7A 98 Ma...")
 
 
Line 1: Line 1:
 
{{subpage|game=Might and Magic: Secret of the Inner Sanctum:Notes}}
 
{{subpage|game=Might and Magic: Secret of the Inner Sanctum:Notes}}
  
 +
Events are done in assembly. These are Subroutines that are related to events.
 
== Text ==
 
== Text ==
20 05 F9 Yes / No Prompt
+
20 38 C4 Input Prompt(Uses 0x028E for input amount; Always 0x0F in US but functionality still exist)
 +
 
 +
20 2B F9 Compare Answer
 +
 
 +
20 1E C8 Show Player Status Box
  
 
20 10 D2 Wait For Input
 
20 10 D2 Wait For Input
  
20 1E C8 Show Player Status Box
+
20 A8 D3 Choice Prompt (Uses 0x0265 as the amount of choices, 0x062E as a pointer base, and 0x0256 the response)
 +
 
 +
20 23 F8 Remove Text
 +
 
 +
20 BE F8 Start Text (Uses X and A registers for pointers)
 +
 
 +
20 FB F8 Continues Text (Uses X and A registers for pointers)
 +
 
 +
20 05 F9 Yes / No Prompt (Writes 1 or 2 to 0xF0 depending on answer)
 +
 
 +
20 74 F9 Start Text w/ sign (Uses X and A registers for pointers)
 +
 
 +
20 7A 98 Main Character Naming (Bank 0F only)
  
20 7A 98 Main Character Naming
+
== Graphics ==
 +
20 B3 A7 Portrait Window (Uses X registers for Sprite)
  
20 FB F8 Display Text
+
20 47 F9 Remove Portrait Window

Latest revision as of 11:34, 7 June 2020


Events are done in assembly. These are Subroutines that are related to events.

Text

20 38 C4 Input Prompt(Uses 0x028E for input amount; Always 0x0F in US but functionality still exist)

20 2B F9 Compare Answer

20 1E C8 Show Player Status Box

20 10 D2 Wait For Input

20 A8 D3 Choice Prompt (Uses 0x0265 as the amount of choices, 0x062E as a pointer base, and 0x0256 the response)

20 23 F8 Remove Text

20 BE F8 Start Text (Uses X and A registers for pointers)

20 FB F8 Continues Text (Uses X and A registers for pointers)

20 05 F9 Yes / No Prompt (Writes 1 or 2 to 0xF0 depending on answer)

20 74 F9 Start Text w/ sign (Uses X and A registers for pointers)

20 7A 98 Main Character Naming (Bank 0F only)

Graphics

20 B3 A7 Portrait Window (Uses X registers for Sprite)

20 47 F9 Remove Portrait Window