import{A as h}from"./index.f4d41e67.entry.js";function v(l,f){return f.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in l)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(l,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(l,f){(function(r){r(h.exports)})(function(r){r.defineMode("z80",function(n,o){var d=o.ez80,c,u;d?(c=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,u=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(c=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,u=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var x=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,p=/^(n?[zc]|p[oe]?|m)\b/i,b=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,t){if(e.column()||(t.context=0),e.eatSpace())return null;var i;if(e.eatWhile(/\w/))if(d&&e.eat(".")&&e.eatWhile(/\w/),i=e.current(),e.indentation()){if((t.context==1||t.context==4)&&x.test(i))return t.context=4,"var2";if(t.context==2&&p.test(i))return t.context=4,"var3";if(c.test(i))return t.context=1,"keyword";if(u.test(i))return t.context=2,"keyword";if(t.context==4&&a.test(i))return"number";if(b.test(i))return"error"}else return e.match(a)?"number":null;else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(i=e.next())&&i!='"';)i=="\\"&&e.next();return"string"}else if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(t.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}}),r.defineMIME("text/x-z80","z80"),r.defineMIME("text/x-ez80",{name:"z80",ez80:!0})})})();var z=s.exports,g=v({__proto__:null,default:z},[s.exports]);export{g as z};
