diff --git a/assets_generation/resources/asm/opcodes.yml b/assets_generation/resources/asm/opcodes.yml index 1e0aee7a..c2c01eba 100644 --- a/assets_generation/resources/asm/opcodes.yml +++ b/assets_generation/resources/asm/opcodes.yml @@ -1987,6 +1987,23 @@ opcodes: doc: Floor ID. access: read + - code: 0xf829 + mnemonic: get_num_kills + doc: Returns the number of enemies a player has killed during the quest. + params: + - type: reg_tup_ref + reg_tup: + - type: dword + doc: Player slot. + access: read + - type: any + doc: Unused + - type: reg_tup_ref + reg_tup: + - type: dword + doc: Result register. + access: write + - code: 0xf82b mnemonic: unlock_door2 params: [{ type: dword }, { type: dword }] diff --git a/src/core/data_formats/asm/opcodes.ts b/src/core/data_formats/asm/opcodes.ts index 522795d3..4bf85f93 100644 --- a/src/core/data_formats/asm/opcodes.ts +++ b/src/core/data_formats/asm/opcodes.ts @@ -3698,12 +3698,12 @@ export const OP_GO_FLOOR = (OPCODES[0xf828] = new_opcode( ], undefined, )); -export const OP_UNKNOWN_F829 = (OPCODES[0xf829] = new_opcode( +export const OP_GET_NUM_KILLS = (OPCODES[0xf829] = new_opcode( 0xf829, - "unknown_f829", - undefined, - [], - undefined, + "get_num_kills", + "Returns the number of enemies a player has killed during the quest.", + [new_param({ kind: Kind.RegTupRef, register_tuples: [new_param(TYPE_DWORD, "Player slot.", ParamAccess.Read)] }, undefined, undefined), new_param(TYPE_ANY, "Unused", undefined), new_param({ kind: Kind.RegTupRef, register_tuples: [new_param(TYPE_DWORD, "Result register.", ParamAccess.Write)] }, undefined, undefined)], + undefined )); export const OP_UNKNOWN_F82A = (OPCODES[0xf82a] = new_opcode( 0xf82a,