Skip to content
Clément Gallet edited this page Jun 30, 2014 · 14 revisions

List of commands you can obtain with aiming byte 0x41 and mold 4: 32, 33, 42, 44, 48, 51, 52, 56, 58, 62, 64, 65, 66, 68, 72, 74, 75, 80, 83, 86, 88, 92, 95, 96, 101, 103, 104, 109, 110, 112, 113, 114, 115, 120, 124, 128, 129, 132, 134, 135, 137, 138, 140, 145, 146, 151, 152, 155, 156, 159, 162, 165, 167, 172, 173, 175, 179, 180, 182, 188, 191, 192, 201, 203, 205, 206, 208, 212, 222, 223, 224, 227, 230, 231, 232, 235, 239, 240, 244, 245, 246, 248, 249, 250, 251, 252, 254, 255

Function C1/7CC8 is jumping to a specific command subroutine whose pointer is computed based on command id:

C1/7CD4:	BD2E20  	LDA $202E,X     (Command id for slot x)
C1/7CD7:	99AF2B  	STA $2BAF,Y
C1/7CDA:	297F    	AND #$7F
C1/7CDC:	0A      	ASL A
C1/7CDD:	AA      	TAX 
C1/7CDE:	7CE97C  	JMP ($7CE9,X)	(Jump to function for player Command)
Clone this wiki locally