mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-06 08:08:28 +08:00
12 lines
114 KiB
JavaScript
12 lines
114 KiB
JavaScript
!function(e){var i={};function n(o){if(i[o])return i[o].exports;var d=i[o]={i:o,l:!1,exports:{}};return e[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=i,n.d=function(e,i,o){n.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,i){if(1&i&&(e=n(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var d in e)n.d(o,d,function(i){return e[i]}.bind(null,d));return o},n.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(i,"a",i),i},n.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},n.p="",n(n.s="yL6M")}({"8hIv":function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const o=new DataView(new ArrayBuffer(4));i.reinterpret_i32_as_f32=function(e){return o.setInt32(0,e),o.getFloat32(0)},i.reinterpret_f32_as_i32=function(e){return o.setFloat32(0,e),o.getInt32(0)}},GGSb:function(e,i,n){var o,d;
|
|
/*!
|
|
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
* js-logger may be freely distributed under the MIT license.
|
|
*/
|
|
/*!
|
|
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
* js-logger may be freely distributed under the MIT license.
|
|
*/
|
|
!function(v){"use strict";var t,_={};_.VERSION="1.6.0";var w={},O=function(e,i){return function(){return i.apply(e,arguments)}},s=function(){var e,i,n=arguments,o=n[0];for(i=1;i<n.length;i++)for(e in n[i])e in o||!n[i].hasOwnProperty(e)||(o[e]=n[i][e]);return o},r=function(e,i){return{value:e,name:i}};_.TRACE=r(1,"TRACE"),_.DEBUG=r(2,"DEBUG"),_.INFO=r(3,"INFO"),_.TIME=r(4,"TIME"),_.WARN=r(5,"WARN"),_.ERROR=r(8,"ERROR"),_.OFF=r(99,"OFF");var a=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};a.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var i=this.context.filterLevel;return e.value>=i.value},trace:function(){this.invoke(_.TRACE,arguments)},debug:function(){this.invoke(_.DEBUG,arguments)},info:function(){this.invoke(_.INFO,arguments)},warn:function(){this.invoke(_.WARN,arguments)},error:function(){this.invoke(_.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"end"])},invoke:function(e,i){t&&this.enabledFor(e)&&t(i,s({level:e},this.context))}};var u,E=new a({filterLevel:_.OFF});(u=_).enabledFor=O(E,E.enabledFor),u.trace=O(E,E.trace),u.debug=O(E,E.debug),u.time=O(E,E.time),u.timeEnd=O(E,E.timeEnd),u.info=O(E,E.info),u.warn=O(E,E.warn),u.error=O(E,E.error),u.log=u.info,_.setHandler=function(e){t=e},_.setLevel=function(e){for(var i in E.setLevel(e),w)w.hasOwnProperty(i)&&w[i].setLevel(e)},_.getLevel=function(){return E.getLevel()},_.get=function(e){return w[e]||(w[e]=new a(s({name:e},E.context)))},_.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,i){i.name&&e.unshift("["+i.name+"]")};var i={},n=function(e,i){Function.prototype.apply.call(e,console,i)};return"undefined"==typeof console?function(){}:function(o,d){o=Array.prototype.slice.call(o);var v,t=console.log;d.level===_.TIME?(v=(d.name?"["+d.name+"] ":"")+o[0],"start"===o[1]?console.time?console.time(v):i[v]=(new Date).getTime():console.timeEnd?console.timeEnd(v):n(t,[v+": "+((new Date).getTime()-i[v])+"ms"])):(d.level===_.WARN&&console.warn?t=console.warn:d.level===_.ERROR&&console.error?t=console.error:d.level===_.INFO&&console.info?t=console.info:d.level===_.DEBUG&&console.debug?t=console.debug:d.level===_.TRACE&&console.trace&&(t=console.trace),e.formatter(o,d),n(t,o))}},_.useDefaults=function(e){_.setLevel(e&&e.defaultLevel||_.DEBUG),_.setHandler(_.createDefaultHandler(e))},void 0===(d="function"==typeof(o=_)?o.call(i,n,i,e):o)||(e.exports=d)}()},JLhb:function(e,i,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});const d=o(n("GGSb")),v=n("8hIv"),t=n("ZBxL"),_=n("lg9k"),w=n("ZPAt"),O=d.default.get("quest_editor/scripting/assembly");i.assemble=function(e,i=!1){return new s(e,i).assemble()};class s{constructor(e,i){this.assembly=e,this.manual_stack=i,this.lexer=new t.AssemblyLexer,this.first_section_marker=!0}assemble(){this.line_no=1,this.object_code=[],this.warnings=[],this.errors=[],this.labels=new Set,this.section=_.SegmentType.Instructions,this.first_section_marker=!0;for(const e of this.assembly){if(this.tokens=this.lexer.tokenize_line(e),this.tokens.length>0){const e=this.tokens.shift();switch(e.type){case t.TokenType.Label:this.parse_label(e);break;case t.TokenType.CodeSection:case t.TokenType.DataSection:case t.TokenType.StringSection:this.parse_section(e);break;case t.TokenType.Int:this.section===_.SegmentType.Data?this.parse_bytes(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.TokenType.String:this.section===_.SegmentType.String?this.parse_string(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.TokenType.Ident:this.section===_.SegmentType.Instructions?this.parse_instruction(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.TokenType.InvalidSection:this.add_error({col:e.col,length:e.len,message:"Invalid section type."});break;case t.TokenType.InvalidIdent:this.add_error({col:e.col,length:e.len,message:"Invalid identifier."});break;default:this.add_error({col:e.col,length:e.len,message:"Unexpected token."})}}this.line_no++}return{object_code:this.object_code,warnings:this.warnings,errors:this.errors}}add_instruction(e,i){if(this.segment)this.segment.type===_.SegmentType.Instructions?this.segment.instructions.push(new _.Instruction(e,i)):O.error(`Line ${this.line_no}: Expected instructions segment.`);else{const e={labels:[],type:_.SegmentType.Instructions,instructions:[]};this.segment=e,this.object_code.push(e)}}add_bytes(e){if(this.segment)if(this.segment.type===_.SegmentType.Data){const i=new ArrayBuffer(this.segment.data.byteLength+e.length),n=new Uint8Array(i);n.set(new Uint8Array(this.segment.data)),n.set(new Uint8Array(e),this.segment.data.byteLength),this.segment.data=i}else O.error(`Line ${this.line_no}: Expected data segment.`);else{const i={labels:[],type:_.SegmentType.Data,data:new Uint8Array(e).buffer};this.segment=i,this.object_code.push(i)}}add_string(e){if(this.segment)this.segment.type===_.SegmentType.String?this.segment.value+=e:O.error(`Line ${this.line_no}: Expected string segment.`);else{const i={labels:[],type:_.SegmentType.String,value:e};this.segment=i,this.object_code.push(i)}}add_error({col:e,length:i,message:n}){this.errors.push({line_no:this.line_no,col:e,length:i,message:n})}add_warning({col:e,length:i,message:n}){this.warnings.push({line_no:this.line_no,col:e,length:i,message:n})}parse_label({col:e,len:i,value:n}){this.labels.has(n)&&this.add_error({col:e,length:i,message:"Duplicate label."}),this.labels.add(n);const o=this.tokens.shift();switch(this.section){case _.SegmentType.Instructions:this.segment={type:_.SegmentType.Instructions,labels:[n],instructions:[]},this.object_code.push(this.segment),o&&(o.type===t.TokenType.Ident?this.parse_instruction(o):this.add_error({col:o.col,length:o.len,message:"Expected opcode mnemonic."}));break;case _.SegmentType.Data:this.segment={type:_.SegmentType.Data,labels:[n],data:new ArrayBuffer(0)},this.object_code.push(this.segment),o&&(o.type===t.TokenType.Int?this.parse_bytes(o):this.add_error({col:o.col,length:o.len,message:"Expected bytes."}));break;case _.SegmentType.String:this.segment={type:_.SegmentType.String,labels:[n],value:""},this.object_code.push(this.segment),o&&(o.type===t.TokenType.String?this.parse_string(o):this.add_error({col:o.col,length:o.len,message:"Expected a string."}))}}parse_section({type:e,col:i,len:n}){let o;switch(e){case t.TokenType.CodeSection:o=_.SegmentType.Instructions;break;case t.TokenType.DataSection:o=_.SegmentType.Data;break;case t.TokenType.StringSection:o=_.SegmentType.String}this.section!==o||this.first_section_marker||this.add_warning({col:i,length:n,message:"Unnecessary section marker."}),this.section=o,this.first_section_marker=!1;const d=this.tokens.shift();d&&this.add_error({col:d.col,length:d.len,message:"Unexpected token."})}parse_instruction({col:e,len:i,value:n}){const o=w.OPCODES_BY_MNEMONIC.get(n);if(o){const i=-1!==o.params.findIndex(e=>e.type.kind===w.Kind.ILabelVar||e.type.kind===w.Kind.RegRefVar),n=this.manual_stack&&o.stack===w.StackInteraction.Pop?0:o.params.length;let d=0;for(const e of this.tokens)e.type!==t.TokenType.ArgSeparator&&d++;const _=this.tokens[this.tokens.length-1];let s=_?_.col+_.len-e:0;const r=[];if(!i&&d!==n)return void this.add_error({col:e,length:s,message:`Expected ${n} argument${1===n?"":"s"}, got ${d}.`});if(i&&d<n)return void this.add_error({col:e,length:s,message:`Expected at least ${n} argument${1===n?"":"s"}, got ${d}.`});if(o.stack!==w.StackInteraction.Pop){if(!this.parse_args(o.params,r,!1))return}else{const e=[];if(!this.parse_args(o.params,e,!0))return;for(let i=0;i<o.params.length;i++){const n=o.params[i],d=e[i];if(null==d)continue;const[_,s]=d;if(s.type===t.TokenType.Register)n.type.kind===w.Kind.RegTupRef?this.add_instruction(w.Opcode.ARG_PUSHB,[_]):this.add_instruction(w.Opcode.ARG_PUSHR,[_]);else switch(n.type.kind){case w.Kind.Byte:case w.Kind.RegRef:case w.Kind.RegTupRef:this.add_instruction(w.Opcode.ARG_PUSHB,[_]);break;case w.Kind.Word:case w.Kind.Label:case w.Kind.ILabel:case w.Kind.DLabel:case w.Kind.SLabel:this.add_instruction(w.Opcode.ARG_PUSHW,[_]);break;case w.Kind.DWord:this.add_instruction(w.Opcode.ARG_PUSHL,[_]);break;case w.Kind.Float:this.add_instruction(w.Opcode.ARG_PUSHL,[{value:v.reinterpret_f32_as_i32(_.value),size:4}]);break;case w.Kind.String:this.add_instruction(w.Opcode.ARG_PUSHS,[_]);break;default:O.error(`Line ${this.line_no}: Type ${w.Kind[n.type.kind]} not implemented.`)}}}this.add_instruction(o,r.map(([e])=>e))}else this.add_error({col:e,length:i,message:"Unknown instruction."})}parse_args(e,i,n){let o=!0,d=!0,v=0;for(let _=0;_<this.tokens.length;_++){const O=this.tokens[_],s=e[v];if(O.type===t.TokenType.ArgSeparator)d?this.add_error({col:O.col,length:O.len,message:"Expected an argument."}):s.type.kind!==w.Kind.ILabelVar&&s.type.kind!==w.Kind.RegRefVar&&v++,d=!0;else{if(!d){const e=this.tokens[_-1],i=e.col+e.len;this.add_error({col:i,length:O.col-i,message:"Expected a comma."})}let e;switch(d=!1,O.type){case t.TokenType.Int:switch(s.type.kind){case w.Kind.Byte:e=!0,this.parse_int(1,O,i);break;case w.Kind.Word:case w.Kind.Label:case w.Kind.ILabel:case w.Kind.DLabel:case w.Kind.SLabel:case w.Kind.ILabelVar:e=!0,this.parse_int(2,O,i);break;case w.Kind.DWord:e=!0,this.parse_int(4,O,i);break;case w.Kind.Float:e=!0,i.push([{value:O.value,size:4},O]);break;default:e=!1}break;case t.TokenType.Float:(e=s.type.kind===w.Kind.Float)&&i.push([{value:O.value,size:4},O]);break;case t.TokenType.Register:e=n||s.type.kind===w.Kind.RegRef||s.type.kind===w.Kind.RegRefVar||s.type.kind===w.Kind.RegTupRef,this.parse_register(O,i);break;case t.TokenType.String:(e=s.type.kind===w.Kind.String)&&i.push([{value:O.value,size:2*O.value.length+2},O]);break;default:e=!1}if(!e){let e;switch(o=!1,s.type.kind){case w.Kind.Byte:e="a 8-bit integer";break;case w.Kind.Word:e="a 16-bit integer";break;case w.Kind.DWord:e="a 32-bit integer";break;case w.Kind.Float:e="a float";break;case w.Kind.Label:e="a label";break;case w.Kind.ILabel:case w.Kind.ILabelVar:e="an instruction label";break;case w.Kind.DLabel:e="a data label";break;case w.Kind.SLabel:e="a string label";break;case w.Kind.String:e="a string";break;case w.Kind.RegRef:case w.Kind.RegRefVar:case w.Kind.RegTupRef:e="a register reference"}e?this.add_error({col:O.col,length:O.len,message:`Expected ${e}.`}):this.add_error({col:O.col,length:O.len,message:"Unexpected token."})}}}return this.tokens=[],o}parse_int(e,i,n){const{value:o,col:d,len:v}=i,t=8*e,_=-Math.pow(2,t-1),w=Math.pow(2,t)-1;o<_?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be less than ${_}.`}):o>w?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be greater than ${w}.`}):n.push([{value:o,size:e},i])}parse_register(e,i){const{col:n,len:o,value:d}=e;d>255?this.add_error({col:n,length:o,message:"Invalid register reference, expected r0-r255."}):i.push([{value:d,size:1},e])}parse_bytes(e){const i=[];let n=e,o=0;for(;n.type===t.TokenType.Int&&(n.value<0?this.add_error({col:n.col,length:n.len,message:"Unsigned 8-bit integer can't be less than 0."}):n.value>255&&this.add_error({col:n.col,length:n.len,message:"Unsigned 8-bit integer can't be greater than 255."}),i.push(n.value),o<this.tokens.length);)n=this.tokens[o++];o<this.tokens.length&&this.add_error({col:n.col,length:n.len,message:"Expected an unsigned 8-bit integer."}),this.add_bytes(i)}parse_string(e){const i=this.tokens.shift();i&&this.add_error({col:i.col,length:i.len,message:"Unexpected token."}),this.add_string(e.value)}}},ZBxL:function(e,i,n){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.Int=0]="Int",e[e.Float=1]="Float",e[e.InvalidNumber=2]="InvalidNumber",e[e.Register=3]="Register",e[e.Label=4]="Label",e[e.CodeSection=5]="CodeSection",e[e.DataSection=6]="DataSection",e[e.StringSection=7]="StringSection",e[e.InvalidSection=8]="InvalidSection",e[e.String=9]="String",e[e.UnterminatedString=10]="UnterminatedString",e[e.Ident=11]="Ident",e[e.InvalidIdent=12]="InvalidIdent",e[e.ArgSeparator=13]="ArgSeparator"}(o=i.TokenType||(i.TokenType={}));i.AssemblyLexer=class{constructor(){this.index=0,this._mark=0}get col(){return this.index+1}tokenize_line(e){this.line=e,this.index=0,this._mark=0;const i=[];for(;this.has_next();){const e=this.peek();let n;if("/"===e){if(this.skip(),"/"===this.peek())break;this.back()}/\s/.test(e)?this.skip():(/[-\d]/.test(e)?n=this.tokenize_number_or_label():","===e?(n={type:o.ArgSeparator,col:this.col,len:1},this.skip()):n="."===e?this.tokenize_section():'"'===e?this.tokenize_string():"r"===e?this.tokenize_register_or_ident():this.tokenize_ident(),i.push(n))}return i}has_next(){return this.index<this.line.length}next(){return this.line.charAt(this.index++)}peek(){return this.line.charAt(this.index)}skip(){this.index++}back(){this.index--}mark(){this._mark=this.index}marked_len(){return this.index-this._mark}slice(){return this.line.slice(this._mark,this.index)}eat_rest_of_token(){for(;this.has_next();){const e=this.next();if(/[\s,]/.test(e)){this.back();break}}}tokenize_number_or_label(){this.mark();const e=this.col;this.skip();let i=!1;for(;this.has_next();){const n=this.peek();if("."===n||"e"===n)return this.tokenize_float(e);if("x"===n)return this.tokenize_hex_number(e);if(":"===n){i=!0,this.skip();break}if(/[\s,]/.test(n))break;this.skip()}const n=parseInt(this.slice(),10);return{type:Number.isInteger(n)?i?o.Label:o.Int:o.InvalidNumber,col:e,len:this.marked_len(),value:n}}tokenize_hex_number(e){this.eat_rest_of_token();const i=this.slice();if(/^0x[\da-fA-F]+$/.test(i)){const n=parseInt(i,16);if(Number.isInteger(n))return{type:o.Int,col:e,len:this.marked_len(),value:n}}return{type:o.InvalidNumber,col:e,len:this.marked_len()}}tokenize_float(e){this.eat_rest_of_token();const i=this.slice();if(/^-?\d+(\.\d+)?(e-?\d+)?$/.test(i)){const n=parseFloat(i);if(Number.isFinite(n))return{type:o.Float,col:e,len:this.marked_len(),value:n}}return{type:o.InvalidNumber,col:e,len:this.marked_len()}}tokenize_register_or_ident(){const e=this.col;this.skip(),this.mark();let i=!1;for(;this.has_next();){const e=this.peek();if(!/\d/.test(e))break;i=!0,this.skip()}if(i){const i=parseInt(this.slice(),10);return{type:o.Register,col:e,len:this.marked_len()+1,value:i}}return this.back(),this.tokenize_ident()}tokenize_section(){const e=this.col;for(this.mark();this.has_next()&&!/\s/.test(this.peek());)this.skip();switch(this.slice()){case".code":return{type:o.CodeSection,col:e,len:5};case".data":return{type:o.DataSection,col:e,len:5};case".string":return{type:o.StringSection,col:e,len:7};default:return{type:o.InvalidSection,col:e,len:this.marked_len()}}}tokenize_string(){const e=this.col;this.mark(),this.skip();let i,n=!1,d=!1;e:for(;this.has_next();)switch(this.next()){case"\\":n=!0;break;case'"':if(!n){d=!0;break e}n=!1;break;default:n=!1}return i=d?JSON.parse(this.slice()):JSON.parse(this.slice()+'"'),{type:d?o.String:o.UnterminatedString,col:e,len:this.marked_len(),value:i}}tokenize_ident(){const e=this.col;for(this.mark();this.has_next();){const e=this.peek();if(/[\s,]/.test(e))break;if("/"===e){if(this.skip(),"/"===this.peek()){this.back();break}}else this.skip()}const i=this.slice(),n=/^[a-z][a-z0-9_=<>!]*$/.test(i)?o.Ident:o.InvalidIdent;return n===o.Ident?{type:n,col:e,len:this.marked_len(),value:i}:{type:n,col:e,len:this.marked_len()}}}},ZPAt:function(e,i,n){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(o=i.Kind||(i.Kind={}));const d={kind:o.Any},v={kind:o.Byte},t={kind:o.Word},_={kind:o.DWord},w={kind:o.Float},O={kind:o.Label},s={kind:o.ILabel},r={kind:o.DLabel},a={kind:o.SLabel},u={kind:o.String},E={kind:o.ILabelVar},l={kind:o.RegRef},N={kind:o.RegRefVar},p={kind:o.Pointer};var P,R;i.MIN_SIGNED_DWORD_VALUE=-Math.pow(2,31),i.MAX_SIGNED_DWORD_VALUE=Math.pow(2,31)-1,i.MIN_UNSIGNED_DWORD_VALUE=0,i.MAX_UNSIGNED_DWORD_VALUE=Math.pow(2,32)-1,i.MIN_DWORD_VALUE=i.MIN_SIGNED_DWORD_VALUE,i.MAX_DWORD_VALUE=i.MAX_UNSIGNED_DWORD_VALUE,function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(P=i.ParamAccess||(i.ParamAccess={}));class S{constructor(e,i,n){this.type=e,this.doc=i,this.access=n}}i.Param=S,function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(R=i.StackInteraction||(i.StackInteraction={})),i.OPCODES=[],i.OPCODES_BY_MNEMONIC=new Map;class g{constructor(e,i,n,o,d){this.code=e,this.mnemonic=i,this.doc=n,this.size=this.code<256?1:2,this.params=o,this.stack=d}}g.NOP=i.OPCODES[0]=new g(0,"nop","No operation, does nothing.",[],void 0),g.RET=i.OPCODES[1]=new g(1,"ret","Returns control to caller.",[],void 0),g.SYNC=i.OPCODES[2]=new g(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),g.EXIT=i.OPCODES[3]=new g(3,"exit",void 0,[new S(_,void 0,void 0)],R.Pop),g.THREAD=i.OPCODES[4]=new g(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new S(s,void 0,void 0)],void 0),g.VA_START=i.OPCODES[5]=new g(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),g.VA_END=i.OPCODES[6]=new g(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),g.VA_CALL=i.OPCODES[7]=new g(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new S(s,void 0,void 0)],void 0),g.LET=i.OPCODES[8]=new g(8,"let","Sets the first register's value to second one's value.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.LETI=i.OPCODES[9]=new g(9,"leti","Sets a register to the given value.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.LETB=i.OPCODES[10]=new g(10,"letb","Sets a register to the given value.",[new S({kind:o.RegTupRef,register_tuples:[new S(v,void 0,P.Write)]},void 0,void 0),new S(v,void 0,void 0)],void 0),g.LETW=i.OPCODES[11]=new g(11,"letw","Sets a register to the given value.",[new S({kind:o.RegTupRef,register_tuples:[new S(t,void 0,P.Write)]},void 0,void 0),new S(t,void 0,void 0)],void 0),g.LETA=i.OPCODES[12]=new g(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new S({kind:o.RegTupRef,register_tuples:[new S(p,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.LETO=i.OPCODES[13]=new g(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new S({kind:o.RegTupRef,register_tuples:[new S(p,void 0,P.Write)]},void 0,void 0),new S(O,void 0,void 0)],void 0),g.UNKNOWN_0E=i.OPCODES[14]=new g(14,"unknown_0e",void 0,[],void 0),g.UNKNOWN_0F=i.OPCODES[15]=new g(15,"unknown_0f",void 0,[],void 0),g.SET=i.OPCODES[16]=new g(16,"set","Sets a register to 1.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.CLEAR=i.OPCODES[17]=new g(17,"clear","Sets a register to 0.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.REV=i.OPCODES[18]=new g(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.ReadWrite)]},void 0,void 0)],void 0),g.GSET=i.OPCODES[19]=new g(19,"gset",void 0,[new S(t,void 0,void 0)],void 0),g.GCLEAR=i.OPCODES[20]=new g(20,"gclear",void 0,[new S(t,void 0,void 0)],void 0),g.GREV=i.OPCODES[21]=new g(21,"grev",void 0,[new S(t,void 0,void 0)],void 0),g.GLET=i.OPCODES[22]=new g(22,"glet",void 0,[new S(t,void 0,void 0)],void 0),g.GGET=i.OPCODES[23]=new g(23,"gget","Sets a register to value of the given flag.",[new S(t,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(t,void 0,P.Write)]},void 0,void 0)],void 0),g.ADD=i.OPCODES[24]=new g(24,"add",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.ADDI=i.OPCODES[25]=new g(25,"addi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.SUB=i.OPCODES[26]=new g(26,"sub",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.SUBI=i.OPCODES[27]=new g(27,"subi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.MUL=i.OPCODES[28]=new g(28,"mul",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.MULI=i.OPCODES[29]=new g(29,"muli",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.DIV=i.OPCODES[30]=new g(30,"div",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.DIVI=i.OPCODES[31]=new g(31,"divi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.AND=i.OPCODES[32]=new g(32,"and",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.ANDI=i.OPCODES[33]=new g(33,"andi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.OR=i.OPCODES[34]=new g(34,"or",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.ORI=i.OPCODES[35]=new g(35,"ori",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.XOR=i.OPCODES[36]=new g(36,"xor",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.XORI=i.OPCODES[37]=new g(37,"xori",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.MOD=i.OPCODES[38]=new g(38,"mod",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.MODI=i.OPCODES[39]=new g(39,"modi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.JMP=i.OPCODES[40]=new g(40,"jmp",void 0,[new S(s,void 0,void 0)],void 0),g.CALL=i.OPCODES[41]=new g(41,"call",void 0,[new S(s,void 0,void 0)],void 0),g.JMP_ON=i.OPCODES[42]=new g(42,"jmp_on",void 0,[new S(s,void 0,void 0),new S(N,void 0,P.Read)],void 0),g.JMP_OFF=i.OPCODES[43]=new g(43,"jmp_off",void 0,[new S(s,void 0,void 0),new S(N,void 0,P.Read)],void 0),g.JMP_E=i.OPCODES[44]=new g(44,"jmp_=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_E=i.OPCODES[45]=new g(45,"jmpi_=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_NE=i.OPCODES[46]=new g(46,"jmp_!=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_NE=i.OPCODES[47]=new g(47,"jmpi_!=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_G=i.OPCODES[48]=new g(48,"ujmp_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_G=i.OPCODES[49]=new g(49,"ujmpi_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_G=i.OPCODES[50]=new g(50,"jmp_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_G=i.OPCODES[51]=new g(51,"jmpi_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_L=i.OPCODES[52]=new g(52,"ujmp_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_L=i.OPCODES[53]=new g(53,"ujmpi_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_L=i.OPCODES[54]=new g(54,"jmp_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_L=i.OPCODES[55]=new g(55,"jmpi_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_GE=i.OPCODES[56]=new g(56,"ujmp_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_GE=i.OPCODES[57]=new g(57,"ujmpi_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_GE=i.OPCODES[58]=new g(58,"jmp_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_GE=i.OPCODES[59]=new g(59,"jmpi_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_LE=i.OPCODES[60]=new g(60,"ujmp_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_LE=i.OPCODES[61]=new g(61,"ujmpi_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_LE=i.OPCODES[62]=new g(62,"jmp_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_LE=i.OPCODES[63]=new g(63,"jmpi_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.SWITCH_JMP=i.OPCODES[64]=new g(64,"switch_jmp",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(E,void 0,void 0)],void 0),g.SWITCH_CALL=i.OPCODES[65]=new g(65,"switch_call",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(E,void 0,void 0)],void 0),g.STACK_PUSH=i.OPCODES[66]=new g(66,"stack_push",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.STACK_POP=i.OPCODES[67]=new g(67,"stack_pop",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.STACK_PUSHM=i.OPCODES[68]=new g(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new S(l,void 0,P.Read),new S(_,void 0,void 0)],void 0),g.STACK_POPM=i.OPCODES[69]=new g(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new S(l,void 0,P.Write),new S(_,void 0,void 0)],void 0),g.UNKNOWN_46=i.OPCODES[70]=new g(70,"unknown_46",void 0,[],void 0),g.UNKNOWN_47=i.OPCODES[71]=new g(71,"unknown_47",void 0,[],void 0),g.ARG_PUSHR=i.OPCODES[72]=new g(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Push),g.ARG_PUSHL=i.OPCODES[73]=new g(73,"arg_pushl","Pushes the given value onto the stack.",[new S(_,void 0,void 0)],R.Push),g.ARG_PUSHB=i.OPCODES[74]=new g(74,"arg_pushb","Pushes the given value onto the stack.",[new S(v,void 0,void 0)],R.Push),g.ARG_PUSHW=i.OPCODES[75]=new g(75,"arg_pushw","Pushes the given value onto the stack.",[new S(t,void 0,void 0)],R.Push),g.ARG_PUSHA=i.OPCODES[76]=new g(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Push),g.ARG_PUSHO=i.OPCODES[77]=new g(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new S(O,void 0,void 0)],R.Push),g.ARG_PUSHS=i.OPCODES[78]=new g(78,"arg_pushs","Pushes the given value onto the stack.",[new S(u,void 0,void 0)],R.Push),g.UNKNOWN_4F=i.OPCODES[79]=new g(79,"unknown_4f",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.MESSAGE=i.OPCODES[80]=new g(80,"message",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.LIST=i.OPCODES[81]=new g(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new S({kind:o.RegTupRef,register_tuples:[new S(v,void 0,P.Write)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.FADEIN=i.OPCODES[82]=new g(82,"fadein",void 0,[],void 0),g.FADEOUT=i.OPCODES[83]=new g(83,"fadeout",void 0,[],void 0),g.SE=i.OPCODES[84]=new g(84,"se",void 0,[new S(_,void 0,void 0)],R.Pop),g.BGM=i.OPCODES[85]=new g(85,"bgm",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_56=i.OPCODES[86]=new g(86,"unknown_56",void 0,[],void 0),g.UNKNOWN_57=i.OPCODES[87]=new g(87,"unknown_57",void 0,[],void 0),g.ENABLE=i.OPCODES[88]=new g(88,"enable",void 0,[new S(_,void 0,void 0)],R.Pop),g.DISABLE=i.OPCODES[89]=new g(89,"disable",void 0,[new S(_,void 0,void 0)],R.Pop),g.WINDOW_MSG=i.OPCODES[90]=new g(90,"window_msg",void 0,[new S(u,void 0,void 0)],R.Pop),g.ADD_MSG=i.OPCODES[91]=new g(91,"add_msg",void 0,[new S(u,void 0,void 0)],R.Pop),g.MESEND=i.OPCODES[92]=new g(92,"mesend",void 0,[],void 0),g.GETTIME=i.OPCODES[93]=new g(93,"gettime",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.WINEND=i.OPCODES[94]=new g(94,"winend",void 0,[],void 0),g.UNKNOWN_5F=i.OPCODES[95]=new g(95,"unknown_5f",void 0,[],void 0),g.NPC_CRT_V3=i.OPCODES[96]=new g(96,"npc_crt_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_STOP=i.OPCODES[97]=new g(97,"npc_stop",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_PLAY=i.OPCODES[98]=new g(98,"npc_play",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_KILL=i.OPCODES[99]=new g(99,"npc_kill",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_NONT=i.OPCODES[100]=new g(100,"npc_nont",void 0,[],void 0),g.NPC_TALK=i.OPCODES[101]=new g(101,"npc_talk",void 0,[],void 0),g.NPC_CRP_V3=i.OPCODES[102]=new g(102,"npc_crp_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read),new S(d,void 0,P.Read),new S(d,void 0,P.Read),new S(s,void 0,P.Read),new S(d,void 0,P.Read),new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_67=i.OPCODES[103]=new g(103,"unknown_67",void 0,[],void 0),g.CREATE_PIPE=i.OPCODES[104]=new g(104,"create_pipe",void 0,[new S(_,void 0,void 0)],R.Pop),g.P_HPSTAT_V3=i.OPCODES[105]=new g(105,"p_hpstat_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.P_DEAD_V3=i.OPCODES[106]=new g(106,"p_dead_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,"Player slot.",void 0)],R.Pop),g.P_DISABLEWARP=i.OPCODES[107]=new g(107,"p_disablewarp",void 0,[],void 0),g.P_ENABLEWARP=i.OPCODES[108]=new g(108,"p_enablewarp",void 0,[],void 0),g.P_MOVE_V3=i.OPCODES[109]=new g(109,"p_move_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.P_LOOK=i.OPCODES[110]=new g(110,"p_look",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_6F=i.OPCODES[111]=new g(111,"unknown_6f",void 0,[],void 0),g.P_ACTION_DISABLE=i.OPCODES[112]=new g(112,"p_action_disable",void 0,[],void 0),g.P_ACTION_ENABLE=i.OPCODES[113]=new g(113,"p_action_enable",void 0,[],void 0),g.DISABLE_MOVEMENT1=i.OPCODES[114]=new g(114,"disable_movement1",void 0,[new S(_,void 0,void 0)],R.Pop),g.ENABLE_MOVEMENT1=i.OPCODES[115]=new g(115,"enable_movement1",void 0,[new S(_,void 0,void 0)],R.Pop),g.P_NONCOL=i.OPCODES[116]=new g(116,"p_noncol",void 0,[],void 0),g.P_COL=i.OPCODES[117]=new g(117,"p_col",void 0,[],void 0),g.P_SETPOS=i.OPCODES[118]=new g(118,"p_setpos","Sets a player's position.",[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Read),new S(_,"Y coordinate.",P.Read),new S(_,"Z coordinate.",P.Read),new S(_,"Y-axis rotation.",P.Read)]},void 0,void 0)],R.Pop),g.P_RETURN_GUILD=i.OPCODES[119]=new g(119,"p_return_guild",void 0,[],void 0),g.P_TALK_GUILD=i.OPCODES[120]=new g(120,"p_talk_guild",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_TALK_PL_V3=i.OPCODES[121]=new g(121,"npc_talk_pl_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_TALK_KILL=i.OPCODES[122]=new g(122,"npc_talk_kill",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_CRTPK_V3=i.OPCODES[123]=new g(123,"npc_crtpk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_CRPPK_V3=i.OPCODES[124]=new g(124,"npc_crppk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_CRPTALK_V3=i.OPCODES[125]=new g(125,"npc_crptalk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.P_LOOK_AT_V1=i.OPCODES[126]=new g(126,"p_look_at_v1",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.NPC_CRP_ID_V3=i.OPCODES[127]=new g(127,"npc_crp_id_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CAM_QUAKE=i.OPCODES[128]=new g(128,"cam_quake",void 0,[],void 0),g.CAM_ADJ=i.OPCODES[129]=new g(129,"cam_adj",void 0,[],void 0),g.CAM_ZMIN=i.OPCODES[130]=new g(130,"cam_zmin",void 0,[],void 0),g.CAM_ZMOUT=i.OPCODES[131]=new g(131,"cam_zmout",void 0,[],void 0),g.CAM_PAN_V3=i.OPCODES[132]=new g(132,"cam_pan_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.GAME_LEV_SUPER=i.OPCODES[133]=new g(133,"game_lev_super",void 0,[],void 0),g.GAME_LEV_RESET=i.OPCODES[134]=new g(134,"game_lev_reset",void 0,[],void 0),g.POS_PIPE_V3=i.OPCODES[135]=new g(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Read),new S(_,"Y coordinate.",P.Read),new S(_,"Z coordinate.",P.Read),new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.IF_ZONE_CLEAR=i.OPCODES[136]=new g(136,"if_zone_clear",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.CHK_ENE_NUM=i.OPCODES[137]=new g(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNHIDE_OBJ=i.OPCODES[138]=new g(138,"unhide_obj",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNHIDE_ENE=i.OPCODES[139]=new g(139,"unhide_ene",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.AT_COORDS_CALL=i.OPCODES[140]=new g(140,"at_coords_call",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(s,void 0,P.Read)]},void 0,void 0)],void 0),g.AT_COORDS_TALK=i.OPCODES[141]=new g(141,"at_coords_talk",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(s,void 0,P.Read)]},void 0,void 0)],void 0),g.COL_NPCIN=i.OPCODES[142]=new g(142,"col_npcin",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(s,void 0,P.Read)]},void 0,void 0)],void 0),g.COL_NPCINR=i.OPCODES[143]=new g(143,"col_npcinr",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SWITCH_ON=i.OPCODES[144]=new g(144,"switch_on",void 0,[new S(_,void 0,void 0)],R.Pop),g.SWITCH_OFF=i.OPCODES[145]=new g(145,"switch_off",void 0,[new S(_,void 0,void 0)],R.Pop),g.PLAYBGM_EPI=i.OPCODES[146]=new g(146,"playbgm_epi",void 0,[new S(_,void 0,void 0)],R.Pop),g.SET_MAINWARP=i.OPCODES[147]=new g(147,"set_mainwarp",void 0,[new S(_,void 0,void 0)],R.Pop),g.SET_OBJ_PARAM=i.OPCODES[148]=new g(148,"set_obj_param","Creates a targetable object.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Read),new S(_,"Y coordinate.",P.Read),new S(_,"Z coordinate.",P.Read),new S(_,"Collision radius.",P.Read),new S(s,"Function label.",P.Read),new S(_,"Vertical position of the cursor.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},"Object handle.",void 0)],void 0),g.SET_FLOOR_HANDLER=i.OPCODES[149]=new g(149,"set_floor_handler",void 0,[new S(_,"Floor number.",void 0),new S(s,"Handler function label.",void 0)],R.Pop),g.CLR_FLOOR_HANDLER=i.OPCODES[150]=new g(150,"clr_floor_handler",void 0,[new S(_,"Floor number.",void 0)],R.Pop),g.COL_PLINAW=i.OPCODES[151]=new g(151,"col_plinaw",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.HUD_HIDE=i.OPCODES[152]=new g(152,"hud_hide",void 0,[],void 0),g.HUD_SHOW=i.OPCODES[153]=new g(153,"hud_show",void 0,[],void 0),g.CINE_ENABLE=i.OPCODES[154]=new g(154,"cine_enable",void 0,[],void 0),g.CINE_DISABLE=i.OPCODES[155]=new g(155,"cine_disable",void 0,[],void 0),g.UNKNOWN_9C=i.OPCODES[156]=new g(156,"unknown_9c",void 0,[],void 0),g.UNKNOWN_9D=i.OPCODES[157]=new g(157,"unknown_9d",void 0,[],void 0),g.UNKNOWN_9E=i.OPCODES[158]=new g(158,"unknown_9e",void 0,[],void 0),g.UNKNOWN_9F=i.OPCODES[159]=new g(159,"unknown_9f",void 0,[],void 0),g.UNKNOWN_A0=i.OPCODES[160]=new g(160,"unknown_a0",void 0,[],void 0),g.SET_QT_FAILURE=i.OPCODES[161]=new g(161,"set_qt_failure",void 0,[new S(s,void 0,void 0)],void 0),g.SET_QT_SUCCESS=i.OPCODES[162]=new g(162,"set_qt_success",void 0,[new S(s,void 0,void 0)],void 0),g.CLR_QT_FAILURE=i.OPCODES[163]=new g(163,"clr_qt_failure",void 0,[],void 0),g.CLR_QT_SUCCESS=i.OPCODES[164]=new g(164,"clr_qt_success",void 0,[],void 0),g.SET_QT_CANCEL=i.OPCODES[165]=new g(165,"set_qt_cancel",void 0,[new S(s,void 0,void 0)],void 0),g.CLR_QT_CANCEL=i.OPCODES[166]=new g(166,"clr_qt_cancel",void 0,[],void 0),g.UNKNOWN_A7=i.OPCODES[167]=new g(167,"unknown_a7",void 0,[],void 0),g.PL_WALK_V3=i.OPCODES[168]=new g(168,"pl_walk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_A9=i.OPCODES[169]=new g(169,"unknown_a9",void 0,[],void 0),g.UNKNOWN_AA=i.OPCODES[170]=new g(170,"unknown_aa",void 0,[],void 0),g.UNKNOWN_AB=i.OPCODES[171]=new g(171,"unknown_ab",void 0,[],void 0),g.UNKNOWN_AC=i.OPCODES[172]=new g(172,"unknown_ac",void 0,[],void 0),g.UNKNOWN_AD=i.OPCODES[173]=new g(173,"unknown_ad",void 0,[],void 0),g.UNKNOWN_AE=i.OPCODES[174]=new g(174,"unknown_ae",void 0,[],void 0),g.UNKNOWN_AF=i.OPCODES[175]=new g(175,"unknown_af",void 0,[],void 0),g.PL_ADD_MESETA=i.OPCODES[176]=new g(176,"pl_add_meseta",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.THREAD_STG=i.OPCODES[177]=new g(177,"thread_stg",void 0,[new S(s,void 0,void 0)],void 0),g.DEL_OBJ_PARAM=i.OPCODES[178]=new g(178,"del_obj_param",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},"Object handle.",void 0)],void 0),g.ITEM_CREATE=i.OPCODES[179]=new g(179,"item_create",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ITEM_CREATE2=i.OPCODES[180]=new g(180,"item_create2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ITEM_DELETE=i.OPCODES[181]=new g(181,"item_delete",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ITEM_DELETE2=i.OPCODES[182]=new g(182,"item_delete2","Deletes an item from the player's inventory.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.ITEM_CHECK=i.OPCODES[183]=new g(183,"item_check",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SETEVT=i.OPCODES[184]=new g(184,"setevt",void 0,[new S(_,void 0,void 0)],R.Pop),g.GET_DIFFLVL=i.OPCODES[185]=new g(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.SET_QT_EXIT=i.OPCODES[186]=new g(186,"set_qt_exit",void 0,[new S(s,void 0,void 0)],void 0),g.CLR_QT_EXIT=i.OPCODES[187]=new g(187,"clr_qt_exit",void 0,[],void 0),g.UNKNOWN_BC=i.OPCODES[188]=new g(188,"unknown_bc",void 0,[],void 0),g.UNKNOWN_BD=i.OPCODES[189]=new g(189,"unknown_bd",void 0,[],void 0),g.UNKNOWN_BE=i.OPCODES[190]=new g(190,"unknown_be",void 0,[],void 0),g.UNKNOWN_BF=i.OPCODES[191]=new g(191,"unknown_bf",void 0,[],void 0),g.PARTICLE_V3=i.OPCODES[192]=new g(192,"particle_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_TEXT=i.OPCODES[193]=new g(193,"npc_text",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.NPC_CHKWARP=i.OPCODES[194]=new g(194,"npc_chkwarp",void 0,[],void 0),g.PL_PKOFF=i.OPCODES[195]=new g(195,"pl_pkoff",void 0,[],void 0),g.MAP_DESIGNATE=i.OPCODES[196]=new g(196,"map_designate",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.MASTERKEY_ON=i.OPCODES[197]=new g(197,"masterkey_on",void 0,[],void 0),g.MASTERKEY_OFF=i.OPCODES[198]=new g(198,"masterkey_off",void 0,[],void 0),g.WINDOW_TIME=i.OPCODES[199]=new g(199,"window_time",void 0,[],void 0),g.WINEND_TIME=i.OPCODES[200]=new g(200,"winend_time",void 0,[],void 0),g.WINSET_TIME=i.OPCODES[201]=new g(201,"winset_time",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GETMTIME=i.OPCODES[202]=new g(202,"getmtime",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.SET_QUEST_BOARD_HANDLER=i.OPCODES[203]=new g(203,"set_quest_board_handler",void 0,[new S(_,void 0,void 0),new S(s,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.CLEAR_QUEST_BOARD_HANDLER=i.OPCODES[204]=new g(204,"clear_quest_board_handler",void 0,[new S(_,void 0,void 0)],R.Pop),g.PARTICLE_ID_V3=i.OPCODES[205]=new g(205,"particle_id_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_CRPTALK_ID_V3=i.OPCODES[206]=new g(206,"npc_crptalk_id_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_LANG_CLEAN=i.OPCODES[207]=new g(207,"npc_lang_clean",void 0,[],void 0),g.PL_PKON=i.OPCODES[208]=new g(208,"pl_pkon",void 0,[],void 0),g.PL_CHK_ITEM2=i.OPCODES[209]=new g(209,"pl_chk_item2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ENABLE_MAINMENU=i.OPCODES[210]=new g(210,"enable_mainmenu",void 0,[],void 0),g.DISABLE_MAINMENU=i.OPCODES[211]=new g(211,"disable_mainmenu",void 0,[],void 0),g.START_BATTLEBGM=i.OPCODES[212]=new g(212,"start_battlebgm",void 0,[],void 0),g.END_BATTLEBGM=i.OPCODES[213]=new g(213,"end_battlebgm",void 0,[],void 0),g.DISP_MSG_QB=i.OPCODES[214]=new g(214,"disp_msg_qb",void 0,[new S(u,void 0,void 0)],R.Pop),g.CLOSE_MSG_QB=i.OPCODES[215]=new g(215,"close_msg_qb",void 0,[],void 0),g.SET_EVENTFLAG_V3=i.OPCODES[216]=new g(216,"set_eventflag_v3",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.SYNC_LETI=i.OPCODES[217]=new g(217,"sync_leti",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.SET_RETURNHUNTER=i.OPCODES[218]=new g(218,"set_returnhunter",void 0,[],void 0),g.SET_RETURNCITY=i.OPCODES[219]=new g(219,"set_returncity",void 0,[],void 0),g.LOAD_PVR=i.OPCODES[220]=new g(220,"load_pvr",void 0,[],void 0),g.LOAD_MIDI=i.OPCODES[221]=new g(221,"load_midi",void 0,[],void 0),g.UNKNOWN_DE=i.OPCODES[222]=new g(222,"unknown_de",void 0,[],void 0),g.NPC_PARAM_V3=i.OPCODES[223]=new g(223,"npc_param_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.PAD_DRAGON=i.OPCODES[224]=new g(224,"pad_dragon",void 0,[],void 0),g.CLEAR_MAINWARP=i.OPCODES[225]=new g(225,"clear_mainwarp",void 0,[new S(_,void 0,void 0)],R.Pop),g.PCAM_PARAM_V3=i.OPCODES[226]=new g(226,"pcam_param_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.START_SETEVT_V3=i.OPCODES[227]=new g(227,"start_setevt_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.WARP_ON=i.OPCODES[228]=new g(228,"warp_on",void 0,[],void 0),g.WARP_OFF=i.OPCODES[229]=new g(229,"warp_off",void 0,[],void 0),g.GET_SLOTNUMBER=i.OPCODES[230]=new g(230,"get_slotnumber",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_SERVERNUMBER=i.OPCODES[231]=new g(231,"get_servernumber",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.SET_EVENTFLAG2=i.OPCODES[232]=new g(232,"set_eventflag2",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Pop),g.RES=i.OPCODES[233]=new g(233,"res",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_EA=i.OPCODES[234]=new g(234,"unknown_ea",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.ENABLE_BGMCTRL=i.OPCODES[235]=new g(235,"enable_bgmctrl",void 0,[new S(_,void 0,void 0)],R.Pop),g.SW_SEND=i.OPCODES[236]=new g(236,"sw_send",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CREATE_BGMCTRL=i.OPCODES[237]=new g(237,"create_bgmctrl",void 0,[],void 0),g.PL_ADD_MESETA2=i.OPCODES[238]=new g(238,"pl_add_meseta2",void 0,[new S(_,void 0,void 0)],R.Pop),g.SYNC_REGISTER=i.OPCODES[239]=new g(239,"sync_register",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.SEND_REGWORK=i.OPCODES[240]=new g(240,"send_regwork",void 0,[],void 0),g.LETI_FIXED_CAMERA_V3=i.OPCODES[241]=new g(241,"leti_fixed_camera_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.DEFAULT_CAMERA_POS1=i.OPCODES[242]=new g(242,"default_camera_pos1",void 0,[],void 0),g.UNKNOWN_F3=i.OPCODES[243]=new g(243,"unknown_f3",void 0,[],void 0),g.UNKNOWN_F4=i.OPCODES[244]=new g(244,"unknown_f4",void 0,[],void 0),g.UNKNOWN_F5=i.OPCODES[245]=new g(245,"unknown_f5",void 0,[],void 0),g.UNKNOWN_F6=i.OPCODES[246]=new g(246,"unknown_f6",void 0,[],void 0),g.UNKNOWN_F7=i.OPCODES[247]=new g(247,"unknown_f7",void 0,[],void 0),g.UNKNOWN_F8=i.OPCODES[248]=new g(248,"unknown_f8",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F9=i.OPCODES[249]=new g(249,"unknown_f9",void 0,[],void 0),g.GET_GC_NUMBER=i.OPCODES[250]=new g(250,"get_gc_number",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_FB=i.OPCODES[251]=new g(251,"unknown_fb",void 0,[new S(t,void 0,void 0)],void 0),g.UNKNOWN_FC=i.OPCODES[252]=new g(252,"unknown_fc",void 0,[],void 0),g.UNKNOWN_FD=i.OPCODES[253]=new g(253,"unknown_fd",void 0,[],void 0),g.UNKNOWN_FE=i.OPCODES[254]=new g(254,"unknown_fe",void 0,[],void 0),g.UNKNOWN_FF=i.OPCODES[255]=new g(255,"unknown_ff",void 0,[],void 0),g.UNKNOWN_F800=i.OPCODES[63488]=new g(63488,"unknown_f800",void 0,[],void 0),g.SET_CHAT_CALLBACK=i.OPCODES[63489]=new g(63489,"set_chat_callback",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.UNKNOWN_F802=i.OPCODES[63490]=new g(63490,"unknown_f802",void 0,[],void 0),g.UNKNOWN_F803=i.OPCODES[63491]=new g(63491,"unknown_f803",void 0,[],void 0),g.UNKNOWN_F804=i.OPCODES[63492]=new g(63492,"unknown_f804",void 0,[],void 0),g.UNKNOWN_F805=i.OPCODES[63493]=new g(63493,"unknown_f805",void 0,[],void 0),g.UNKNOWN_F806=i.OPCODES[63494]=new g(63494,"unknown_f806",void 0,[],void 0),g.UNKNOWN_F807=i.OPCODES[63495]=new g(63495,"unknown_f807",void 0,[],void 0),g.GET_DIFFICULTY_LEVEL2=i.OPCODES[63496]=new g(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_NUMBER_OF_PLAYER1=i.OPCODES[63497]=new g(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_COORD_OF_PLAYER=i.OPCODES[63498]=new g(63498,"get_coord_of_player","Retrieves a player's position.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Write),new S(_,"Y coordinate.",P.Write),new S(_,"Z coordinate.",P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.ENABLE_MAP=i.OPCODES[63499]=new g(63499,"enable_map",void 0,[],void 0),g.DISABLE_MAP=i.OPCODES[63500]=new g(63500,"disable_map",void 0,[],void 0),g.MAP_DESIGNATE_EX=i.OPCODES[63501]=new g(63501,"map_designate_ex",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F80E=i.OPCODES[63502]=new g(63502,"unknown_f80e",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F80F=i.OPCODES[63503]=new g(63503,"unknown_f80f",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_INITIAL_FLOOR=i.OPCODES[63504]=new g(63504,"ba_initial_floor",void 0,[new S(_,void 0,void 0)],R.Pop),g.SET_BA_RULES=i.OPCODES[63505]=new g(63505,"set_ba_rules",void 0,[],void 0),g.UNKNOWN_F812=i.OPCODES[63506]=new g(63506,"unknown_f812",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F813=i.OPCODES[63507]=new g(63507,"unknown_f813",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F814=i.OPCODES[63508]=new g(63508,"unknown_f814",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F815=i.OPCODES[63509]=new g(63509,"unknown_f815",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F816=i.OPCODES[63510]=new g(63510,"unknown_f816",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F817=i.OPCODES[63511]=new g(63511,"unknown_f817",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F818=i.OPCODES[63512]=new g(63512,"unknown_f818",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F819=i.OPCODES[63513]=new g(63513,"unknown_f819",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F81A=i.OPCODES[63514]=new g(63514,"unknown_f81a",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F81B=i.OPCODES[63515]=new g(63515,"unknown_f81b",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_DISP_MSG=i.OPCODES[63516]=new g(63516,"ba_disp_msg",void 0,[new S(u,void 0,void 0)],R.Pop),g.DEATH_LVL_UP=i.OPCODES[63517]=new g(63517,"death_lvl_up",void 0,[new S(_,void 0,void 0)],R.Pop),g.DEATH_TECH_LVL_UP=i.OPCODES[63518]=new g(63518,"death_tech_lvl_up",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F81F=i.OPCODES[63519]=new g(63519,"unknown_f81f",void 0,[],void 0),g.CMODE_STAGE=i.OPCODES[63520]=new g(63520,"cmode_stage",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F821=i.OPCODES[63521]=new g(63521,"unknown_f821",void 0,[],void 0),g.UNKNOWN_F822=i.OPCODES[63522]=new g(63522,"unknown_f822",void 0,[],void 0),g.UNKNOWN_F823=i.OPCODES[63523]=new g(63523,"unknown_f823",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F824=i.OPCODES[63524]=new g(63524,"unknown_f824",void 0,[new S(_,void 0,void 0)],R.Pop),g.EXP_MULTIPLICATION=i.OPCODES[63525]=new g(63525,"exp_multiplication",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.EXP_DIVISION=i.OPCODES[63526]=new g(63526,"exp_division",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_USER_IS_DEAD=i.OPCODES[63527]=new g(63527,"get_user_is_dead",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GO_FLOOR=i.OPCODES[63528]=new g(63528,"go_floor","Sends a player to the given floor.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Floor ID.",P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F829=i.OPCODES[63529]=new g(63529,"unknown_f829",void 0,[],void 0),g.UNKNOWN_F82A=i.OPCODES[63530]=new g(63530,"unknown_f82a",void 0,[],void 0),g.UNLOCK_DOOR2=i.OPCODES[63531]=new g(63531,"unlock_door2",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.LOCK_DOOR2=i.OPCODES[63532]=new g(63532,"lock_door2",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.IF_SWITCH_NOT_PRESSED=i.OPCODES[63533]=new g(63533,"if_switch_not_pressed",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.IF_SWITCH_PRESSED=i.OPCODES[63534]=new g(63534,"if_switch_pressed",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Floor ID.",P.Read),new S(_,"Switch ID.",P.Read),new S(_,"Will be set to 1 if the switch is pressed, 0 otherwise.",P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F82F=i.OPCODES[63535]=new g(63535,"unknown_f82f",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.CONTROL_DRAGON=i.OPCODES[63536]=new g(63536,"control_dragon",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.RELEASE_DRAGON=i.OPCODES[63537]=new g(63537,"release_dragon",void 0,[],void 0),g.UNKNOWN_F832=i.OPCODES[63538]=new g(63538,"unknown_f832",void 0,[],void 0),g.UNKNOWN_F833=i.OPCODES[63539]=new g(63539,"unknown_f833",void 0,[],void 0),g.UNKNOWN_F834=i.OPCODES[63540]=new g(63540,"unknown_f834",void 0,[],void 0),g.UNKNOWN_F835=i.OPCODES[63541]=new g(63541,"unknown_f835",void 0,[],void 0),g.UNKNOWN_F836=i.OPCODES[63542]=new g(63542,"unknown_f836",void 0,[],void 0),g.UNKNOWN_F837=i.OPCODES[63543]=new g(63543,"unknown_f837",void 0,[],void 0),g.SHRINK=i.OPCODES[63544]=new g(63544,"shrink",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.UNSHRINK=i.OPCODES[63545]=new g(63545,"unshrink",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F83A=i.OPCODES[63546]=new g(63546,"unknown_f83a",void 0,[],void 0),g.UNKNOWN_F83B=i.OPCODES[63547]=new g(63547,"unknown_f83b",void 0,[],void 0),g.DISPLAY_CLOCK2=i.OPCODES[63548]=new g(63548,"display_clock2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F83D=i.OPCODES[63549]=new g(63549,"unknown_f83d",void 0,[new S(_,void 0,void 0)],R.Pop),g.DELETE_AREA_TITLE=i.OPCODES[63550]=new g(63550,"delete_area_title",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F83F=i.OPCODES[63551]=new g(63551,"unknown_f83f",void 0,[],void 0),g.LOAD_NPC_DATA=i.OPCODES[63552]=new g(63552,"load_npc_data",void 0,[],void 0),g.GET_NPC_DATA=i.OPCODES[63553]=new g(63553,"get_npc_data",void 0,[new S(r,void 0,void 0)],void 0),g.UNKNOWN_F842=i.OPCODES[63554]=new g(63554,"unknown_f842",void 0,[],void 0),g.UNKNOWN_F843=i.OPCODES[63555]=new g(63555,"unknown_f843",void 0,[],void 0),g.UNKNOWN_F844=i.OPCODES[63556]=new g(63556,"unknown_f844",void 0,[],void 0),g.UNKNOWN_F845=i.OPCODES[63557]=new g(63557,"unknown_f845",void 0,[],void 0),g.UNKNOWN_F846=i.OPCODES[63558]=new g(63558,"unknown_f846",void 0,[],void 0),g.UNKNOWN_F847=i.OPCODES[63559]=new g(63559,"unknown_f847",void 0,[],void 0),g.GIVE_DAMAGE_SCORE=i.OPCODES[63560]=new g(63560,"give_damage_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.TAKE_DAMAGE_SCORE=i.OPCODES[63561]=new g(63561,"take_damage_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNK_SCORE_F84A=i.OPCODES[63562]=new g(63562,"unk_score_f84a",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNK_SCORE_F84B=i.OPCODES[63563]=new g(63563,"unk_score_f84b",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.KILL_SCORE=i.OPCODES[63564]=new g(63564,"kill_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.DEATH_SCORE=i.OPCODES[63565]=new g(63565,"death_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNK_SCORE_F84E=i.OPCODES[63566]=new g(63566,"unk_score_f84e",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.ENEMY_DEATH_SCORE=i.OPCODES[63567]=new g(63567,"enemy_death_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.MESETA_SCORE=i.OPCODES[63568]=new g(63568,"meseta_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F851=i.OPCODES[63569]=new g(63569,"unknown_f851",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F852=i.OPCODES[63570]=new g(63570,"unknown_f852",void 0,[new S(_,void 0,void 0)],R.Pop),g.REVERSE_WARPS=i.OPCODES[63571]=new g(63571,"reverse_warps",void 0,[],void 0),g.UNREVERSE_WARPS=i.OPCODES[63572]=new g(63572,"unreverse_warps",void 0,[],void 0),g.SET_ULT_MAP=i.OPCODES[63573]=new g(63573,"set_ult_map",void 0,[],void 0),g.UNSET_ULT_MAP=i.OPCODES[63574]=new g(63574,"unset_ult_map",void 0,[],void 0),g.SET_AREA_TITLE=i.OPCODES[63575]=new g(63575,"set_area_title",void 0,[new S(u,void 0,void 0)],R.Pop),g.UNKNOWN_F858=i.OPCODES[63576]=new g(63576,"unknown_f858",void 0,[],void 0),g.UNKNOWN_F859=i.OPCODES[63577]=new g(63577,"unknown_f859",void 0,[],void 0),g.EQUIP_ITEM=i.OPCODES[63578]=new g(63578,"equip_item",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNEQUIP_ITEM=i.OPCODES[63579]=new g(63579,"unequip_item",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F85C=i.OPCODES[63580]=new g(63580,"unknown_f85c",void 0,[],void 0),g.UNKNOWN_F85D=i.OPCODES[63581]=new g(63581,"unknown_f85d",void 0,[],void 0),g.UNKNOWN_F85E=i.OPCODES[63582]=new g(63582,"unknown_f85e",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F85F=i.OPCODES[63583]=new g(63583,"unknown_f85f",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F860=i.OPCODES[63584]=new g(63584,"unknown_f860",void 0,[],void 0),g.UNKNOWN_F861=i.OPCODES[63585]=new g(63585,"unknown_f861",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F862=i.OPCODES[63586]=new g(63586,"unknown_f862",void 0,[],void 0),g.UNKNOWN_F863=i.OPCODES[63587]=new g(63587,"unknown_f863",void 0,[],void 0),g.CMODE_RANK=i.OPCODES[63588]=new g(63588,"cmode_rank",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.AWARD_ITEM_NAME=i.OPCODES[63589]=new g(63589,"award_item_name",void 0,[],void 0),g.AWARD_ITEM_SELECT=i.OPCODES[63590]=new g(63590,"award_item_select",void 0,[],void 0),g.AWARD_ITEM_GIVE_TO=i.OPCODES[63591]=new g(63591,"award_item_give_to",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F868=i.OPCODES[63592]=new g(63592,"unknown_f868",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F869=i.OPCODES[63593]=new g(63593,"unknown_f869",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.ITEM_CREATE_CMODE=i.OPCODES[63594]=new g(63594,"item_create_cmode",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F86B=i.OPCODES[63595]=new g(63595,"unknown_f86b",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.AWARD_ITEM_OK=i.OPCODES[63596]=new g(63596,"award_item_ok",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F86D=i.OPCODES[63597]=new g(63597,"unknown_f86d",void 0,[],void 0),g.UNKNOWN_F86E=i.OPCODES[63598]=new g(63598,"unknown_f86e",void 0,[],void 0),g.BA_SET_LIVES=i.OPCODES[63599]=new g(63599,"ba_set_lives",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_SET_TECH_LVL=i.OPCODES[63600]=new g(63600,"ba_set_tech_lvl",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_SET_LVL=i.OPCODES[63601]=new g(63601,"ba_set_lvl",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_SET_TIME_LIMIT=i.OPCODES[63602]=new g(63602,"ba_set_time_limit",void 0,[new S(_,void 0,void 0)],R.Pop),g.BOSS_IS_DEAD=i.OPCODES[63603]=new g(63603,"boss_is_dead",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F874=i.OPCODES[63604]=new g(63604,"unknown_f874",void 0,[],void 0),g.UNKNOWN_F875=i.OPCODES[63605]=new g(63605,"unknown_f875",void 0,[],void 0),g.UNKNOWN_F876=i.OPCODES[63606]=new g(63606,"unknown_f876",void 0,[],void 0),g.ENABLE_TECHS=i.OPCODES[63607]=new g(63607,"enable_techs","Enables technique use for the given player.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.DISABLE_TECHS=i.OPCODES[63608]=new g(63608,"disable_techs","Disables technique use for the given player.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.GET_GENDER=i.OPCODES[63609]=new g(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player gender.",P.Write)]},void 0,void 0)],void 0),g.GET_CHARA_CLASS=i.OPCODES[63610]=new g(63610,"get_chara_class","Retrieves the player's race and character class.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player race. 0 If human, 1 if newman, 2 if cast.",P.Write),new S(_,"Player class. 0 If hunter, 1 if ranger, 2 if force.",P.Write)]},void 0,void 0)],void 0),g.TAKE_SLOT_MESETA=i.OPCODES[63611]=new g(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read),new S(_,"Amount of meseta to take.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Will be set to 1 if the meseta was taken, 0 otherwise.",P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F87C=i.OPCODES[63612]=new g(63612,"unknown_f87c",void 0,[],void 0),g.UNKNOWN_F87D=i.OPCODES[63613]=new g(63613,"unknown_f87d",void 0,[],void 0),g.UNKNOWN_F87E=i.OPCODES[63614]=new g(63614,"unknown_f87e",void 0,[],void 0),g.READ_GUILDCARD_FLAG=i.OPCODES[63615]=new g(63615,"read_guildcard_flag",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F880=i.OPCODES[63616]=new g(63616,"unknown_f880",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_PL_NAME=i.OPCODES[63617]=new g(63617,"get_pl_name","Sets the value of <pl_name> to the given player's name.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F882=i.OPCODES[63618]=new g(63618,"unknown_f882",void 0,[],void 0),g.UNKNOWN_F883=i.OPCODES[63619]=new g(63619,"unknown_f883",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F884=i.OPCODES[63620]=new g(63620,"unknown_f884",void 0,[],void 0),g.UNKNOWN_F885=i.OPCODES[63621]=new g(63621,"unknown_f885",void 0,[],void 0),g.UNKNOWN_F886=i.OPCODES[63622]=new g(63622,"unknown_f886",void 0,[],void 0),g.UNKNOWN_F887=i.OPCODES[63623]=new g(63623,"unknown_f887",void 0,[],void 0),g.UNKNOWN_F888=i.OPCODES[63624]=new g(63624,"unknown_f888",void 0,[],void 0),g.UNKNOWN_F889=i.OPCODES[63625]=new g(63625,"unknown_f889",void 0,[],void 0),g.GET_PLAYER_STATUS=i.OPCODES[63626]=new g(63626,"get_player_status",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.SEND_MAIL=i.OPCODES[63627]=new g(63627,"send_mail",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.ONLINE_CHECK=i.OPCODES[63628]=new g(63628,"online_check",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.CHL_SET_TIMERECORD=i.OPCODES[63629]=new g(63629,"chl_set_timerecord",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CHL_GET_TIMERECORD=i.OPCODES[63630]=new g(63630,"chl_get_timerecord",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F88F=i.OPCODES[63631]=new g(63631,"unknown_f88f",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F890=i.OPCODES[63632]=new g(63632,"unknown_f890",void 0,[],void 0),g.LOAD_ENEMY_DATA=i.OPCODES[63633]=new g(63633,"load_enemy_data",void 0,[new S(_,void 0,void 0)],R.Pop),g.GET_PHYSICAL_DATA=i.OPCODES[63634]=new g(63634,"get_physical_data",void 0,[new S(t,void 0,void 0)],void 0),g.GET_ATTACK_DATA=i.OPCODES[63635]=new g(63635,"get_attack_data",void 0,[new S(t,void 0,void 0)],void 0),g.GET_RESIST_DATA=i.OPCODES[63636]=new g(63636,"get_resist_data",void 0,[new S(t,void 0,void 0)],void 0),g.GET_MOVEMENT_DATA=i.OPCODES[63637]=new g(63637,"get_movement_data",void 0,[new S(t,void 0,void 0)],void 0),g.UNKNOWN_F896=i.OPCODES[63638]=new g(63638,"unknown_f896",void 0,[],void 0),g.UNKNOWN_F897=i.OPCODES[63639]=new g(63639,"unknown_f897",void 0,[],void 0),g.SHIFT_LEFT=i.OPCODES[63640]=new g(63640,"shift_left",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.SHIFT_RIGHT=i.OPCODES[63641]=new g(63641,"shift_right",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.GET_RANDOM=i.OPCODES[63642]=new g(63642,"get_random",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.RESET_MAP=i.OPCODES[63643]=new g(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),g.DISP_CHL_RETRY_MENU=i.OPCODES[63644]=new g(63644,"disp_chl_retry_menu",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.CHL_REVERSER=i.OPCODES[63645]=new g(63645,"chl_reverser",void 0,[],void 0),g.UNKNOWN_F89E=i.OPCODES[63646]=new g(63646,"unknown_f89e",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F89F=i.OPCODES[63647]=new g(63647,"unknown_f89f",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8A0=i.OPCODES[63648]=new g(63648,"unknown_f8a0",void 0,[],void 0),g.UNKNOWN_F8A1=i.OPCODES[63649]=new g(63649,"unknown_f8a1",void 0,[],void 0),g.UNKNOWN_F8A2=i.OPCODES[63650]=new g(63650,"unknown_f8a2",void 0,[],void 0),g.UNKNOWN_F8A3=i.OPCODES[63651]=new g(63651,"unknown_f8a3",void 0,[],void 0),g.UNKNOWN_F8A4=i.OPCODES[63652]=new g(63652,"unknown_f8a4",void 0,[],void 0),g.UNKNOWN_F8A5=i.OPCODES[63653]=new g(63653,"unknown_f8a5",void 0,[],void 0),g.UNKNOWN_F8A6=i.OPCODES[63654]=new g(63654,"unknown_f8a6",void 0,[],void 0),g.UNKNOWN_F8A7=i.OPCODES[63655]=new g(63655,"unknown_f8a7",void 0,[],void 0),g.UNKNOWN_F8A8=i.OPCODES[63656]=new g(63656,"unknown_f8a8",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F8A9=i.OPCODES[63657]=new g(63657,"unknown_f8a9",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8AA=i.OPCODES[63658]=new g(63658,"unknown_f8aa",void 0,[],void 0),g.UNKNOWN_F8AB=i.OPCODES[63659]=new g(63659,"unknown_f8ab",void 0,[],void 0),g.UNKNOWN_F8AC=i.OPCODES[63660]=new g(63660,"unknown_f8ac",void 0,[],void 0),g.GET_NUMBER_OF_PLAYER2=i.OPCODES[63661]=new g(63661,"get_number_of_player2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8AE=i.OPCODES[63662]=new g(63662,"unknown_f8ae",void 0,[],void 0),g.UNKNOWN_F8AF=i.OPCODES[63663]=new g(63663,"unknown_f8af",void 0,[],void 0),g.UNKNOWN_F8B0=i.OPCODES[63664]=new g(63664,"unknown_f8b0",void 0,[],void 0),g.UNKNOWN_F8B1=i.OPCODES[63665]=new g(63665,"unknown_f8b1",void 0,[],void 0),g.UNKNOWN_F8B2=i.OPCODES[63666]=new g(63666,"unknown_f8b2",void 0,[],void 0),g.UNKNOWN_F8B3=i.OPCODES[63667]=new g(63667,"unknown_f8b3",void 0,[],void 0),g.UNKNOWN_F8B4=i.OPCODES[63668]=new g(63668,"unknown_f8b4",void 0,[],void 0),g.UNKNOWN_F8B5=i.OPCODES[63669]=new g(63669,"unknown_f8b5",void 0,[],void 0),g.UNKNOWN_F8B6=i.OPCODES[63670]=new g(63670,"unknown_f8b6",void 0,[],void 0),g.UNKNOWN_F8B7=i.OPCODES[63671]=new g(63671,"unknown_f8b7",void 0,[],void 0),g.UNKNOWN_F8B8=i.OPCODES[63672]=new g(63672,"unknown_f8b8",void 0,[],void 0),g.CHL_RECOVERY=i.OPCODES[63673]=new g(63673,"chl_recovery",void 0,[],void 0),g.UNKNOWN_F8BA=i.OPCODES[63674]=new g(63674,"unknown_f8ba",void 0,[],void 0),g.UNKNOWN_F8BB=i.OPCODES[63675]=new g(63675,"unknown_f8bb",void 0,[],void 0),g.SET_EPISODE=i.OPCODES[63676]=new g(63676,"set_episode",void 0,[new S(_,void 0,void 0)],void 0),g.UNKNOWN_F8BD=i.OPCODES[63677]=new g(63677,"unknown_f8bd",void 0,[],void 0),g.UNKNOWN_F8BE=i.OPCODES[63678]=new g(63678,"unknown_f8be",void 0,[],void 0),g.UNKNOWN_F8BF=i.OPCODES[63679]=new g(63679,"unknown_f8bf",void 0,[],void 0),g.FILE_DL_REQ=i.OPCODES[63680]=new g(63680,"file_dl_req",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.GET_DL_STATUS=i.OPCODES[63681]=new g(63681,"get_dl_status",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GBA_UNKNOWN4=i.OPCODES[63682]=new g(63682,"gba_unknown4",void 0,[],void 0),g.GET_GBA_STATE=i.OPCODES[63683]=new g(63683,"get_gba_state",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8C4=i.OPCODES[63684]=new g(63684,"unknown_f8c4",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8C5=i.OPCODES[63685]=new g(63685,"unknown_f8c5",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.QEXIT=i.OPCODES[63686]=new g(63686,"qexit",void 0,[],void 0),g.USE_ANIMATION=i.OPCODES[63687]=new g(63687,"use_animation",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Animation ID.",P.Read),new S(_,"Animation duration in number of frames.",P.Read)]},void 0,void 0)],void 0),g.STOP_ANIMATION=i.OPCODES[63688]=new g(63688,"stop_animation",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.RUN_TO_COORD=i.OPCODES[63689]=new g(63689,"run_to_coord",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_INVINCIBLE=i.OPCODES[63690]=new g(63690,"set_slot_invincible",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8CB=i.OPCODES[63691]=new g(63691,"unknown_f8cb",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_POISON=i.OPCODES[63692]=new g(63692,"set_slot_poison",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_PARALYZE=i.OPCODES[63693]=new g(63693,"set_slot_paralyze",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_SHOCK=i.OPCODES[63694]=new g(63694,"set_slot_shock",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_FREEZE=i.OPCODES[63695]=new g(63695,"set_slot_freeze",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_SLOW=i.OPCODES[63696]=new g(63696,"set_slot_slow",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_CONFUSE=i.OPCODES[63697]=new g(63697,"set_slot_confuse",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_SHIFTA=i.OPCODES[63698]=new g(63698,"set_slot_shifta",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_DEBAND=i.OPCODES[63699]=new g(63699,"set_slot_deband",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_JELLEN=i.OPCODES[63700]=new g(63700,"set_slot_jellen",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_ZALURE=i.OPCODES[63701]=new g(63701,"set_slot_zalure",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.FLETI_FIXED_CAMERA=i.OPCODES[63702]=new g(63702,"fleti_fixed_camera",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Pop),g.FLETI_LOCKED_CAMERA=i.OPCODES[63703]=new g(63703,"fleti_locked_camera",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Pop),g.DEFAULT_CAMERA_POS2=i.OPCODES[63704]=new g(63704,"default_camera_pos2",void 0,[],void 0),g.SET_MOTION_BLUR=i.OPCODES[63705]=new g(63705,"set_motion_blur",void 0,[],void 0),g.SET_SCREEN_BW=i.OPCODES[63706]=new g(63706,"set_screen_bw",void 0,[],void 0),g.UNKNOWN_F8DB=i.OPCODES[63707]=new g(63707,"unknown_f8db",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(t,void 0,void 0)],R.Pop),g.NPC_ACTION_STRING=i.OPCODES[63708]=new g(63708,"npc_action_string",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(a,void 0,void 0)],void 0),g.GET_PAD_COND=i.OPCODES[63709]=new g(63709,"get_pad_cond",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_BUTTON_COND=i.OPCODES[63710]=new g(63710,"get_button_cond",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.FREEZE_ENEMIES=i.OPCODES[63711]=new g(63711,"freeze_enemies",void 0,[],void 0),g.UNFREEZE_ENEMIES=i.OPCODES[63712]=new g(63712,"unfreeze_enemies",void 0,[],void 0),g.FREEZE_EVERYTHING=i.OPCODES[63713]=new g(63713,"freeze_everything",void 0,[],void 0),g.UNFREEZE_EVERYTHING=i.OPCODES[63714]=new g(63714,"unfreeze_everything",void 0,[],void 0),g.RESTORE_HP=i.OPCODES[63715]=new g(63715,"restore_hp",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.RESTORE_TP=i.OPCODES[63716]=new g(63716,"restore_tp",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CLOSE_CHAT_BUBBLE=i.OPCODES[63717]=new g(63717,"close_chat_bubble",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.MOVE_COORDS_OBJECT=i.OPCODES[63718]=new g(63718,"move_coords_object",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.AT_COORDS_CALL_EX=i.OPCODES[63719]=new g(63719,"at_coords_call_ex",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8E8=i.OPCODES[63720]=new g(63720,"unknown_f8e8",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8E9=i.OPCODES[63721]=new g(63721,"unknown_f8e9",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8EA=i.OPCODES[63722]=new g(63722,"unknown_f8ea",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8EB=i.OPCODES[63723]=new g(63723,"unknown_f8eb",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8EC=i.OPCODES[63724]=new g(63724,"unknown_f8ec",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ANIMATION_CHECK=i.OPCODES[63725]=new g(63725,"animation_check",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CALL_IMAGE_DATA=i.OPCODES[63726]=new g(63726,"call_image_data",void 0,[new S(_,void 0,void 0),new S(t,void 0,void 0)],R.Pop),g.UNKNOWN_F8EF=i.OPCODES[63727]=new g(63727,"unknown_f8ef",void 0,[],void 0),g.TURN_OFF_BGM_P2=i.OPCODES[63728]=new g(63728,"turn_off_bgm_p2",void 0,[],void 0),g.TURN_ON_BGM_P2=i.OPCODES[63729]=new g(63729,"turn_on_bgm_p2",void 0,[],void 0),g.LOAD_UNK_DATA=i.OPCODES[63730]=new g(63730,"load_unk_data",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(r,void 0,void 0)],R.Pop),g.PARTICLE2=i.OPCODES[63731]=new g(63731,"particle2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(w,void 0,void 0)],R.Pop),g.UNKNOWN_F8F4=i.OPCODES[63732]=new g(63732,"unknown_f8f4",void 0,[],void 0),g.UNKNOWN_F8F5=i.OPCODES[63733]=new g(63733,"unknown_f8f5",void 0,[],void 0),g.UNKNOWN_F8F6=i.OPCODES[63734]=new g(63734,"unknown_f8f6",void 0,[],void 0),g.UNKNOWN_F8F7=i.OPCODES[63735]=new g(63735,"unknown_f8f7",void 0,[],void 0),g.UNKNOWN_F8F8=i.OPCODES[63736]=new g(63736,"unknown_f8f8",void 0,[],void 0),g.UNKNOWN_F8F9=i.OPCODES[63737]=new g(63737,"unknown_f8f9",void 0,[],void 0),g.UNKNOWN_F8FA=i.OPCODES[63738]=new g(63738,"unknown_f8fa",void 0,[],void 0),g.UNKNOWN_F8FB=i.OPCODES[63739]=new g(63739,"unknown_f8fb",void 0,[],void 0),g.UNKNOWN_F8FC=i.OPCODES[63740]=new g(63740,"unknown_f8fc",void 0,[],void 0),g.UNKNOWN_F8FD=i.OPCODES[63741]=new g(63741,"unknown_f8fd",void 0,[],void 0),g.UNKNOWN_F8FE=i.OPCODES[63742]=new g(63742,"unknown_f8fe",void 0,[],void 0),g.UNKNOWN_F8FF=i.OPCODES[63743]=new g(63743,"unknown_f8ff",void 0,[],void 0),g.UNKNOWN_F900=i.OPCODES[63744]=new g(63744,"unknown_f900",void 0,[],void 0),g.DEC2FLOAT=i.OPCODES[63745]=new g(63745,"dec2float",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.FLOAT2DEC=i.OPCODES[63746]=new g(63746,"float2dec",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FLET=i.OPCODES[63747]=new g(63747,"flet",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FLETI=i.OPCODES[63748]=new g(63748,"fleti",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.UNKNOWN_F905=i.OPCODES[63749]=new g(63749,"unknown_f905",void 0,[],void 0),g.UNKNOWN_F906=i.OPCODES[63750]=new g(63750,"unknown_f906",void 0,[],void 0),g.UNKNOWN_F907=i.OPCODES[63751]=new g(63751,"unknown_f907",void 0,[],void 0),g.FADD=i.OPCODES[63752]=new g(63752,"fadd",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FADDI=i.OPCODES[63753]=new g(63753,"faddi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.FSUB=i.OPCODES[63754]=new g(63754,"fsub",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FSUBI=i.OPCODES[63755]=new g(63755,"fsubi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.FMUL=i.OPCODES[63756]=new g(63756,"fmul",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FMULI=i.OPCODES[63757]=new g(63757,"fmuli",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.FDIV=i.OPCODES[63758]=new g(63758,"fdiv",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FDIVI=i.OPCODES[63759]=new g(63759,"fdivi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.GET_UNKNOWN_COUNT=i.OPCODES[63760]=new g(63760,"get_unknown_count",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_STACKABLE_ITEM_COUNT=i.OPCODES[63761]=new g(63761,"get_stackable_item_count",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.FREEZE_AND_HIDE_EQUIP=i.OPCODES[63762]=new g(63762,"freeze_and_hide_equip",void 0,[],void 0),g.THAW_AND_SHOW_EQUIP=i.OPCODES[63763]=new g(63763,"thaw_and_show_equip",void 0,[],void 0),g.SET_PALETTEX_CALLBACK=i.OPCODES[63764]=new g(63764,"set_palettex_callback",void 0,[new S(_,"Player slot.",void 0),new S(s,void 0,void 0)],R.Pop),g.ACTIVATE_PALETTEX=i.OPCODES[63765]=new g(63765,"activate_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.ENABLE_PALETTEX=i.OPCODES[63766]=new g(63766,"enable_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.RESTORE_PALETTEX=i.OPCODES[63767]=new g(63767,"restore_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.DISABLE_PALETTEX=i.OPCODES[63768]=new g(63768,"disable_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.GET_PALETTEX_ACTIVATED=i.OPCODES[63769]=new g(63769,"get_palettex_activated",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_UNKNOWN_PALETTEX_STATUS=i.OPCODES[63770]=new g(63770,"get_unknown_palettex_status",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.DISABLE_MOVEMENT2=i.OPCODES[63771]=new g(63771,"disable_movement2",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.ENABLE_MOVEMENT2=i.OPCODES[63772]=new g(63772,"enable_movement2",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.GET_TIME_PLAYED=i.OPCODES[63773]=new g(63773,"get_time_played",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_GUILDCARD_TOTAL=i.OPCODES[63774]=new g(63774,"get_guildcard_total",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_SLOT_MESETA=i.OPCODES[63775]=new g(63775,"get_slot_meseta",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_PLAYER_LEVEL=i.OPCODES[63776]=new g(63776,"get_player_level",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_SECTION_ID=i.OPCODES[63777]=new g(63777,"get_section_id",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_PLAYER_HP=i.OPCODES[63778]=new g(63778,"get_player_hp",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Maximum HP.",P.Write),new S(_,"Current HP.",P.Write),new S(_,"Maximum TP.",P.Write),new S(_,"Current TP.",P.Write)]},void 0,void 0)],R.Pop),g.GET_FLOOR_NUMBER=i.OPCODES[63779]=new g(63779,"get_floor_number",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_COORD_PLAYER_DETECT=i.OPCODES[63780]=new g(63780,"get_coord_player_detect",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.READ_GLOBAL_FLAG=i.OPCODES[63781]=new g(63781,"read_global_flag",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.WRITE_GLOBAL_FLAG=i.OPCODES[63782]=new g(63782,"write_global_flag",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F927=i.OPCODES[63783]=new g(63783,"unknown_f927",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.FLOOR_PLAYER_DETECT=i.OPCODES[63784]=new g(63784,"floor_player_detect",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write),new S(_,void 0,P.Write),new S(_,void 0,P.Write),new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.READ_DISK_FILE=i.OPCODES[63785]=new g(63785,"read_disk_file",void 0,[new S(u,void 0,void 0)],R.Pop),g.OPEN_PACK_SELECT=i.OPCODES[63786]=new g(63786,"open_pack_select",void 0,[],void 0),g.ITEM_SELECT=i.OPCODES[63787]=new g(63787,"item_select",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_ITEM_ID=i.OPCODES[63788]=new g(63788,"get_item_id",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.COLOR_CHANGE=i.OPCODES[63789]=new g(63789,"color_change",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.SEND_STATISTIC=i.OPCODES[63790]=new g(63790,"send_statistic",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F92F=i.OPCODES[63791]=new g(63791,"unknown_f92f",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.CHAT_BOX=i.OPCODES[63792]=new g(63792,"chat_box",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.CHAT_BUBBLE=i.OPCODES[63793]=new g(63793,"chat_bubble",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.UNKNOWN_F932=i.OPCODES[63794]=new g(63794,"unknown_f932",void 0,[],void 0),g.UNKNOWN_F933=i.OPCODES[63795]=new g(63795,"unknown_f933",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.SCROLL_TEXT=i.OPCODES[63796]=new g(63796,"scroll_text",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(w,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.GBA_UNKNOWN1=i.OPCODES[63797]=new g(63797,"gba_unknown1",void 0,[],void 0),g.GBA_UNKNOWN2=i.OPCODES[63798]=new g(63798,"gba_unknown2",void 0,[],void 0),g.GBA_UNKNOWN3=i.OPCODES[63799]=new g(63799,"gba_unknown3",void 0,[],void 0),g.ADD_DAMAGE_TO=i.OPCODES[63800]=new g(63800,"add_damage_to",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.ITEM_DELETE3=i.OPCODES[63801]=new g(63801,"item_delete3",void 0,[new S(_,void 0,void 0)],R.Pop),g.GET_ITEM_INFO=i.OPCODES[63802]=new g(63802,"get_item_info",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],R.Pop),g.ITEM_PACKING1=i.OPCODES[63803]=new g(63803,"item_packing1",void 0,[new S(_,void 0,void 0)],R.Pop),g.ITEM_PACKING2=i.OPCODES[63804]=new g(63804,"item_packing2",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.GET_LANG_SETTING=i.OPCODES[63805]=new g(63805,"get_lang_setting",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],R.Pop),g.PREPARE_STATISTIC=i.OPCODES[63806]=new g(63806,"prepare_statistic",void 0,[new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.KEYWORD_DETECT=i.OPCODES[63807]=new g(63807,"keyword_detect",void 0,[],void 0),g.KEYWORD=i.OPCODES[63808]=new g(63808,"keyword",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,"Player slot.",void 0),new S(u,void 0,void 0)],R.Pop),g.GET_GUILDCARD_NUM=i.OPCODES[63809]=new g(63809,"get_guildcard_num",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.UNKNOWN_F942=i.OPCODES[63810]=new g(63810,"unknown_f942",void 0,[],void 0),g.UNKNOWN_F943=i.OPCODES[63811]=new g(63811,"unknown_f943",void 0,[],void 0),g.GET_WRAP_STATUS=i.OPCODES[63812]=new g(63812,"get_wrap_status",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.INITIAL_FLOOR=i.OPCODES[63813]=new g(63813,"initial_floor",void 0,[new S(_,void 0,void 0)],R.Pop),g.SIN=i.OPCODES[63814]=new g(63814,"sin",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.COS=i.OPCODES[63815]=new g(63815,"cos",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F948=i.OPCODES[63816]=new g(63816,"unknown_f948",void 0,[],void 0),g.UNKNOWN_F949=i.OPCODES[63817]=new g(63817,"unknown_f949",void 0,[],void 0),g.BOSS_IS_DEAD2=i.OPCODES[63818]=new g(63818,"boss_is_dead2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F94B=i.OPCODES[63819]=new g(63819,"unknown_f94b",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F94C=i.OPCODES[63820]=new g(63820,"unknown_f94c",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.IS_THERE_CARDBATTLE=i.OPCODES[63821]=new g(63821,"is_there_cardbattle",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F94E=i.OPCODES[63822]=new g(63822,"unknown_f94e",void 0,[],void 0),g.UNKNOWN_F94F=i.OPCODES[63823]=new g(63823,"unknown_f94f",void 0,[],void 0),g.BB_P2_MENU=i.OPCODES[63824]=new g(63824,"bb_p2_menu",void 0,[new S(_,void 0,void 0)],R.Pop),g.BB_MAP_DESIGNATE=i.OPCODES[63825]=new g(63825,"bb_map_designate",void 0,[new S(v,void 0,void 0),new S(t,void 0,void 0),new S(v,void 0,void 0),new S(v,void 0,void 0)],void 0),g.BB_GET_NUMBER_IN_PACK=i.OPCODES[63826]=new g(63826,"bb_get_number_in_pack",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.BB_SWAP_ITEM=i.OPCODES[63827]=new g(63827,"bb_swap_item",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_CHECK_WRAP=i.OPCODES[63828]=new g(63828,"bb_check_wrap",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_ITEM=i.OPCODES[63829]=new g(63829,"bb_exchange_pd_item",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_SRANK=i.OPCODES[63830]=new g(63830,"bb_exchange_pd_srank",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_SPECIAL=i.OPCODES[63831]=new g(63831,"bb_exchange_pd_special",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_PERCENT=i.OPCODES[63832]=new g(63832,"bb_exchange_pd_percent",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.UNKNOWN_F959=i.OPCODES[63833]=new g(63833,"unknown_f959",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F95A=i.OPCODES[63834]=new g(63834,"unknown_f95a",void 0,[],void 0),g.UNKNOWN_F95B=i.OPCODES[63835]=new g(63835,"unknown_f95b",void 0,[],void 0),g.BB_EXCHANGE_SLT=i.OPCODES[63836]=new g(63836,"bb_exchange_slt",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PC=i.OPCODES[63837]=new g(63837,"bb_exchange_pc",void 0,[],void 0),g.BB_BOX_CREATE_BP=i.OPCODES[63838]=new g(63838,"bb_box_create_bp",void 0,[new S(_,void 0,void 0),new S(w,void 0,void 0),new S(w,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PT=i.OPCODES[63839]=new g(63839,"bb_exchange_pt",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.UNKNOWN_F960=i.OPCODES[63840]=new g(63840,"unknown_f960",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F961=i.OPCODES[63841]=new g(63841,"unknown_f961",void 0,[],void 0),g.UNKNOWN_F962=i.OPCODES[63842]=new g(63842,"unknown_f962",void 0,[],void 0),g.UNKNOWN_F963=i.OPCODES[63843]=new g(63843,"unknown_f963",void 0,[],void 0),g.UNKNOWN_F964=i.OPCODES[63844]=new g(63844,"unknown_f964",void 0,[],void 0),g.UNKNOWN_F965=i.OPCODES[63845]=new g(63845,"unknown_f965",void 0,[],void 0),g.UNKNOWN_F966=i.OPCODES[63846]=new g(63846,"unknown_f966",void 0,[],void 0),g.UNKNOWN_F967=i.OPCODES[63847]=new g(63847,"unknown_f967",void 0,[],void 0),g.UNKNOWN_F968=i.OPCODES[63848]=new g(63848,"unknown_f968",void 0,[],void 0),g.UNKNOWN_F969=i.OPCODES[63849]=new g(63849,"unknown_f969",void 0,[],void 0),g.UNKNOWN_F96A=i.OPCODES[63850]=new g(63850,"unknown_f96a",void 0,[],void 0),g.UNKNOWN_F96B=i.OPCODES[63851]=new g(63851,"unknown_f96b",void 0,[],void 0),g.UNKNOWN_F96C=i.OPCODES[63852]=new g(63852,"unknown_f96c",void 0,[],void 0),g.UNKNOWN_F96D=i.OPCODES[63853]=new g(63853,"unknown_f96d",void 0,[],void 0),g.UNKNOWN_F96E=i.OPCODES[63854]=new g(63854,"unknown_f96e",void 0,[],void 0),g.UNKNOWN_F96F=i.OPCODES[63855]=new g(63855,"unknown_f96f",void 0,[],void 0),g.UNKNOWN_F970=i.OPCODES[63856]=new g(63856,"unknown_f970",void 0,[],void 0),g.UNKNOWN_F971=i.OPCODES[63857]=new g(63857,"unknown_f971",void 0,[],void 0),g.UNKNOWN_F972=i.OPCODES[63858]=new g(63858,"unknown_f972",void 0,[],void 0),g.UNKNOWN_F973=i.OPCODES[63859]=new g(63859,"unknown_f973",void 0,[],void 0),g.UNKNOWN_F974=i.OPCODES[63860]=new g(63860,"unknown_f974",void 0,[],void 0),g.UNKNOWN_F975=i.OPCODES[63861]=new g(63861,"unknown_f975",void 0,[],void 0),g.UNKNOWN_F976=i.OPCODES[63862]=new g(63862,"unknown_f976",void 0,[],void 0),g.UNKNOWN_F977=i.OPCODES[63863]=new g(63863,"unknown_f977",void 0,[],void 0),g.UNKNOWN_F978=i.OPCODES[63864]=new g(63864,"unknown_f978",void 0,[],void 0),g.UNKNOWN_F979=i.OPCODES[63865]=new g(63865,"unknown_f979",void 0,[],void 0),g.UNKNOWN_F97A=i.OPCODES[63866]=new g(63866,"unknown_f97a",void 0,[],void 0),g.UNKNOWN_F97B=i.OPCODES[63867]=new g(63867,"unknown_f97b",void 0,[],void 0),g.UNKNOWN_F97C=i.OPCODES[63868]=new g(63868,"unknown_f97c",void 0,[],void 0),g.UNKNOWN_F97D=i.OPCODES[63869]=new g(63869,"unknown_f97d",void 0,[],void 0),g.UNKNOWN_F97E=i.OPCODES[63870]=new g(63870,"unknown_f97e",void 0,[],void 0),g.UNKNOWN_F97F=i.OPCODES[63871]=new g(63871,"unknown_f97f",void 0,[],void 0),g.UNKNOWN_F980=i.OPCODES[63872]=new g(63872,"unknown_f980",void 0,[],void 0),g.UNKNOWN_F981=i.OPCODES[63873]=new g(63873,"unknown_f981",void 0,[],void 0),g.UNKNOWN_F982=i.OPCODES[63874]=new g(63874,"unknown_f982",void 0,[],void 0),g.UNKNOWN_F983=i.OPCODES[63875]=new g(63875,"unknown_f983",void 0,[],void 0),g.UNKNOWN_F984=i.OPCODES[63876]=new g(63876,"unknown_f984",void 0,[],void 0),g.UNKNOWN_F985=i.OPCODES[63877]=new g(63877,"unknown_f985",void 0,[],void 0),g.UNKNOWN_F986=i.OPCODES[63878]=new g(63878,"unknown_f986",void 0,[],void 0),g.UNKNOWN_F987=i.OPCODES[63879]=new g(63879,"unknown_f987",void 0,[],void 0),g.UNKNOWN_F988=i.OPCODES[63880]=new g(63880,"unknown_f988",void 0,[],void 0),g.UNKNOWN_F989=i.OPCODES[63881]=new g(63881,"unknown_f989",void 0,[],void 0),g.UNKNOWN_F98A=i.OPCODES[63882]=new g(63882,"unknown_f98a",void 0,[],void 0),g.UNKNOWN_F98B=i.OPCODES[63883]=new g(63883,"unknown_f98b",void 0,[],void 0),g.UNKNOWN_F98C=i.OPCODES[63884]=new g(63884,"unknown_f98c",void 0,[],void 0),g.UNKNOWN_F98D=i.OPCODES[63885]=new g(63885,"unknown_f98d",void 0,[],void 0),g.UNKNOWN_F98E=i.OPCODES[63886]=new g(63886,"unknown_f98e",void 0,[],void 0),g.UNKNOWN_F98F=i.OPCODES[63887]=new g(63887,"unknown_f98f",void 0,[],void 0),g.UNKNOWN_F990=i.OPCODES[63888]=new g(63888,"unknown_f990",void 0,[],void 0),g.UNKNOWN_F991=i.OPCODES[63889]=new g(63889,"unknown_f991",void 0,[],void 0),g.UNKNOWN_F992=i.OPCODES[63890]=new g(63890,"unknown_f992",void 0,[],void 0),g.UNKNOWN_F993=i.OPCODES[63891]=new g(63891,"unknown_f993",void 0,[],void 0),g.UNKNOWN_F994=i.OPCODES[63892]=new g(63892,"unknown_f994",void 0,[],void 0),g.UNKNOWN_F995=i.OPCODES[63893]=new g(63893,"unknown_f995",void 0,[],void 0),g.UNKNOWN_F996=i.OPCODES[63894]=new g(63894,"unknown_f996",void 0,[],void 0),g.UNKNOWN_F997=i.OPCODES[63895]=new g(63895,"unknown_f997",void 0,[],void 0),g.UNKNOWN_F998=i.OPCODES[63896]=new g(63896,"unknown_f998",void 0,[],void 0),g.UNKNOWN_F999=i.OPCODES[63897]=new g(63897,"unknown_f999",void 0,[],void 0),g.UNKNOWN_F99A=i.OPCODES[63898]=new g(63898,"unknown_f99a",void 0,[],void 0),g.UNKNOWN_F99B=i.OPCODES[63899]=new g(63899,"unknown_f99b",void 0,[],void 0),g.UNKNOWN_F99C=i.OPCODES[63900]=new g(63900,"unknown_f99c",void 0,[],void 0),g.UNKNOWN_F99D=i.OPCODES[63901]=new g(63901,"unknown_f99d",void 0,[],void 0),g.UNKNOWN_F99E=i.OPCODES[63902]=new g(63902,"unknown_f99e",void 0,[],void 0),g.UNKNOWN_F99F=i.OPCODES[63903]=new g(63903,"unknown_f99f",void 0,[],void 0),g.UNKNOWN_F9A0=i.OPCODES[63904]=new g(63904,"unknown_f9a0",void 0,[],void 0),g.UNKNOWN_F9A1=i.OPCODES[63905]=new g(63905,"unknown_f9a1",void 0,[],void 0),g.UNKNOWN_F9A2=i.OPCODES[63906]=new g(63906,"unknown_f9a2",void 0,[],void 0),g.UNKNOWN_F9A3=i.OPCODES[63907]=new g(63907,"unknown_f9a3",void 0,[],void 0),g.UNKNOWN_F9A4=i.OPCODES[63908]=new g(63908,"unknown_f9a4",void 0,[],void 0),g.UNKNOWN_F9A5=i.OPCODES[63909]=new g(63909,"unknown_f9a5",void 0,[],void 0),g.UNKNOWN_F9A6=i.OPCODES[63910]=new g(63910,"unknown_f9a6",void 0,[],void 0),g.UNKNOWN_F9A7=i.OPCODES[63911]=new g(63911,"unknown_f9a7",void 0,[],void 0),g.UNKNOWN_F9A8=i.OPCODES[63912]=new g(63912,"unknown_f9a8",void 0,[],void 0),g.UNKNOWN_F9A9=i.OPCODES[63913]=new g(63913,"unknown_f9a9",void 0,[],void 0),g.UNKNOWN_F9AA=i.OPCODES[63914]=new g(63914,"unknown_f9aa",void 0,[],void 0),g.UNKNOWN_F9AB=i.OPCODES[63915]=new g(63915,"unknown_f9ab",void 0,[],void 0),g.UNKNOWN_F9AC=i.OPCODES[63916]=new g(63916,"unknown_f9ac",void 0,[],void 0),g.UNKNOWN_F9AD=i.OPCODES[63917]=new g(63917,"unknown_f9ad",void 0,[],void 0),g.UNKNOWN_F9AE=i.OPCODES[63918]=new g(63918,"unknown_f9ae",void 0,[],void 0),g.UNKNOWN_F9AF=i.OPCODES[63919]=new g(63919,"unknown_f9af",void 0,[],void 0),g.UNKNOWN_F9B0=i.OPCODES[63920]=new g(63920,"unknown_f9b0",void 0,[],void 0),g.UNKNOWN_F9B1=i.OPCODES[63921]=new g(63921,"unknown_f9b1",void 0,[],void 0),g.UNKNOWN_F9B2=i.OPCODES[63922]=new g(63922,"unknown_f9b2",void 0,[],void 0),g.UNKNOWN_F9B3=i.OPCODES[63923]=new g(63923,"unknown_f9b3",void 0,[],void 0),g.UNKNOWN_F9B4=i.OPCODES[63924]=new g(63924,"unknown_f9b4",void 0,[],void 0),g.UNKNOWN_F9B5=i.OPCODES[63925]=new g(63925,"unknown_f9b5",void 0,[],void 0),g.UNKNOWN_F9B6=i.OPCODES[63926]=new g(63926,"unknown_f9b6",void 0,[],void 0),g.UNKNOWN_F9B7=i.OPCODES[63927]=new g(63927,"unknown_f9b7",void 0,[],void 0),g.UNKNOWN_F9B8=i.OPCODES[63928]=new g(63928,"unknown_f9b8",void 0,[],void 0),g.UNKNOWN_F9B9=i.OPCODES[63929]=new g(63929,"unknown_f9b9",void 0,[],void 0),g.UNKNOWN_F9BA=i.OPCODES[63930]=new g(63930,"unknown_f9ba",void 0,[],void 0),g.UNKNOWN_F9BB=i.OPCODES[63931]=new g(63931,"unknown_f9bb",void 0,[],void 0),g.UNKNOWN_F9BC=i.OPCODES[63932]=new g(63932,"unknown_f9bc",void 0,[],void 0),g.UNKNOWN_F9BD=i.OPCODES[63933]=new g(63933,"unknown_f9bd",void 0,[],void 0),g.UNKNOWN_F9BE=i.OPCODES[63934]=new g(63934,"unknown_f9be",void 0,[],void 0),g.UNKNOWN_F9BF=i.OPCODES[63935]=new g(63935,"unknown_f9bf",void 0,[],void 0),g.UNKNOWN_F9C0=i.OPCODES[63936]=new g(63936,"unknown_f9c0",void 0,[],void 0),g.UNKNOWN_F9C1=i.OPCODES[63937]=new g(63937,"unknown_f9c1",void 0,[],void 0),g.UNKNOWN_F9C2=i.OPCODES[63938]=new g(63938,"unknown_f9c2",void 0,[],void 0),g.UNKNOWN_F9C3=i.OPCODES[63939]=new g(63939,"unknown_f9c3",void 0,[],void 0),g.UNKNOWN_F9C4=i.OPCODES[63940]=new g(63940,"unknown_f9c4",void 0,[],void 0),g.UNKNOWN_F9C5=i.OPCODES[63941]=new g(63941,"unknown_f9c5",void 0,[],void 0),g.UNKNOWN_F9C6=i.OPCODES[63942]=new g(63942,"unknown_f9c6",void 0,[],void 0),g.UNKNOWN_F9C7=i.OPCODES[63943]=new g(63943,"unknown_f9c7",void 0,[],void 0),g.UNKNOWN_F9C8=i.OPCODES[63944]=new g(63944,"unknown_f9c8",void 0,[],void 0),g.UNKNOWN_F9C9=i.OPCODES[63945]=new g(63945,"unknown_f9c9",void 0,[],void 0),g.UNKNOWN_F9CA=i.OPCODES[63946]=new g(63946,"unknown_f9ca",void 0,[],void 0),g.UNKNOWN_F9CB=i.OPCODES[63947]=new g(63947,"unknown_f9cb",void 0,[],void 0),g.UNKNOWN_F9CC=i.OPCODES[63948]=new g(63948,"unknown_f9cc",void 0,[],void 0),g.UNKNOWN_F9CD=i.OPCODES[63949]=new g(63949,"unknown_f9cd",void 0,[],void 0),g.UNKNOWN_F9CE=i.OPCODES[63950]=new g(63950,"unknown_f9ce",void 0,[],void 0),g.UNKNOWN_F9CF=i.OPCODES[63951]=new g(63951,"unknown_f9cf",void 0,[],void 0),g.UNKNOWN_F9D0=i.OPCODES[63952]=new g(63952,"unknown_f9d0",void 0,[],void 0),g.UNKNOWN_F9D1=i.OPCODES[63953]=new g(63953,"unknown_f9d1",void 0,[],void 0),g.UNKNOWN_F9D2=i.OPCODES[63954]=new g(63954,"unknown_f9d2",void 0,[],void 0),g.UNKNOWN_F9D3=i.OPCODES[63955]=new g(63955,"unknown_f9d3",void 0,[],void 0),g.UNKNOWN_F9D4=i.OPCODES[63956]=new g(63956,"unknown_f9d4",void 0,[],void 0),g.UNKNOWN_F9D5=i.OPCODES[63957]=new g(63957,"unknown_f9d5",void 0,[],void 0),g.UNKNOWN_F9D6=i.OPCODES[63958]=new g(63958,"unknown_f9d6",void 0,[],void 0),g.UNKNOWN_F9D7=i.OPCODES[63959]=new g(63959,"unknown_f9d7",void 0,[],void 0),g.UNKNOWN_F9D8=i.OPCODES[63960]=new g(63960,"unknown_f9d8",void 0,[],void 0),g.UNKNOWN_F9D9=i.OPCODES[63961]=new g(63961,"unknown_f9d9",void 0,[],void 0),g.UNKNOWN_F9DA=i.OPCODES[63962]=new g(63962,"unknown_f9da",void 0,[],void 0),g.UNKNOWN_F9DB=i.OPCODES[63963]=new g(63963,"unknown_f9db",void 0,[],void 0),g.UNKNOWN_F9DC=i.OPCODES[63964]=new g(63964,"unknown_f9dc",void 0,[],void 0),g.UNKNOWN_F9DD=i.OPCODES[63965]=new g(63965,"unknown_f9dd",void 0,[],void 0),g.UNKNOWN_F9DE=i.OPCODES[63966]=new g(63966,"unknown_f9de",void 0,[],void 0),g.UNKNOWN_F9DF=i.OPCODES[63967]=new g(63967,"unknown_f9df",void 0,[],void 0),g.UNKNOWN_F9E0=i.OPCODES[63968]=new g(63968,"unknown_f9e0",void 0,[],void 0),g.UNKNOWN_F9E1=i.OPCODES[63969]=new g(63969,"unknown_f9e1",void 0,[],void 0),g.UNKNOWN_F9E2=i.OPCODES[63970]=new g(63970,"unknown_f9e2",void 0,[],void 0),g.UNKNOWN_F9E3=i.OPCODES[63971]=new g(63971,"unknown_f9e3",void 0,[],void 0),g.UNKNOWN_F9E4=i.OPCODES[63972]=new g(63972,"unknown_f9e4",void 0,[],void 0),g.UNKNOWN_F9E5=i.OPCODES[63973]=new g(63973,"unknown_f9e5",void 0,[],void 0),g.UNKNOWN_F9E6=i.OPCODES[63974]=new g(63974,"unknown_f9e6",void 0,[],void 0),g.UNKNOWN_F9E7=i.OPCODES[63975]=new g(63975,"unknown_f9e7",void 0,[],void 0),g.UNKNOWN_F9E8=i.OPCODES[63976]=new g(63976,"unknown_f9e8",void 0,[],void 0),g.UNKNOWN_F9E9=i.OPCODES[63977]=new g(63977,"unknown_f9e9",void 0,[],void 0),g.UNKNOWN_F9EA=i.OPCODES[63978]=new g(63978,"unknown_f9ea",void 0,[],void 0),g.UNKNOWN_F9EB=i.OPCODES[63979]=new g(63979,"unknown_f9eb",void 0,[],void 0),g.UNKNOWN_F9EC=i.OPCODES[63980]=new g(63980,"unknown_f9ec",void 0,[],void 0),g.UNKNOWN_F9ED=i.OPCODES[63981]=new g(63981,"unknown_f9ed",void 0,[],void 0),g.UNKNOWN_F9EE=i.OPCODES[63982]=new g(63982,"unknown_f9ee",void 0,[],void 0),g.UNKNOWN_F9EF=i.OPCODES[63983]=new g(63983,"unknown_f9ef",void 0,[],void 0),g.UNKNOWN_F9F0=i.OPCODES[63984]=new g(63984,"unknown_f9f0",void 0,[],void 0),g.UNKNOWN_F9F1=i.OPCODES[63985]=new g(63985,"unknown_f9f1",void 0,[],void 0),g.UNKNOWN_F9F2=i.OPCODES[63986]=new g(63986,"unknown_f9f2",void 0,[],void 0),g.UNKNOWN_F9F3=i.OPCODES[63987]=new g(63987,"unknown_f9f3",void 0,[],void 0),g.UNKNOWN_F9F4=i.OPCODES[63988]=new g(63988,"unknown_f9f4",void 0,[],void 0),g.UNKNOWN_F9F5=i.OPCODES[63989]=new g(63989,"unknown_f9f5",void 0,[],void 0),g.UNKNOWN_F9F6=i.OPCODES[63990]=new g(63990,"unknown_f9f6",void 0,[],void 0),g.UNKNOWN_F9F7=i.OPCODES[63991]=new g(63991,"unknown_f9f7",void 0,[],void 0),g.UNKNOWN_F9F8=i.OPCODES[63992]=new g(63992,"unknown_f9f8",void 0,[],void 0),g.UNKNOWN_F9F9=i.OPCODES[63993]=new g(63993,"unknown_f9f9",void 0,[],void 0),g.UNKNOWN_F9FA=i.OPCODES[63994]=new g(63994,"unknown_f9fa",void 0,[],void 0),g.UNKNOWN_F9FB=i.OPCODES[63995]=new g(63995,"unknown_f9fb",void 0,[],void 0),g.UNKNOWN_F9FC=i.OPCODES[63996]=new g(63996,"unknown_f9fc",void 0,[],void 0),g.UNKNOWN_F9FD=i.OPCODES[63997]=new g(63997,"unknown_f9fd",void 0,[],void 0),g.UNKNOWN_F9FE=i.OPCODES[63998]=new g(63998,"unknown_f9fe",void 0,[],void 0),g.UNKNOWN_F9FF=i.OPCODES[63999]=new g(63999,"unknown_f9ff",void 0,[],void 0),i.Opcode=g,i.OPCODES.forEach(e=>{i.OPCODES_BY_MNEMONIC.set(e.mnemonic,e)})},lg9k:function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const o=n("ZPAt");i.Instruction=class{constructor(e,i){this.opcode=e,this.args=i,this.arg_size=0,this.param_to_args=[];const n=Math.min(e.params.length,i.length);for(let d=0;d<n;d++){const n=e.params[d].type,v=i[d];switch(this.param_to_args[d]=[],n.kind){case o.Kind.ILabelVar:case o.Kind.RegRefVar:this.arg_size++;for(let e=d;e<i.length;e++)this.param_to_args[d].push(i[e]),this.arg_size+=i[e].size;break;default:this.arg_size+=v.size,this.param_to_args[d].push(v)}}this.size=e.size+this.arg_size}},function(e){e[e.Instructions=0]="Instructions",e[e.Data=1]="Data",e[e.String=2]="String"}(i.SegmentType||(i.SegmentType={}))},yAUo:function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.NewAssembly=0]="NewAssembly",e[e.AssemblyChange=1]="AssemblyChange",e[e.SignatureHelp=2]="SignatureHelp"}(i.InputMessageType||(i.InputMessageType={})),function(e){e[e.NewObjectCode=0]="NewObjectCode",e[e.SignatureHelp=1]="SignatureHelp"}(i.OutputMessageType||(i.OutputMessageType={}))},yL6M:function(e,i,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});const d=n("yAUo"),v=n("JLhb"),t=o(n("GGSb")),_=n("lg9k"),w=n("ZPAt"),O=n("ZBxL");t.default.useDefaults({defaultLevel:t.default.WARN});const s=self;let r=[];const a=[];let u;function E(){if(0!==a.length)for(const e of a.splice(0,a.length))switch(e.type){case d.InputMessageType.NewAssembly:r=e.assembly,p();break;case d.InputMessageType.AssemblyChange:l(e);break;case d.InputMessageType.SignatureHelp:N(e)}}function l(e){for(const i of e.changes){const{start_line_no:e,end_line_no:n,start_col:o,end_col:d,new_text:v}=i,t=n-e+1,_=v.split("\n");1===t?P(e,o,d,_):1===_.length?f(e,n,o,d,_[0]):(S(e,o,_[0]),R(n,d,_[_.length-1]),g(e+1,n-1,_.slice(1,_.length-1)))}p()}function N(e){let i,n=-1;if(e.line_no<r.length){const o=r[e.line_no-1],d=(new O.AssemblyLexer).tokenize_line(o),v=d.find(e=>e.type===O.TokenType.Ident);if(v&&(i=w.OPCODES_BY_MNEMONIC.get(v.value)))for(const i of d){if(i.col+i.len>e.col)break;i.type===O.TokenType.Ident&&-1===n?n=0:i.type===O.TokenType.ArgSeparator&&n++}}const o={type:d.OutputMessageType.SignatureHelp,id:e.id,opcode:i,active_param:n};s.postMessage(o)}function p(){const e=v.assemble(r),i=new Map;for(const n of e.object_code)if(n.labels.includes(0)){if(n.type===_.SegmentType.Instructions)for(const e of n.instructions)e.opcode===w.Opcode.BB_MAP_DESIGNATE&&i.set(e.args[0].value,e.args[2].value);break}const n=Object.assign({type:d.OutputMessageType.NewObjectCode,map_designations:i},e);s.postMessage(n)}function P(e,i,n,o){const d=r[e-1],v=d.slice(0,i-1),t=d.slice(n-1);1===o.length?r.splice(e-1,1,v+o[0]+t):r.splice(e-1,1,v+o[0],...o.slice(1,o.length-1),o[o.length-1]+t)}function R(e,i,n){r.splice(e-1,1,n+r[e-1].slice(i-1))}function S(e,i,n){r.splice(e-1,1,r[e-1].slice(0,i-1)+n)}function g(e,i,n){r.splice(e-1,i-e+1,...n)}function f(e,i,n,o,d){const v=r[e-1],t=r[i-1],_=v.slice(0,n-1),w=t.slice(o-1);r.splice(e-1,i-e+1,_+d+w)}s.onmessage=e=>{a.push(e.data),u||(E(),u=setTimeout(()=>{u=void 0,E()},100))}}}); |