text: parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"mepQ":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=t(require("react")),n=require("@mdx-js/react");function t(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}const a=e=>(function(t){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,n.mdx)("div",t)}),r={},d="wrapper";function i({components:e,...t}){return(0,n.mdx)(d,o({},r,t,{components:e,mdxType:"MDXLayout"}),(0,n.mdx)("h1",null,"Error Messages"),(0,n.mdx)("h3",null,"Scope {name} already declared with type {type}, but tried to change it to {type}"),(0,n.mdx)("p",null,"This error occurs if you try to redefined a previously named scope to a different type. For example, of you have a segment called ",(0,n.mdx)("inlineCode",{parentName:"p"},"code"),", you can't also have a namespace called ",(0,n.mdx)("inlineCode",{parentName:"p"},"code"),"."),(0,n.mdx)("h3",null,"Scope {name} with already declared with base address {addr}, but tried to change it to {addr}"),(0,n.mdx)("p",null,"Once a code or data segment has been declared, the base address can't be changed. You can ",(0,n.mdx)("em",{parentName:"p"},"append")," new code or data to the segment, which means you probably forgot the ",(0,n.mdx)("inlineCode",{parentName:"p"},".append")," directive. "),(0,n.mdx)("h3",null,"Could not locate {identifier} in current scope chain"),(0,n.mdx)("p",null,"The identifier couldn't be found in the current lexical scope. In general the assembler is forgiving and will perform look-ahead to locate any identifiers yet to be defined, but this only works within the current file. This means that if you are referencing identifiers in another file, that file must be imported first."),(0,n.mdx)("h3",null,"Unexpected operator in unary expression: {operator}"),(0,n.mdx)("p",null,"Unary expressions only support ",(0,n.mdx)("inlineCode",{parentName:"p"},"!")," and ",(0,n.mdx)("inlineCode",{parentName:"p"},"-"),"."),(0,n.mdx)("h3",null,"Unexpected operator in binary expression: {operator}"),(0,n.mdx)("p",null,"Binary expressions only support ",(0,n.mdx)("inlineCode",{parentName:"p"},"+"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"-"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"/"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"*"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"&"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"|"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"^"),", ",(0,n.mdx)("inlineCode",{parentName:"p"},"<<"),", and ",(0,n.mdx)("inlineCode",{parentName:"p"},">>"),"."),(0,n.mdx)("h3",null,"Unexpected token in expression: {token type}"),(0,n.mdx)("p",null,"This should never happen. If it does, an internal parsing error has occurred."),(0,n.mdx)("h3",null,"Tried to assemble an unexpected token: {token}"),(0,n.mdx)("p",null,"This indicates a problem when calling the internal JavaScript assembler library."),(0,n.mdx)("h3",null,"Attempted to loop beyond short range"),(0,n.mdx)("p",null,"The ",(0,n.mdx)("inlineCode",{parentName:"p"},"LOOPS")," instruction can only loop to instructions within ",(0,n.mdx)("inlineCode",{parentName:"p"},"-128")," to ",(0,n.mdx)("inlineCode",{parentName:"p"},"+127")," bytes from the current instruction."),(0,n.mdx)("h3",null,"Attempted to loop beyond range"),(0,n.mdx)("p",null,"The ",(0,n.mdx)("inlineCode",{parentName:"p"},"LOOP")," instruction can only loop to instructions within ",(0,n.mdx)("inlineCode",{parentName:"p"},"-32768")," to ",(0,n.mdx)("inlineCode",{parentName:"p"},"+32767")," bytes from the current instruction."),(0,n.mdx)("h3",null,"Tried to assemble an undefined AST."),(0,n.mdx)("p",null,"Somehow the parse tree became undefined when using the JavaScript assembler."),(0,n.mdx)("h3",null,"Tried to assemble an invalid AST."),(0,n.mdx)("p",null,"You passed an incorrect AST to the JavaScript assembler."),(0,n.mdx)("h3",null,"Cannot redefine constant {identifier}"),(0,n.mdx)("p",null,"Once defined, constants cannot be redefined."),(0,n.mdx)("h3",null,"Unexpected label {identifier} in {scope} scope"),(0,n.mdx)("p",null,"Labels can only occur in code or data segments."),(0,n.mdx)("h3",null,"Unexpected data directive in {scope} scope"),(0,n.mdx)("p",null,"Data directives can only occur in code or data segments."),(0,n.mdx)("h3",null,"Unexpected string directive in {scope} scope"),(0,n.mdx)("p",null,"String directives can only occur in code or data segments."),(0,n.mdx)("h3",null,"Unexpected code in {scope} scope"),(0,n.mdx)("p",null,"Code can only occur in code or data segments."),(0,n.mdx)("h3",null,"Could not locate symbol"),(0,n.mdx)("p",null,"The assember tried to look ahead and locate the symbol, but it couldn't find a declaration."),(0,n.mdx)("h3",null,"Bytes mismatched at {line}:{col}. Expected {bytes}, saw {bytes}"),(0,n.mdx)("p",null,"When using the ",(0,n.mdx)("inlineCode",{parentName:"p"},"{...}")," directive to test the assembler's output, the assembler generated different bytes than what was specified."),(0,n.mdx)("h3",null,"Non-contiguous code or data in segment {name}"),(0,n.mdx)("p",null,"Somehow the data or code wasn't contiguous in the segment. This generally indicates an internal error of some sort."),(0,n.mdx)("h3",null,"Literal cannot be a reserved word"),(0,n.mdx)("p",null,"The literal in question cannot be a reserved word. This generally means you tried to use ",(0,n.mdx)("inlineCode",{parentName:"p"},"loop")," for an identifier, or something similar."),(0,n.mdx)("h3",null,"Label cannot be a reserved word"),(0,n.mdx)("p",null,"The label cannot be a reserved word. Using ",(0,n.mdx)("inlineCode",{parentName:"p"},"loop:")," as a label will generate this error since ",(0,n.mdx)("inlineCode",{parentName:"p"},"loop")," is an instruction and a reserved word."))}i.isMDXComponent=!0;
  },{"react":"SAdv","@mdx-js/react":"QaRW"}]},{},[], null)
  //# sourceMappingURL=/assembler-error-messages.67e5109c.js.map