{"schema":1,"platform":"spectrum","game":"laser-squad","part":"engine","title":"Laser Squad","build":"Blade Software's 48K tape (TOSEC: Laser Squad (1988)(Blade)[scenario 1-2].tzx and [scenario 3-5].tzx): a BASIC loader, the loading screen, the 22,521-byte engine at $5E28-$B620 and five headerless scenario blocks of 18,911 bytes each, loaded at $B621-$FFFF","symbols_sha256":"fbb609dde145d8bfe691686941d214dcab684f015962d5f4292bb8bb8a77b7ff","snapshot":{"file":"work/entry.sna","sha256":"4e640e44c7a9ce370aa9d72a3d113d7b94675c5be16d486b6a1762ac000c90e4"},"index":[{"a":24104,"n":"start","k":"routine","len":24,"c":true},{"a":24128,"n":"computerSide","k":"routine","len":12,"c":true},{"a":24140,"n":"newGame","k":"routine","len":70,"c":true},{"a":24210,"n":"turns","k":"routine","len":20,"c":true},{"a":24230,"n":"halfTurn","k":"routine","len":257,"c":true},{"a":24487,"n":"viewSlot","k":"routine","len":13,"c":true},{"a":24500,"n":"turnScreen","k":"routine","len":74,"c":true},{"a":24574,"n":"scores","k":"routine","len":46,"c":true},{"a":24620,"n":"clearScreen","k":"routine","len":1,"c":true},{"a":24621,"n":"clearScreenA","k":"routine","len":21,"c":true},{"a":24642,"n":"screenRows","k":"table","len":48,"c":true},{"a":24690,"n":"printChar","k":"routine","len":61,"c":true},{"a":24751,"n":"drawTile","k":"routine","len":88,"c":true},{"a":24839,"n":"copyCell","k":"routine","len":11,"c":true},{"a":24850,"n":"mapSquare","k":"routine","len":24,"c":true},{"a":24874,"n":"drawView","k":"routine","len":68,"c":true},{"a":24942,"n":"drawSquare","k":"routine","len":19,"c":true},{"a":24961,"n":"drawViewColumns","k":"routine","len":66,"c":true},{"a":25027,"n":"cursorStep","k":"routine","len":82,"c":true},{"a":25109,"n":"crosshairLoop","k":"routine","len":47,"c":true},{"a":25156,"n":"crosshairBlink","k":"routine","len":11,"c":true},{"a":25167,"n":"crosshairMove","k":"routine","len":55,"c":true},{"a":25222,"n":"accelDelay","k":"routine","len":30,"c":true},{"a":25252,"n":"squareReadout","k":"routine","len":54,"c":true},{"a":25306,"n":"delay3","k":"routine","len":5,"c":true},{"a":25311,"n":"delay1","k":"routine","len":5,"c":true},{"a":25316,"n":"delay40","k":"routine","len":5,"c":true},{"a":25321,"n":"delay200","k":"routine","len":13,"c":true},{"a":25334,"n":"moveCursor","k":"routine","len":11,"c":true},{"a":25345,"n":"readMove","k":"routine","len":44,"c":true},{"a":25389,"n":"stepUp","k":"routine","len":9,"c":true},{"a":25398,"n":"stepDown","k":"routine","len":9,"c":true},{"a":25407,"n":"stepRight","k":"routine","len":9,"c":true},{"a":25416,"n":"stepLeft","k":"routine","len":9,"c":true},{"a":25425,"n":"noteMove","k":"routine","len":10,"c":true},{"a":25435,"n":"SCROLLED","k":"variable","len":1,"c":true},{"a":25436,"n":"cursorRight","k":"routine","len":36,"c":true},{"a":25472,"n":"cursorLeft","k":"routine","len":32,"c":true},{"a":25504,"n":"cursorUp","k":"routine","len":32,"c":true},{"a":25536,"n":"cursorDown","k":"routine","len":34,"c":true},{"a":25570,"n":"showMove","k":"routine","len":40,"c":true},{"a":25610,"n":"scrollView","k":"routine","len":14,"c":true},{"a":25624,"n":"scrollJumps","k":"routine","len":30,"c":true},{"a":25654,"n":"drawCursor","k":"routine","len":20,"c":true},{"a":25674,"n":"eraseCursor","k":"routine","len":12,"c":true},{"a":25686,"n":"drawSquareAt","k":"routine","len":22,"c":true},{"a":25708,"n":"drawViewUp","k":"routine","len":68,"c":true},{"a":25776,"n":"drawViewLeft","k":"routine","len":71,"c":true},{"a":25847,"n":"printCharDouble","k":"routine","len":96,"c":true},{"a":25943,"n":"printMessage","k":"routine","len":144,"c":true},{"a":26087,"n":"putChar","k":"routine","len":21,"c":true},{"a":26108,"n":"advance","k":"routine","len":27,"c":true},{"a":26135,"n":"newLine","k":"routine","len":40,"c":true},{"a":26175,"n":"textCode","k":"routine","len":146,"c":true},{"a":26321,"n":"repeatDelay","k":"routine","len":39,"c":true},{"a":26360,"n":"printNumber","k":"routine","len":51,"c":true},{"a":26411,"n":"twoDigits","k":"routine","len":23,"c":true},{"a":26434,"n":"digitOn","k":"routine","len":2,"c":true},{"a":26436,"n":"charOn","k":"routine","len":8,"c":true},{"a":26444,"n":"putDigit","k":"routine","len":18,"c":true},{"a":26462,"n":"infoText","k":"routine","len":14,"c":true},{"a":26476,"n":"text","k":"routine","len":8,"c":true},{"a":26484,"n":"engineText","k":"routine","len":17,"c":true},{"a":26501,"n":"showSides","k":"routine","len":61,"c":true},{"a":26562,"n":"unitPtr","k":"routine","len":29,"c":true},{"a":26591,"n":"objectPtr","k":"routine","len":24,"c":true},{"a":26615,"n":"terrainPtr","k":"routine","len":21,"c":true},{"a":26636,"n":"cursorSquare","k":"routine","len":12,"c":true},{"a":26648,"n":"squareInfo","k":"routine","len":115,"c":true},{"a":26763,"n":"carriedPtr","k":"routine","len":21,"c":true},{"a":26784,"n":"scenarioTextAt","k":"routine","len":3,"c":true},{"a":26787,"n":"scenarioText","k":"routine","len":33,"c":true},{"a":26820,"n":"menuSelect","k":"routine","len":84,"c":true},{"a":26904,"n":"lightLine","k":"routine","len":54,"c":true},{"a":26958,"n":"cursorMode","k":"routine","len":127,"c":true},{"a":27085,"n":"clearInfo","k":"routine","len":6,"c":true},{"a":27091,"n":"ownUnit","k":"routine","len":27,"c":true},{"a":27118,"n":"menuOpen","k":"routine","len":34,"c":true},{"a":27152,"n":"addOption","k":"routine","len":15,"c":true},{"a":27167,"n":"dispatch","k":"routine","len":22,"c":true},{"a":27189,"n":"cursorOptions","k":"table","len":12,"c":true},{"a":27201,"n":"endTurnMenu","k":"routine","len":37,"c":true},{"a":27238,"n":"endTurnOptions","k":"table","len":4,"c":true},{"a":27242,"n":"endTurn","k":"routine","len":2,"c":true},{"a":27244,"n":"noOption","k":"routine","len":1,"c":true},{"a":27245,"n":"waitRelease","k":"routine","len":30,"c":true},{"a":27275,"n":"unitStats","k":"routine","len":125,"c":true},{"a":27400,"n":"waitKey","k":"routine","len":17,"c":true},{"a":27417,"n":"divRound","k":"routine","len":16,"c":true},{"a":27433,"n":"healthShare","k":"routine","len":14,"c":true},{"a":27447,"n":"facingText","k":"routine","len":19,"c":true},{"a":27466,"n":"floorAt","k":"routine","len":48,"c":true},{"a":27514,"n":"scenarioMessageAt","k":"routine","len":25,"c":true},{"a":27539,"n":"panelLine","k":"routine","len":41,"c":true},{"a":27580,"n":"unitPanel","k":"routine","len":110,"c":true},{"a":27690,"n":"selectUnit","k":"routine","len":137,"c":true},{"a":27827,"n":"unitMode","k":"routine","len":54,"c":true},{"a":27881,"n":"unitInput","k":"routine","len":39,"c":true},{"a":27920,"n":"setUnitTile","k":"routine","len":61,"c":true},{"a":27981,"n":"apCost","k":"variable","len":1,"c":true},{"a":27982,"n":"payAP","k":"routine","len":30,"c":true},{"a":28012,"n":"errorText","k":"routine","len":32,"c":true},{"a":28044,"n":"pause","k":"routine","len":9,"c":true},{"a":28053,"n":"waitControls","k":"routine","len":26,"c":true},{"a":28079,"n":"turnRight","k":"routine","len":47,"c":true},{"a":28126,"n":"turnLeft","k":"routine","len":47,"c":true},{"a":28173,"n":"centreOnUnit","k":"routine","len":3,"c":true},{"a":28176,"n":"centreOn","k":"routine","len":3,"c":true},{"a":28179,"n":"centreAt","k":"routine","len":66,"c":true},{"a":28245,"n":"walkForward","k":"routine","len":11,"c":true},{"a":28256,"n":"walkBack","k":"routine","len":20,"c":true},{"a":28276,"n":"stepTarget","k":"routine","len":51,"c":true},{"a":28327,"n":"steps","k":"table","len":24,"c":true},{"a":28351,"n":"stepCost","k":"routine","len":202,"c":true},{"a":28553,"n":"makeStep","k":"routine","len":152,"c":true},{"a":28705,"n":"canGoOn","k":"routine","len":14,"c":true},{"a":28719,"n":"keepPlace","k":"routine","len":19,"c":true},{"a":28738,"n":"undoMove","k":"routine","len":79,"c":true},{"a":28817,"n":"lineVars","k":"table","len":34,"c":true},{"a":28851,"n":"lineError","k":"routine","len":23,"c":true},{"a":28874,"n":"lineSetup","k":"routine","len":158,"c":true},{"a":29032,"n":"lineStep","k":"routine","len":64,"c":true},{"a":29096,"n":"hideSide","k":"routine","len":47,"c":true},{"a":29143,"n":"showAllUnits","k":"routine","len":42,"c":true},{"a":29185,"n":"lineClear4","k":"routine","len":4,"c":true},{"a":29189,"n":"lineClear2","k":"routine","len":4,"c":true},{"a":29193,"n":"lineClear","k":"routine","len":97,"c":true},{"a":29290,"n":"findSeen","k":"routine","len":25,"c":true},{"a":29315,"n":"findSeenAll","k":"routine","len":21,"c":true},{"a":29336,"n":"seenFrom","k":"routine","len":142,"c":true},{"a":29478,"n":"inView","k":"routine","len":43,"c":true},{"a":29521,"n":"facingJumps","k":"table","len":16,"c":true},{"a":29537,"n":"facing4","k":"routine","len":5,"c":true},{"a":29542,"n":"facing5","k":"routine","len":5,"c":true},{"a":29547,"n":"facing6","k":"routine","len":5,"c":true},{"a":29552,"n":"facing7","k":"routine","len":3,"c":true},{"a":29555,"n":"turnAbout","k":"routine","len":5,"c":true},{"a":29560,"n":"facing0","k":"routine","len":38,"c":true},{"a":29598,"n":"facing2","k":"routine","len":38,"c":true},{"a":29636,"n":"facing1","k":"routine","len":47,"c":true},{"a":29683,"n":"facing3","k":"routine","len":47,"c":true},{"a":29730,"n":"showSeen","k":"routine","len":102,"c":true},{"a":29832,"n":"tableUnits","k":"routine","len":57,"c":true},{"a":29889,"n":"placeUnit","k":"routine","len":33,"c":true},{"a":29922,"n":"posOf","k":"routine","len":28,"c":true},{"a":29950,"n":"seenBefore","k":"variable","len":1,"c":true},{"a":29951,"n":"seenCount","k":"routine","len":94,"c":true},{"a":30045,"n":"startReaction","k":"routine","len":490,"c":true},{"a":30535,"n":"sideView","k":"routine","len":67,"c":true},{"a":30602,"n":"panView","k":"routine","len":99,"c":true},{"a":30701,"n":"hideUnits","k":"routine","len":10,"c":true},{"a":30711,"n":"waitFire","k":"routine","len":26,"c":true},{"a":30737,"n":"afterAction","k":"routine","len":31,"c":true},{"a":30768,"n":"revealBehind","k":"routine","len":45,"c":true},{"a":30813,"n":"listCarried","k":"routine","len":78,"c":true},{"a":30891,"n":"findCarried","k":"routine","len":23,"c":true},{"a":30914,"n":"addLine","k":"routine","len":11,"c":true},{"a":30925,"n":"unitMenu","k":"routine","len":260,"c":true},{"a":31185,"n":"unitOptions","k":"table","len":28,"c":true},{"a":31213,"n":"doneOption","k":"routine","len":9,"c":true},{"a":31222,"n":"cancelOption","k":"routine","len":1,"c":true},{"a":31223,"n":"openDoor","k":"routine","len":34,"c":true},{"a":31257,"n":"lockDoor","k":"routine","len":30,"c":true},{"a":31287,"n":"changeItem","k":"routine","len":146,"c":true},{"a":31433,"n":"showCarried","k":"routine","len":204,"c":true},{"a":31637,"n":"chooseLoop","k":"routine","len":73,"c":true},{"a":31710,"n":"eraseMark","k":"routine","len":9,"c":true},{"a":31719,"n":"drawMark","k":"routine","len":15,"c":true},{"a":31734,"n":"markPos","k":"routine","len":15,"c":true},{"a":31749,"n":"dropForced","k":"routine","len":5,"c":true},{"a":31754,"n":"dropItem","k":"routine","len":162,"c":true},{"a":31916,"n":"pickUp","k":"routine","len":243,"c":true},{"a":32159,"n":"floorUnder","k":"routine","len":108,"c":true},{"a":32267,"n":"carriedLoad","k":"routine","len":61,"c":true},{"a":32328,"n":"objectAt","k":"routine","len":74,"c":true},{"a":32402,"n":"updateLoad","k":"routine","len":57,"c":true},{"a":32459,"n":"moveDir","k":"routine","len":64,"c":true},{"a":32523,"n":"attackTerrain","k":"routine","len":106,"c":true},{"a":32629,"n":"noPoints","k":"routine","len":15,"c":true},{"a":32644,"n":"targetPos","k":"routine","len":20,"c":true},{"a":32664,"n":"blowShow","k":"routine","len":41,"c":true},{"a":32705,"n":"attackStats","k":"routine","len":111,"c":true},{"a":32816,"n":"breakTerrain","k":"routine","len":101,"c":true},{"a":32917,"n":"attackRoll","k":"routine","len":28,"c":true},{"a":32945,"n":"random","k":"routine","len":28,"c":true},{"a":32973,"n":"closeCombat","k":"routine","len":213,"c":true},{"a":33186,"n":"armourHit","k":"routine","len":89,"c":true},{"a":33275,"n":"takeDamage","k":"routine","len":46,"c":true},{"a":33321,"n":"unitDies","k":"routine","len":117,"c":true},{"a":33438,"n":"moraleShock","k":"routine","len":75,"c":true},{"a":33513,"n":"moraleUp","k":"routine","len":20,"c":true},{"a":33533,"n":"moraleDown","k":"routine","len":14,"c":true},{"a":33547,"n":"addObject","k":"routine","len":44,"c":true},{"a":33591,"n":"printPercent","k":"routine","len":41,"c":true},{"a":33632,"n":"stillAble","k":"routine","len":17,"c":true},{"a":33649,"n":"hitShow","k":"routine","len":53,"c":true},{"a":33702,"n":"deathShow","k":"routine","len":102,"c":true},{"a":33804,"n":"nextUnit","k":"routine","len":56,"c":true},{"a":33860,"n":"unused8444","k":"table","len":8,"c":true},{"a":33868,"n":"plot","k":"routine","len":73,"c":true},{"a":33941,"n":"scanner","k":"routine","len":312,"c":true},{"a":34253,"n":"patternAt","k":"routine","len":44,"c":true},{"a":34297,"n":"patterns","k":"table","len":42,"c":true},{"a":34339,"n":"patternDots","k":"table","len":193,"c":true},{"a":34532,"n":"viewFrame","k":"routine","len":94,"c":true},{"a":34626,"n":"unitInfo","k":"routine","len":11,"c":true},{"a":34637,"n":"unitInfoOf","k":"routine","len":308,"c":true},{"a":34945,"n":"statLine","k":"routine","len":15,"c":true},{"a":34960,"n":"bars","k":"routine","len":187,"c":true},{"a":35147,"n":"barEnd","k":"routine","len":20,"c":true},{"a":35167,"n":"div8","k":"routine","len":21,"c":true},{"a":35188,"n":"trailAdd","k":"routine","len":61,"c":true},{"a":35249,"n":"shotFlight","k":"routine","len":100,"c":true},{"a":35349,"n":"inRange","k":"routine","len":64,"c":true},{"a":35413,"n":"trailClear","k":"routine","len":14,"c":true},{"a":35427,"n":"edgeRight","k":"routine","len":62,"c":true},{"a":35489,"n":"edgeLeft","k":"routine","len":54,"c":true},{"a":35543,"n":"edgeDown","k":"routine","len":67,"c":true},{"a":35610,"n":"edgeUp","k":"routine","len":54,"c":true},{"a":35664,"n":"crosshairDots","k":"table","len":42,"c":true},{"a":35706,"n":"drawCrosshair","k":"routine","len":45,"c":true},{"a":35751,"n":"crossPos","k":"routine","len":41,"c":true},{"a":35792,"n":"scatter","k":"routine","len":85,"c":true},{"a":35877,"n":"shotSquare","k":"routine","len":47,"c":true},{"a":35924,"n":"crossSquare","k":"routine","len":41,"c":true},{"a":35965,"n":"aimStart","k":"routine","len":251,"c":true},{"a":36216,"n":"upTo100","k":"routine","len":7,"c":true},{"a":36223,"n":"fireInfo","k":"routine","len":98,"c":true},{"a":36321,"n":"fireAP","k":"routine","len":40,"c":true},{"a":36361,"n":"fireMode","k":"routine","len":220,"c":true},{"a":36581,"n":"fireOptions","k":"table","len":14,"c":true},{"a":36595,"n":"fireCancel","k":"routine","len":1,"c":true},{"a":36596,"n":"fireEnd","k":"routine","len":45,"c":true},{"a":36641,"n":"fireUnitInfo","k":"routine","len":11,"c":true},{"a":36652,"n":"shotSound","k":"routine","len":77,"c":true},{"a":36729,"n":"autoOne","k":"routine","len":12,"c":true},{"a":36741,"n":"aimedShot","k":"routine","len":12,"c":true},{"a":36753,"n":"snapShot","k":"routine","len":10,"c":true},{"a":36763,"n":"shoot","k":"routine","len":40,"c":true},{"a":36803,"n":"ammoUse","k":"routine","len":31,"c":true},{"a":36834,"n":"shotRange","k":"routine","len":18,"c":true},{"a":36852,"n":"saveCursor","k":"routine","len":13,"c":true},{"a":36865,"n":"shotFrom","k":"routine","len":16,"c":true},{"a":36881,"n":"shotStart","k":"routine","len":50,"c":true},{"a":36931,"n":"shotHit","k":"routine","len":161,"c":true},{"a":37092,"n":"shotPath","k":"routine","len":145,"c":true},{"a":37237,"n":"shotUnit","k":"routine","len":45,"c":true},{"a":37282,"n":"shotBlast","k":"routine","len":28,"c":true},{"a":37310,"n":"shotDone","k":"routine","len":67,"c":true},{"a":37377,"n":"scoreDamage","k":"routine","len":49,"c":true},{"a":37426,"n":"autoFire","k":"routine","len":201,"c":true},{"a":37627,"n":"chooseRounds","k":"routine","len":101,"c":true},{"a":37728,"n":"burst","k":"routine","len":219,"c":true},{"a":37947,"n":"div32","k":"routine","len":23,"c":true},{"a":37970,"n":"div32Round","k":"routine","len":35,"c":true},{"a":38005,"n":"sparks","k":"routine","len":176,"c":true},{"a":38181,"n":"sparkDot","k":"routine","len":41,"c":true},{"a":38222,"n":"sparkSteps","k":"table","len":320,"c":true},{"a":38542,"n":"blastVars","k":"table","len":8,"c":true},{"a":38550,"n":"explode","k":"routine","len":376,"c":true},{"a":38926,"n":"blastRay","k":"routine","len":90,"c":true},{"a":39016,"n":"blastCell","k":"routine","len":39,"c":true},{"a":39055,"n":"cellAddr","k":"routine","len":31,"c":true},{"a":39086,"n":"lastSquare","k":"variable","len":1,"c":true},{"a":39087,"n":"cellDamage","k":"routine","len":266,"c":true},{"a":39353,"n":"fillView","k":"routine","len":22,"c":true},{"a":39375,"n":"clearFires","k":"routine","len":25,"c":true},{"a":39400,"n":"spreadFires","k":"routine","len":46,"c":true},{"a":39446,"n":"shared","k":"routine","len":49,"c":true},{"a":39495,"n":"blastSquare","k":"routine","len":85,"c":true},{"a":39580,"n":"throwIt","k":"routine","len":367,"c":true},{"a":39947,"n":"dropAt","k":"routine","len":55,"c":true},{"a":40002,"n":"prime","k":"routine","len":73,"c":true},{"a":40075,"n":"fuses","k":"routine","len":118,"c":true},{"a":40193,"n":"reload","k":"routine","len":84,"c":true},{"a":40277,"n":"deploy","k":"routine","len":210,"c":true},{"a":40487,"n":"payCredits","k":"routine","len":41,"c":true},{"a":40528,"n":"listUnits","k":"routine","len":191,"c":true},{"a":40719,"n":"armourTable","k":"routine","len":79,"c":true},{"a":40798,"n":"chooseArmour","k":"routine","len":130,"c":true},{"a":40928,"n":"unitObjects","k":"routine","len":88,"c":true},{"a":41016,"n":"emptyGrid","k":"routine","len":44,"c":true},{"a":41060,"n":"pickKind","k":"routine","len":54,"c":true},{"a":41114,"n":"kindPrice","k":"routine","len":16,"c":true},{"a":41130,"n":"showKind","k":"routine","len":51,"c":true},{"a":41181,"n":"buyOrSell","k":"routine","len":17,"c":true},{"a":41198,"n":"buy","k":"routine","len":201,"c":true},{"a":41399,"n":"lineUnit","k":"routine","len":16,"c":true},{"a":41415,"n":"sellBack","k":"routine","len":74,"c":true},{"a":41489,"n":"chooseGame","k":"routine","len":94,"c":true},{"a":41583,"n":"menuFireChoice","k":"routine","len":7,"c":true},{"a":41590,"n":"menuChoice","k":"routine","len":61,"c":true},{"a":41651,"n":"menuKeys","k":"table","len":7,"c":true},{"a":41658,"n":"gameMode","k":"routine","len":52,"c":true},{"a":41710,"n":"arrivals","k":"routine","len":129,"c":true},{"a":41839,"n":"placing","k":"variable","len":1,"c":true},{"a":41840,"n":"placeUnits","k":"routine","len":260,"c":true},{"a":42100,"n":"clearDeploy","k":"routine","len":48,"c":true},{"a":42148,"n":"checkEnd","k":"routine","len":150,"c":true},{"a":42298,"n":"sideLeft","k":"routine","len":17,"c":true},{"a":42315,"n":"nearFrom","k":"table","len":5,"c":true},{"a":42320,"n":"distance","k":"routine","len":40,"c":true},{"a":42360,"n":"sortList","k":"variable","len":2,"c":true},{"a":42362,"n":"sortNear","k":"routine","len":80,"c":true},{"a":42442,"n":"nearSteps","k":"table","len":16,"c":true},{"a":42458,"n":"nearVars","k":"table","len":6,"c":true},{"a":42464,"n":"nearSquares","k":"routine","len":110,"c":true},{"a":42574,"n":"engineMessages","k":"table","len":89,"c":true},{"a":44038,"n":"engineWords","k":"table","len":10,"c":true},{"a":45229,"n":"chooseControls","k":"routine","len":26,"c":true},{"a":45255,"n":"controlOption","k":"variable","len":1,"c":true},{"a":45256,"n":"readControls","k":"routine","len":20,"c":true},{"a":45276,"n":"readersEnd","k":"table","len":12,"c":true},{"a":45288,"n":"readSinclair","k":"routine","len":21,"c":true},{"a":45309,"n":"readKempston","k":"routine","len":26,"c":true},{"a":45335,"n":"readCursor","k":"routine","len":31,"c":true},{"a":45366,"n":"readKeys","k":"routine","len":37,"c":true},{"a":45403,"n":"tapeFailed","k":"variable","len":1,"c":true},{"a":45404,"n":"tape","k":"routine","len":61,"c":true},{"a":45465,"n":"tapeSave","k":"routine","len":7,"c":true},{"a":45472,"n":"tapeLoad","k":"routine","len":14,"c":true},{"a":45486,"n":"tapeBreak","k":"routine","len":20,"c":true},{"a":45506,"n":"tapeOp","k":"variable","len":1,"c":true},{"a":45507,"n":"mainMenu","k":"routine","len":52,"c":true},{"a":45559,"n":"turnMenu","k":"routine","len":66,"c":true},{"a":45625,"n":"font","k":"table","len":760,"c":true},{"a":46385,"n":"soundEffects","k":"table","len":10,"c":true},{"a":46515,"n":"effectNow","k":"table","len":11,"c":true},{"a":46526,"n":"sound","k":"routine","len":23,"c":true},{"a":46549,"n":"playSound","k":"routine","len":63,"c":true},{"a":46612,"n":"padding","k":"table","len":13,"c":true}],"records":[{"a":0,"t":"gap","n":24104},{"a":24104,"l":"start","c":"The engine's first instruction: the interrupts off for good, the variables at $5B00-$5E25 cleared, the border black, the stack at $5E39, and the main menu ($B1C3).","t":"code","b":[243],"m":"di"},{"a":24105,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":24108,"t":"code","b":[17,1,91],"m":"ld","o":"de,$5B01"},{"a":24111,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":24113,"t":"code","b":[1,37,3],"m":"ld","o":"bc,$0325"},{"a":24116,"t":"code","b":[237,176],"m":"ldir"},{"a":24118,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24119,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":24121,"c":"A NOP that is the bottom of the stack: the stack pointer is set to its address at every restart.","t":"code","b":[0],"m":"nop"},{"a":24122,"t":"code","b":[49,57,94],"m":"ld","o":"sp,$5E39"},{"a":24125,"t":"code","b":[195,195,177],"m":"jp","oa":45507,"o":"mainMenu"},{"a":24128,"l":"computerSide","c":"In a game against the computer ($B706 set), $5DF7 = the side whose turn it is: 1, the computer's, or 0, the player's.","t":"code","b":[58,6,183],"m":"ld","oa":46854,"o":"a,($B706)","x":[24423,30214,30423]},{"a":24131,"t":"code","b":[183],"m":"or","o":"a"},{"a":24132,"t":"code","b":[200],"m":"ret","o":"z"},{"a":24133,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":24136,"t":"code","b":[50,247,93],"m":"ld","oa":24055,"o":"($5DF7),a"},{"a":24139,"t":"code","b":[201],"m":"ret"},{"a":24140,"l":"newGame","c":"A new game: the controls ($B0AD), one player or two ($A211); the first side equips its units ($9D55) and places them ($A370), then they come off the map; the second side does the same when a player has it. The second side's squares for placing are cleared ($A474), every unit put on the map, both sides' views set to the same corner and cursor ($B707-$B70E), the units of turn 0 arrive ($A2EE), and the turns begin.","t":"code","b":[205,173,176],"m":"call","oa":45229,"o":"chooseControls","x":[45550]},{"a":24143,"t":"code","b":[205,17,162],"m":"call","oa":41489,"o":"chooseGame"},{"a":24146,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24147,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":24150,"t":"code","b":[205,85,157],"m":"call","oa":40277,"o":"deploy"},{"a":24153,"t":"code","b":[205,112,163],"m":"call","oa":41840,"o":"placeUnits"},{"a":24156,"t":"code","b":[205,136,116],"m":"call","oa":29832,"o":"tableUnits"},{"a":24159,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24160,"t":"code","b":[205,168,113],"m":"call","oa":29096,"o":"hideSide"},{"a":24163,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":24165,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":24168,"t":"code","b":[58,6,183],"m":"ld","oa":46854,"o":"a,($B706)"},{"a":24171,"t":"code","b":[183],"m":"or","o":"a"},{"a":24172,"t":"code","b":[32,6],"m":"jr","oa":24180,"o":"nz,$5E74"},{"a":24174,"t":"code","b":[205,85,157],"m":"call","oa":40277,"o":"deploy"},{"a":24177,"t":"code","b":[205,112,163],"m":"call","oa":41840,"o":"placeUnits"},{"a":24180,"t":"code","b":[205,116,164],"m":"call","oa":42100,"o":"clearDeploy","x":[24172]},{"a":24183,"t":"code","b":[205,215,113],"m":"call","oa":29143,"o":"showAllUnits"},{"a":24186,"t":"code","b":[33,19,34],"m":"ld","o":"hl,$2213"},{"a":24189,"t":"code","b":[34,7,183],"m":"ld","oa":46855,"o":"($B707),hl"},{"a":24192,"t":"code","b":[34,11,183],"m":"ld","oa":46859,"o":"($B70B),hl"},{"a":24195,"t":"code","b":[33,5,5],"m":"ld","o":"hl,$0505"},{"a":24198,"t":"code","b":[34,9,183],"m":"ld","oa":46857,"o":"($B709),hl"},{"a":24201,"t":"code","b":[34,13,183],"m":"ld","oa":46861,"o":"($B70D),hl"},{"a":24204,"t":"code","b":[205,238,162],"m":"call","oa":41710,"o":"arrivals"},{"a":24207,"t":"code","b":[205,136,116],"m":"call","oa":29832,"o":"tableUnits"},{"a":24210,"l":"turns","c":"The turns, for good: the menu between turns ($B1F7), the turn's number ($B711) on by one, the units of this turn arrived ($A2EE), each side's half-turn, and whether the game is over ($A4A4).","t":"code","b":[205,247,177],"m":"call","oa":45559,"o":"turnMenu","x":[24484,45556]},{"a":24213,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24214,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":24217,"t":"code","b":[50,54,93],"m":"ld","oa":23862,"o":"($5D36),a"},{"a":24220,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":24223,"t":"code","b":[33,17,183],"m":"ld","o":"hl,$B711"},{"a":24226,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24227,"t":"code","b":[205,238,162],"m":"call","oa":41710,"o":"arrivals"},{"a":24230,"l":"halfTurn","c":"A side's half-turn ($B712 the side). Each of its units starts it afresh: its most action points ($05) are its own ($1B) less what its load costs ($19), and its points ($06) those less its wounds' share ($6B29) and its $11.","t":"code","b":[6,20],"m":"ld","o":"b,$14","x":[24478]},{"a":24232,"t":"code","b":[197],"m":"push","o":"bc","x":[24395]},{"a":24233,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":24235,"t":"code","b":[144],"m":"sub","o":"b"},{"a":24236,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":24239,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":24242,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":24245,"t":"code","b":[183],"m":"or","o":"a"},{"a":24246,"t":"code","b":[32,18],"m":"jr","oa":24266,"o":"nz,$5ECA"},{"a":24248,"c":"In the first side's half-turn, each unit's count at $B63A + its number goes down by one, to 0.","t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":24251,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":24253,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":24254,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":24256,"t":"code","b":[33,58,182],"m":"ld","o":"hl,$B63A"},{"a":24259,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24260,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24261,"t":"code","b":[183],"m":"or","o":"a"},{"a":24262,"t":"code","b":[40,2],"m":"jr","oa":24266,"o":"z,$5ECA"},{"a":24264,"t":"code","b":[61],"m":"dec","o":"a"},{"a":24265,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24266,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)","x":[24246,24262]},{"a":24269,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":24271,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":24274,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":24275,"t":"code","b":[32,116],"m":"jr","oa":24393,"o":"nz,$5F49"},{"a":24277,"t":"code","b":[221,203,37,182],"m":"res","o":"6,(ix+$25)"},{"a":24281,"t":"code","b":[205,146,126],"m":"call","oa":32402,"o":"updateLoad"},{"a":24284,"t":"code","b":[221,126,27],"m":"ld","o":"a,(ix+$1B)"},{"a":24287,"t":"code","b":[221,150,25],"m":"sub","o":"(ix+$19)"},{"a":24290,"t":"code","b":[221,119,5],"m":"ld","o":"(ix+$05),a"},{"a":24293,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":24296,"t":"code","b":[205,41,107],"m":"call","oa":27433,"o":"healthShare"},{"a":24299,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":24300,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":24303,"t":"code","b":[144],"m":"sub","o":"b"},{"a":24304,"t":"code","b":[221,150,17],"m":"sub","o":"(ix+$11)"},{"a":24307,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":24310,"c":"Stamina ($0A): the action points it did not spend last time ($22), short of half its most, come back to it, up to its full ($09); those it spent beyond half are taken from it, down to 0.","t":"code","b":[221,70,5],"m":"ld","o":"b,(ix+$05)"},{"a":24313,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":24315,"t":"code","b":[221,126,34],"m":"ld","o":"a,(ix+$22)"},{"a":24318,"t":"code","b":[184],"m":"cp","o":"b"},{"a":24319,"t":"code","b":[40,40],"m":"jr","oa":24361,"o":"z,$5F29"},{"a":24321,"t":"code","b":[56,14],"m":"jr","oa":24337,"o":"c,$5F11"},{"a":24323,"t":"code","b":[144],"m":"sub","o":"b"},{"a":24324,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":24325,"t":"code","b":[221,126,10],"m":"ld","o":"a,(ix+$0A)"},{"a":24328,"t":"code","b":[145],"m":"sub","o":"c"},{"a":24329,"t":"code","b":[48,1],"m":"jr","oa":24332,"o":"nc,$5F0C"},{"a":24331,"t":"code","b":[175],"m":"xor","o":"a"},{"a":24332,"t":"code","b":[221,119,10],"m":"ld","o":"(ix+$0A),a","x":[24329]},{"a":24335,"t":"code","b":[24,24],"m":"jr","oa":24361,"o":"$5F29"},{"a":24337,"t":"code","b":[120],"m":"ld","o":"a,b","x":[24321]},{"a":24338,"t":"code","b":[221,150,34],"m":"sub","o":"(ix+$22)"},{"a":24341,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":24342,"t":"code","b":[221,126,10],"m":"ld","o":"a,(ix+$0A)"},{"a":24345,"t":"code","b":[129],"m":"add","o":"a,c"},{"a":24346,"t":"code","b":[48,2],"m":"jr","oa":24350,"o":"nc,$5F1E"},{"a":24348,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":24350,"t":"code","b":[221,190,9],"m":"cp","o":"(ix+$09)","x":[24346]},{"a":24353,"t":"code","b":[56,3],"m":"jr","oa":24358,"o":"c,$5F26"},{"a":24355,"t":"code","b":[221,126,9],"m":"ld","o":"a,(ix+$09)"},{"a":24358,"t":"code","b":[221,119,10],"m":"ld","o":"(ix+$0A),a","x":[24353]},{"a":24361,"c":"With stamina under $20, half the action points; and never fewer than a tenth of the most.","t":"code","b":[221,54,34,0],"m":"ld","o":"(ix+$22),$00","x":[24319,24335]},{"a":24365,"t":"code","b":[221,126,10],"m":"ld","o":"a,(ix+$0A)"},{"a":24368,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":24370,"t":"code","b":[48,4],"m":"jr","oa":24376,"o":"nc,$5F38"},{"a":24372,"t":"code","b":[221,203,6,62],"m":"srl","o":"(ix+$06)"},{"a":24376,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)","x":[24370]},{"a":24379,"t":"code","b":[6,10],"m":"ld","o":"b,$0A"},{"a":24381,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":24384,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":24385,"t":"code","b":[221,190,6],"m":"cp","o":"(ix+$06)"},{"a":24388,"t":"code","b":[56,3],"m":"jr","oa":24393,"o":"c,$5F49"},{"a":24390,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":24393,"t":"code","b":[193],"m":"pop","o":"bc","x":[24275,24388]},{"a":24394,"t":"code","b":[5],"m":"dec","o":"b"},{"a":24395,"t":"code","b":[194,168,94],"m":"jp","oa":24232,"o":"nz,$5EA8"},{"a":24398,"c":"The map as the side sees it, the side's own view and cursor, and its move: the scenario's computer player ($B621) or the player's turn screen and cursor mode.","t":"code","b":[205,71,119],"m":"call","oa":30535,"o":"sideView"},{"a":24401,"t":"code","b":[205,167,95],"m":"call","oa":24487,"o":"viewSlot"},{"a":24404,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24405,"t":"code","b":[50,252,92],"m":"ld","oa":23804,"o":"($5CFC),a"},{"a":24408,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24409,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24410,"t":"code","b":[50,253,92],"m":"ld","oa":23805,"o":"($5CFD),a"},{"a":24413,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24414,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24415,"t":"code","b":[50,17,93],"m":"ld","oa":23825,"o":"($5D11),a"},{"a":24418,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24419,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24420,"t":"code","b":[50,18,93],"m":"ld","oa":23826,"o":"($5D12),a"},{"a":24423,"t":"code","b":[205,64,94],"m":"call","oa":24128,"o":"computerSide"},{"a":24426,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":24429,"t":"code","b":[183],"m":"or","o":"a"},{"a":24430,"t":"code","b":[40,5],"m":"jr","oa":24437,"o":"z,$5F75"},{"a":24432,"t":"code","b":[205,33,182],"m":"call","oa":46625,"o":"$B621"},{"a":24435,"t":"code","b":[24,6],"m":"jr","oa":24443,"o":"$5F7B"},{"a":24437,"t":"code","b":[205,180,95],"m":"call","oa":24500,"o":"turnScreen","x":[24430]},{"a":24440,"t":"code","b":[205,78,105],"m":"call","oa":26958,"o":"cursorMode"},{"a":24443,"c":"The side's view and cursor kept, the scenario's end of a half-turn ($B630), the fuses ($9C8B), and the next side.","t":"code","b":[205,167,95],"m":"call","oa":24487,"o":"viewSlot","x":[24435]},{"a":24446,"t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)"},{"a":24449,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24450,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24451,"t":"code","b":[58,253,92],"m":"ld","oa":23805,"o":"a,($5CFD)"},{"a":24454,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24455,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24456,"t":"code","b":[58,17,93],"m":"ld","oa":23825,"o":"a,($5D11)"},{"a":24459,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24460,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24461,"t":"code","b":[58,18,93],"m":"ld","oa":23826,"o":"a,($5D12)"},{"a":24464,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24465,"t":"code","b":[205,48,182],"m":"call","oa":46640,"o":"$B630"},{"a":24468,"t":"code","b":[205,139,156],"m":"call","oa":40075,"o":"fuses"},{"a":24471,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":24474,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24475,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24476,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":24478,"t":"code","b":[218,166,94],"m":"jp","oa":24230,"o":"c,halfTurn"},{"a":24481,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":24484,"t":"code","b":[195,146,94],"m":"jp","oa":24210,"o":"turns"},{"a":24487,"l":"viewSlot","c":"HL = the side's view and cursor: four bytes at $B707 + 4 x side, the view's corner and the cursor's square.","t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)","x":[24401,24443]},{"a":24490,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":24491,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24493,"t":"code","b":[17,7,183],"m":"ld","o":"de,$B707"},{"a":24496,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24497,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24498,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24499,"t":"code","b":[201],"m":"ret"},{"a":24500,"l":"turnScreen","c":"The screen a player's half-turn begins with: message $54, the side's name (scenario message $A0 or $A1), the turn's number, the turns left ($B701 less it) and the scores; fire to play.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24437]},{"a":24503,"t":"code","b":[62,84],"m":"ld","o":"a,$54"},{"a":24505,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":24508,"t":"code","b":[33,7,71],"m":"ld","o":"hl,$4707"},{"a":24511,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":24514,"t":"code","b":[33,6,12],"m":"ld","o":"hl,$0C06"},{"a":24517,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":24520,"t":"code","b":[198,160],"m":"add","o":"a,$A0"},{"a":24522,"t":"code","b":[205,122,107],"m":"call","oa":27514,"o":"scenarioMessageAt"},{"a":24525,"t":"code","b":[58,17,183],"m":"ld","oa":46865,"o":"a,($B711)"},{"a":24528,"t":"code","b":[33,9,10],"m":"ld","o":"hl,$0A09"},{"a":24531,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":24534,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":24537,"t":"code","b":[33,17,183],"m":"ld","o":"hl,$B711"},{"a":24540,"t":"code","b":[58,1,183],"m":"ld","oa":46849,"o":"a,($B701)"},{"a":24543,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":24544,"t":"code","b":[33,9,25],"m":"ld","o":"hl,$1909"},{"a":24547,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":24550,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":24553,"t":"code","b":[205,254,95],"m":"call","oa":24574,"o":"scores"},{"a":24556,"t":"code","b":[62,83],"m":"ld","o":"a,$53"},{"a":24558,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":24561,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":24564,"t":"code","b":[205,247,119],"m":"call","oa":30711,"o":"waitFire"},{"a":24567,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen"},{"a":24570,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":24573,"t":"code","b":[201],"m":"ret"},{"a":24574,"l":"scores","c":"The scores: message $68, and each side's victory points and name (the scenario's messages $A0 and $A1) on rows 16 and 19.","t":"code","b":[62,104],"m":"ld","o":"a,$68","x":[24553,42282]},{"a":24576,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":24579,"t":"code","b":[58,15,183],"m":"ld","oa":46863,"o":"a,($B70F)"},{"a":24582,"t":"code","b":[33,16,5],"m":"ld","o":"hl,$0510"},{"a":24585,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":24588,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":24591,"t":"code","b":[33,16,10],"m":"ld","o":"hl,$0A10"},{"a":24594,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":24596,"t":"code","b":[205,122,107],"m":"call","oa":27514,"o":"scenarioMessageAt"},{"a":24599,"t":"code","b":[58,16,183],"m":"ld","oa":46864,"o":"a,($B710)"},{"a":24602,"t":"code","b":[33,19,5],"m":"ld","o":"hl,$0513"},{"a":24605,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":24608,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":24611,"t":"code","b":[62,161],"m":"ld","o":"a,$A1"},{"a":24613,"t":"code","b":[33,19,10],"m":"ld","o":"hl,$0A13"},{"a":24616,"t":"code","b":[205,122,107],"m":"call","oa":27514,"o":"scenarioMessageAt"},{"a":24619,"t":"code","b":[201],"m":"ret"},{"a":24620,"l":"clearScreen","c":"Clear the screen to black: A = 0, then on into clearScreenA.","t":"code","b":[175],"m":"xor","o":"a","x":[24500,24567,31300,31420,31937,32116,32129,32144,34243,34933,40277,41489,41522,41840,42201,45229,45507,45559,45598,45613]},{"a":24621,"l":"clearScreenA","c":"Clear the screen to the colours in A: the attributes filled with A from $5AFF down to $5800, then the pixels cleared from $57FF down to $4000.","t":"code","b":[33,255,90],"m":"ld","o":"hl,$5AFF","x":[33943,34650,45442]},{"a":24624,"t":"code","b":[17,254,90],"m":"ld","o":"de,$5AFE"},{"a":24627,"t":"code","b":[1,255,2],"m":"ld","o":"bc,$02FF"},{"a":24630,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24631,"t":"code","b":[237,184],"m":"lddr"},{"a":24633,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":24634,"t":"code","b":[27],"m":"dec","o":"de"},{"a":24635,"t":"code","b":[113],"m":"ld","o":"(hl),c"},{"a":24636,"t":"code","b":[1,255,23],"m":"ld","o":"bc,$17FF"},{"a":24639,"t":"code","b":[237,184],"m":"lddr"},{"a":24641,"t":"code","b":[201],"m":"ret"},{"a":24642,"l":"screenRows","c":"The screen address of the top line of each of the 24 character rows, a word each, for printChar and drawTile.","t":"word","b":[0,64,32,64,64,64,96,64],"d":[16384,16416,16448,16480]},{"a":24650,"t":"word","b":[128,64,160,64,192,64,224,64],"d":[16512,16544,16576,16608]},{"a":24658,"t":"word","b":[0,72,32,72,64,72,96,72],"d":[18432,18464,18496,18528]},{"a":24666,"t":"word","b":[128,72,160,72,192,72,224,72],"d":[18560,18592,18624,18656]},{"a":24674,"t":"word","b":[0,80,32,80,64,80,96,80],"d":[20480,20512,20544,20576]},{"a":24682,"t":"word","b":[128,80,160,80,192,80,224,80],"d":[20608,20640,20672,20704]},{"a":24690,"l":"printChar","c":"Print character A at the character row in PRINT_ROW and the column in PRINT_COL: its eight bytes from the font at $B139 + 8 x A, then the cell's attribute from ATTR. HL, DE and AF are kept; B is 0 on return.","t":"code","b":[229],"m":"push","o":"hl","x":[26094,26457,33628]},{"a":24691,"t":"code","b":[213],"m":"push","o":"de"},{"a":24692,"t":"code","b":[245],"m":"push","o":"af"},{"a":24693,"t":"code","b":[237,91,254,92],"m":"ld","oa":23806,"o":"de,($5CFE)"},{"a":24697,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":24698,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":24700,"t":"code","b":[33,66,96],"m":"ld","o":"hl,$6042"},{"a":24703,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24704,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24705,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":24706,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24707,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":24708,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":24709,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24711,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24712,"t":"code","b":[241],"m":"pop","o":"af"},{"a":24713,"t":"code","b":[229],"m":"push","o":"hl"},{"a":24714,"t":"code","b":[17,57,177],"m":"ld","o":"de,$B139"},{"a":24717,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24719,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":24720,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24721,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24722,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24723,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24724,"t":"code","b":[209],"m":"pop","o":"de"},{"a":24725,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":24727,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[24731]},{"a":24728,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":24729,"t":"code","b":[20],"m":"inc","o":"d"},{"a":24730,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24731,"t":"code","b":[16,250],"m":"djnz","oa":24727,"o":"$6097"},{"a":24733,"c":"The attribute's address from the screen address of the cell's last line.","t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":24734,"t":"code","b":[37],"m":"dec","o":"h"},{"a":24735,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":24736,"t":"code","b":[15],"m":"rrca"},{"a":24737,"t":"code","b":[15],"m":"rrca"},{"a":24738,"t":"code","b":[15],"m":"rrca"},{"a":24739,"t":"code","b":[230,3],"m":"and","o":"$03"},{"a":24741,"t":"code","b":[246,88],"m":"or","o":"$58"},{"a":24743,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":24744,"t":"code","b":[58,0,93],"m":"ld","oa":23808,"o":"a,($5D00)"},{"a":24747,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24748,"t":"code","b":[209],"m":"pop","o":"de"},{"a":24749,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":24750,"t":"code","b":[201],"m":"ret"},{"a":24751,"l":"drawTile","c":"Draw tile A, two characters by two (16 x 16 pixels), at the row in PRINT_ROW and the column in PRINT_COL. The tile's 32 bytes are at $E8DF + 32 x A, kept in TILE_GFX: the top left cell's 8 bytes, then the top right, the bottom left and the bottom right. All four cells take the colours in ATTR.","t":"code","b":[111],"m":"ld","o":"l,a","x":[24957,25670,27860,32686,33671,33682,33788,36912,41003,41029]},{"a":24752,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24754,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24755,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24756,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24757,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24758,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24759,"t":"code","b":[1,223,232],"m":"ld","o":"bc,$E8DF"},{"a":24762,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":24763,"t":"code","b":[34,14,93],"m":"ld","oa":23822,"o":"($5D0E),hl"},{"a":24766,"t":"code","b":[237,91,254,92],"m":"ld","oa":23806,"o":"de,($5CFE)"},{"a":24770,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":24771,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":24773,"c":"DE: the screen address of the tile's top row; BC: of the row under it, the next entry in screenRows.","t":"code","b":[33,66,96],"m":"ld","o":"hl,$6042"},{"a":24776,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24777,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24778,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":24779,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24780,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":24781,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24782,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":24783,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24784,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":24785,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":24786,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24788,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":24789,"t":"code","b":[229],"m":"push","o":"hl"},{"a":24790,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":24791,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24793,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24794,"t":"code","b":[237,91,14,93],"m":"ld","oa":23822,"o":"de,($5D0E)"},{"a":24798,"t":"code","b":[205,7,97],"m":"call","oa":24839,"o":"copyCell"},{"a":24801,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24802,"t":"code","b":[205,7,97],"m":"call","oa":24839,"o":"copyCell"},{"a":24805,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":24806,"t":"code","b":[205,7,97],"m":"call","oa":24839,"o":"copyCell"},{"a":24809,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24810,"t":"code","b":[205,7,97],"m":"call","oa":24839,"o":"copyCell"},{"a":24813,"c":"The attributes, from the bottom right cell back to the top left.","t":"code","b":[124],"m":"ld","o":"a,h"},{"a":24814,"t":"code","b":[198,7],"m":"add","o":"a,$07"},{"a":24816,"t":"code","b":[15],"m":"rrca"},{"a":24817,"t":"code","b":[15],"m":"rrca"},{"a":24818,"t":"code","b":[15],"m":"rrca"},{"a":24819,"t":"code","b":[230,3],"m":"and","o":"$03"},{"a":24821,"t":"code","b":[246,88],"m":"or","o":"$58"},{"a":24823,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":24824,"t":"code","b":[58,0,93],"m":"ld","oa":23808,"o":"a,($5D00)"},{"a":24827,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24828,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":24829,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24830,"t":"code","b":[1,31,0],"m":"ld","o":"bc,$001F"},{"a":24833,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":24835,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24836,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":24837,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24838,"t":"code","b":[201],"m":"ret"},{"a":24839,"l":"copyCell","c":"Copy 8 bytes from DE down one character cell from screen address HL (HL kept, DE on past them).","t":"code","b":[229],"m":"push","o":"hl","x":[24798,24802,24806,24810]},{"a":24840,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":24842,"t":"code","b":[26],"m":"ld","o":"a,(de)","x":[24846]},{"a":24843,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":24844,"t":"code","b":[19],"m":"inc","o":"de"},{"a":24845,"t":"code","b":[36],"m":"inc","o":"h"},{"a":24846,"t":"code","b":[16,250],"m":"djnz","oa":24842,"o":"$610A"},{"a":24848,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":24849,"t":"code","b":[201],"m":"ret"},{"a":24850,"l":"mapSquare","c":"HL = the map's square at row E and column D: $D6BF + 80 x E + D. The map is 80 squares across and 50 down, one byte each: a terrain type below $6E, an object from $6E to $8B, a unit from $8C to $9F. Returns DE = $D6BF and A = the column.","t":"code","b":[107],"m":"ld","o":"l,e","x":[24882,24965,25691,25716,25784,26657,26997,27470,28359,28757,29124,29164,29272,29785,30298,30333,31072,32555,35917,35956,39107,39544,39573,41770,42026]},{"a":24851,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":24853,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24854,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24855,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24856,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24857,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24858,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24859,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":24860,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":24862,"t":"code","b":[6,16],"m":"ld","o":"b,$10"},{"a":24864,"t":"code","b":[25],"m":"add","o":"hl,de","x":[24865]},{"a":24865,"t":"code","b":[16,253],"m":"djnz","oa":24864,"o":"$6120"},{"a":24867,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":24868,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24869,"t":"code","b":[17,191,214],"m":"ld","o":"de,$D6BF"},{"a":24872,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24873,"t":"code","b":[201],"m":"ret"},{"a":24874,"l":"drawView","c":"Draw the view: the 11 x 11 squares of the map from the row in VIEW_ROW and the column in VIEW_COL, row by row, at character rows and columns 1 to 21 (a square is a tile of two characters by two). Clears $B715 first, the flag hideView sets when it blanks the view. MAP_PTR walks the map, PRINT_ROW and PRINT_COL the screen.","t":"code","b":[175],"m":"xor","o":"a","x":[25627,25639,25651,26961,28114,28161,28241,28693,30015,30804,31181,31253,31283,31429,31912,32125,32135,32150,32508,32569,33158,34246,34936,35485,35539,35606,35660,36377,36422,36627,36899,37117,37172,37209,37270,37358,37527,37543,38904,42003,42076]},{"a":24875,"t":"code","b":[50,21,183],"m":"ld","oa":46869,"o":"($B715),a"},{"a":24878,"t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)"},{"a":24882,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":24885,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":24888,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":24890,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":24893,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":24895,"t":"code","b":[197],"m":"push","o":"bc","x":[24939]},{"a":24896,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":24898,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":24901,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":24903,"t":"code","b":[197],"m":"push","o":"bc","x":[24921]},{"a":24904,"t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":24907,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24908,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24909,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":24912,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":24915,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":24918,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24919,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24920,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":24921,"t":"code","b":[16,236],"m":"djnz","oa":24903,"o":"$6147"},{"a":24923,"c":"On to the next row of the map: 80 squares on from the row's start, so 69 on from its end.","t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":24926,"t":"code","b":[17,69,0],"m":"ld","o":"de,$0045"},{"a":24929,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24930,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":24933,"t":"code","b":[33,254,92],"m":"ld","o":"hl,$5CFE"},{"a":24936,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24937,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":24938,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":24939,"t":"code","b":[16,210],"m":"djnz","oa":24895,"o":"$613F"},{"a":24941,"t":"code","b":[201],"m":"ret"},{"a":24942,"l":"drawSquare","c":"Draw the map's square A at PRINT_ROW and PRINT_COL: the scenario's table of squares at the address in $B716 holds two bytes for each, its colours (into ATTR) and its tile (drawTile).","t":"code","b":[38,0],"m":"ld","o":"h,$00","x":[24912,24997,25704,25746,25817,31481,32701,33692,33733,34696,40644,40973,41139,41967]},{"a":24944,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":24945,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":24946,"t":"code","b":[237,91,22,183],"m":"ld","oa":46870,"o":"de,($B716)"},{"a":24950,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24951,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24952,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":24955,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":24956,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24957,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":24960,"t":"code","b":[201],"m":"ret"},{"a":24961,"l":"drawViewColumns","c":"Draw the view as drawView does, column by column: what the scroll routine draws after moving the view across.","t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)","x":[25645]},{"a":24965,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":24968,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":24971,"t":"code","b":[14,11],"m":"ld","o":"c,$0B"},{"a":24973,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":24975,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":24978,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[25024]},{"a":24980,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":24983,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":24985,"t":"code","b":[197],"m":"push","o":"bc","x":[25006]},{"a":24986,"t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":24989,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":24990,"t":"code","b":[17,80,0],"m":"ld","o":"de,$0050"},{"a":24993,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":24994,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":24997,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":25000,"t":"code","b":[33,254,92],"m":"ld","o":"hl,$5CFE"},{"a":25003,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25004,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25005,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25006,"t":"code","b":[16,233],"m":"djnz","oa":24985,"o":"$6199"},{"a":25008,"c":"Back to the top of the next column: 11 rows of 80 up, one square on.","t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":25011,"t":"code","b":[17,145,252],"m":"ld","o":"de,$FC91"},{"a":25014,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25015,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25018,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":25021,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25022,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25023,"t":"code","b":[13],"m":"dec","o":"c"},{"a":25024,"t":"code","b":[32,208],"m":"jr","oa":24978,"o":"nz,$6192"},{"a":25026,"t":"code","b":[201],"m":"ret"},{"a":25027,"l":"cursorStep","c":"One step of cursor mode. The cursor blinks while the controls are read, on for 255 turns and off for 140 ($B71A counts them down, $5D16 says whether it is on show); each turn it moves if a way is held (moveCursor), and the square under it is described when it stops (squareReadout). Returns at the first turn nothing moves it. Every register is kept.","t":"code","b":[245],"m":"push","o":"af","x":[26977,42009]},{"a":25028,"t":"code","b":[197],"m":"push","o":"bc"},{"a":25029,"t":"code","b":[213],"m":"push","o":"de"},{"a":25030,"t":"code","b":[229],"m":"push","o":"hl"},{"a":25031,"t":"code","b":[33,26,183],"m":"ld","o":"hl,$B71A","x":[25102]},{"a":25034,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25035,"t":"code","b":[58,26,183],"m":"ld","oa":46874,"o":"a,($B71A)"},{"a":25038,"t":"code","b":[183],"m":"or","o":"a"},{"a":25039,"t":"code","b":[32,33],"m":"jr","oa":25074,"o":"nz,$61F2"},{"a":25041,"t":"code","b":[58,22,93],"m":"ld","oa":23830,"o":"a,($5D16)"},{"a":25044,"t":"code","b":[183],"m":"or","o":"a"},{"a":25045,"t":"code","b":[32,15],"m":"jr","oa":25062,"o":"nz,$61E6"},{"a":25047,"t":"code","b":[205,54,100],"m":"call","oa":25654,"o":"drawCursor"},{"a":25050,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25052,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":25055,"t":"code","b":[33,26,183],"m":"ld","o":"hl,$B71A"},{"a":25058,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":25060,"t":"code","b":[24,12],"m":"jr","oa":25074,"o":"$61F2"},{"a":25062,"t":"code","b":[205,74,100],"m":"call","oa":25674,"o":"eraseCursor","x":[25045]},{"a":25065,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25066,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":25069,"t":"code","b":[33,26,183],"m":"ld","o":"hl,$B71A"},{"a":25072,"t":"code","b":[54,140],"m":"ld","o":"(hl),$8C"},{"a":25074,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls","x":[25039,25060]},{"a":25077,"c":"A short wait, 120 turns of DJNZ.","t":"code","b":[6,120],"m":"ld","o":"b,$78"},{"a":25079,"t":"code","b":[16,254],"m":"djnz","oa":25079,"o":"$61F7","x":[25079]},{"a":25081,"t":"code","b":[205,246,98],"m":"call","oa":25334,"o":"moveCursor"},{"a":25084,"t":"code","b":[205,164,98],"m":"call","oa":25252,"o":"squareReadout"},{"a":25087,"t":"code","b":[58,29,93],"m":"ld","oa":23837,"o":"a,($5D1D)"},{"a":25090,"t":"code","b":[183],"m":"or","o":"a"},{"a":25091,"t":"code","b":[40,11],"m":"jr","oa":25104,"o":"z,$6210"},{"a":25093,"t":"code","b":[33,26,183],"m":"ld","o":"hl,$B71A"},{"a":25096,"t":"code","b":[54,1],"m":"ld","o":"(hl),$01"},{"a":25098,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25099,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":25102,"t":"code","b":[24,183],"m":"jr","oa":25031,"o":"$61C7"},{"a":25104,"t":"code","b":[225],"m":"pop","o":"hl","x":[25091]},{"a":25105,"t":"code","b":[209],"m":"pop","o":"de"},{"a":25106,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25107,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25108,"t":"code","b":[201],"m":"ret"},{"a":25109,"l":"crosshairLoop","c":"Aim: the crosshair blinks (every 256 turns, counted by $5D17) and moves with the controls, faster the longer a way is held, until fire is pressed. Every register is kept.","t":"code","b":[245],"m":"push","o":"af","x":[36391,37496]},{"a":25110,"t":"code","b":[197],"m":"push","o":"bc"},{"a":25111,"t":"code","b":[213],"m":"push","o":"de"},{"a":25112,"t":"code","b":[229],"m":"push","o":"hl"},{"a":25113,"t":"code","b":[33,23,93],"m":"ld","o":"hl,$5D17","x":[25149]},{"a":25116,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25117,"t":"code","b":[204,68,98],"m":"call","oa":25156,"o":"z,crosshairBlink"},{"a":25120,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":25123,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":25126,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":25128,"t":"code","b":[40,21],"m":"jr","oa":25151,"o":"z,$623F"},{"a":25130,"t":"code","b":[246,225],"m":"or","o":"$E1"},{"a":25132,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":25134,"t":"code","b":[32,7],"m":"jr","oa":25143,"o":"nz,$6237"},{"a":25136,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25137,"t":"code","b":[50,24,93],"m":"ld","oa":23832,"o":"($5D18),a"},{"a":25140,"t":"code","b":[50,27,93],"m":"ld","oa":23835,"o":"($5D1B),a"},{"a":25143,"t":"code","b":[196,79,98],"m":"call","oa":25167,"o":"nz,crosshairMove","x":[25134]},{"a":25146,"t":"code","b":[205,223,98],"m":"call","oa":25311,"o":"delay1"},{"a":25149,"t":"code","b":[24,218],"m":"jr","oa":25113,"o":"$6219"},{"a":25151,"t":"code","b":[225],"m":"pop","o":"hl","x":[25128]},{"a":25152,"t":"code","b":[209],"m":"pop","o":"de"},{"a":25153,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25154,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25155,"t":"code","b":[201],"m":"ret"},{"a":25156,"l":"crosshairBlink","c":"Blink the crosshair: $5D1A says whether it is drawn, and drawCrosshair draws it with XOR, so drawing it again takes it off.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[25117]},{"a":25158,"t":"code","b":[33,26,93],"m":"ld","o":"hl,$5D1A"},{"a":25161,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":25162,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":25163,"t":"code","b":[205,122,139],"m":"call","oa":35706,"o":"drawCrosshair"},{"a":25166,"t":"code","b":[201],"m":"ret"},{"a":25167,"l":"crosshairMove","c":"Move the crosshair a square: off it comes and the cursor's square moves (readMove). If the view scrolled it is left off; otherwise it is drawn again after a wait that shortens as the way is held (the first step waits 200 delays more).","t":"code","b":[58,26,93],"m":"ld","oa":23834,"o":"a,($5D1A)","x":[25143]},{"a":25170,"t":"code","b":[183],"m":"or","o":"a"},{"a":25171,"t":"code","b":[196,122,139],"m":"call","oa":35706,"o":"nz,drawCrosshair"},{"a":25174,"t":"code","b":[205,1,99],"m":"call","oa":25345,"o":"readMove"},{"a":25177,"t":"code","b":[58,91,99],"m":"ld","oa":25435,"o":"a,(SCROLLED)"},{"a":25180,"t":"code","b":[183],"m":"or","o":"a"},{"a":25181,"t":"code","b":[40,11],"m":"jr","oa":25194,"o":"z,$626A"},{"a":25183,"t":"code","b":[205,10,100],"m":"call","oa":25610,"o":"scrollView"},{"a":25186,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25187,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":25190,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25193,"t":"code","b":[201],"m":"ret"},{"a":25194,"t":"code","b":[205,122,139],"m":"call","oa":35706,"o":"drawCrosshair","x":[25181]},{"a":25197,"t":"code","b":[58,24,93],"m":"ld","oa":23832,"o":"a,($5D18)"},{"a":25200,"t":"code","b":[183],"m":"or","o":"a"},{"a":25201,"t":"code","b":[204,233,98],"m":"call","oa":25321,"o":"z,delay200"},{"a":25204,"t":"code","b":[205,134,98],"m":"call","oa":25222,"o":"accelDelay"},{"a":25207,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25208,"t":"code","b":[50,23,93],"m":"ld","oa":23831,"o":"($5D17),a"},{"a":25211,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25214,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25215,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":25218,"t":"code","b":[50,24,93],"m":"ld","oa":23832,"o":"($5D18),a"},{"a":25221,"t":"code","b":[201],"m":"ret"},{"a":25222,"l":"accelDelay","c":"The crosshair's wait: 12 turns of a loop of ($5D1B), 256 for 0, which is then 6 shorter, down to 8.","t":"code","b":[6,12],"m":"ld","o":"b,$0C","x":[25204]},{"a":25224,"t":"code","b":[197],"m":"push","o":"bc","x":[25233]},{"a":25225,"t":"code","b":[58,27,93],"m":"ld","oa":23835,"o":"a,($5D1B)"},{"a":25228,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":25229,"t":"code","b":[0],"m":"nop","x":[25230]},{"a":25230,"t":"code","b":[16,253],"m":"djnz","oa":25229,"o":"$628D"},{"a":25232,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25233,"t":"code","b":[16,245],"m":"djnz","oa":25224,"o":"$6288"},{"a":25235,"t":"code","b":[58,27,93],"m":"ld","oa":23835,"o":"a,($5D1B)"},{"a":25238,"t":"code","b":[214,6],"m":"sub","o":"$06"},{"a":25240,"t":"code","b":[50,27,93],"m":"ld","oa":23835,"o":"($5D1B),a"},{"a":25243,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":25245,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":25246,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":25248,"t":"code","b":[50,27,93],"m":"ld","oa":23835,"o":"($5D1B),a"},{"a":25251,"t":"code","b":[201],"m":"ret"},{"a":25252,"l":"squareReadout","c":"The readout under the view. When the cursor stops ($5D10 clear until then) the square under it is described: infoText 3, then squareInfo, unless $A36F is set. When it moves again, the description is cleared (infoText 3) and there is a pause of 160 delays.","t":"code","b":[58,29,93],"m":"ld","oa":23837,"o":"a,($5D1D)","x":[25084]},{"a":25255,"t":"code","b":[183],"m":"or","o":"a"},{"a":25256,"t":"code","b":[58,16,93],"m":"ld","oa":23824,"o":"a,($5D10)"},{"a":25259,"t":"code","b":[32,20],"m":"jr","oa":25281,"o":"nz,$62C1"},{"a":25261,"t":"code","b":[183],"m":"or","o":"a"},{"a":25262,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":25263,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25264,"t":"code","b":[50,16,93],"m":"ld","oa":23824,"o":"($5D10),a"},{"a":25267,"t":"code","b":[58,111,163],"m":"ld","oa":41839,"o":"a,(placing)"},{"a":25270,"t":"code","b":[183],"m":"or","o":"a"},{"a":25271,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":25272,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":25274,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":25277,"t":"code","b":[205,24,104],"m":"call","oa":26648,"o":"squareInfo"},{"a":25280,"t":"code","b":[201],"m":"ret"},{"a":25281,"t":"code","b":[183],"m":"or","o":"a","x":[25259]},{"a":25282,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25283,"t":"code","b":[58,111,163],"m":"ld","oa":41839,"o":"a,(placing)"},{"a":25286,"t":"code","b":[183],"m":"or","o":"a"},{"a":25287,"t":"code","b":[32,5],"m":"jr","oa":25294,"o":"nz,$62CE"},{"a":25289,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":25291,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":25294,"t":"code","b":[6,160],"m":"ld","o":"b,$A0","x":[25287]},{"a":25296,"t":"code","b":[205,223,98],"m":"call","oa":25311,"o":"delay1","x":[25299]},{"a":25299,"t":"code","b":[16,251],"m":"djnz","oa":25296,"o":"$62D0"},{"a":25301,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25302,"t":"code","b":[50,16,93],"m":"ld","oa":23824,"o":"($5D10),a"},{"a":25305,"t":"code","b":[201],"m":"ret"},{"a":25306,"l":"delay3","c":"Wait 3 turns of a loop of 255 DJNZs (3,351 T-states a turn). BC is kept.","t":"code","b":[197],"m":"push","o":"bc","x":[26350,35126]},{"a":25307,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":25309,"t":"code","b":[24,13],"m":"jr","oa":25324,"o":"$62EC"},{"a":25311,"l":"delay1","c":"Wait 1 turn.","t":"code","b":[197],"m":"push","o":"bc","x":[25146,25296,25604,34135]},{"a":25312,"t":"code","b":[6,1],"m":"ld","o":"b,$01"},{"a":25314,"t":"code","b":[24,8],"m":"jr","oa":25324,"o":"$62EC"},{"a":25316,"l":"delay40","c":"Wait 40 turns.","t":"code","b":[197],"m":"push","o":"bc","x":[28064]},{"a":25317,"t":"code","b":[6,40],"m":"ld","o":"b,$28"},{"a":25319,"t":"code","b":[24,3],"m":"jr","oa":25324,"o":"$62EC"},{"a":25321,"l":"delay200","c":"Wait 200 turns.","t":"code","b":[197],"m":"push","o":"bc","x":[25201,28044,28047,28050,40179]},{"a":25322,"t":"code","b":[6,200],"m":"ld","o":"b,$C8"},{"a":25324,"t":"code","b":[197],"m":"push","o":"bc","x":[25309,25314,25319,25330]},{"a":25325,"t":"code","b":[6,255],"m":"ld","o":"b,$FF"},{"a":25327,"t":"code","b":[16,254],"m":"djnz","oa":25327,"o":"$62EF","x":[25327]},{"a":25329,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25330,"t":"code","b":[16,248],"m":"djnz","oa":25324,"o":"$62EC"},{"a":25332,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25333,"t":"code","b":[201],"m":"ret"},{"a":25334,"l":"moveCursor","c":"Move the cursor by the controls (readMove) and, if a way was held, show it (showMove).","t":"code","b":[205,1,99],"m":"call","oa":25345,"o":"readMove","x":[25081]},{"a":25337,"t":"code","b":[58,29,93],"m":"ld","oa":23837,"o":"a,($5D1D)"},{"a":25340,"t":"code","b":[183],"m":"or","o":"a"},{"a":25341,"t":"code","b":[196,226,99],"m":"call","oa":25570,"o":"nz,showMove"},{"a":25344,"t":"code","b":[201],"m":"ret"},{"a":25345,"l":"readMove","c":"Move the cursor's square a step for each way held in the controls ($5D2A): up, down, right and left, in that order. At the cursor's edge of the view the view moves instead. $5D1D is set if any way was held, $5D1E counts them less one, $5D1C collects the ways the view scrolled and $5D13 keeps the cursor's square from before.","t":"code","b":[175],"m":"xor","o":"a","x":[25174,25334]},{"a":25346,"t":"code","b":[50,28,93],"m":"ld","oa":23836,"o":"($5D1C),a"},{"a":25349,"t":"code","b":[50,29,93],"m":"ld","oa":23837,"o":"($5D1D),a"},{"a":25352,"t":"code","b":[50,30,93],"m":"ld","oa":23838,"o":"($5D1E),a"},{"a":25355,"t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)"},{"a":25358,"t":"code","b":[34,19,93],"m":"ld","oa":23827,"o":"($5D13),hl"},{"a":25361,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":25364,"t":"code","b":[203,79],"m":"bit","o":"1,a"},{"a":25366,"t":"code","b":[204,45,99],"m":"call","oa":25389,"o":"z,stepUp"},{"a":25369,"t":"code","b":[203,87],"m":"bit","o":"2,a"},{"a":25371,"t":"code","b":[204,54,99],"m":"call","oa":25398,"o":"z,stepDown"},{"a":25374,"t":"code","b":[203,95],"m":"bit","o":"3,a"},{"a":25376,"t":"code","b":[204,63,99],"m":"call","oa":25407,"o":"z,stepRight"},{"a":25379,"t":"code","b":[203,103],"m":"bit","o":"4,a"},{"a":25381,"t":"code","b":[204,72,99],"m":"call","oa":25416,"o":"z,stepLeft"},{"a":25384,"t":"code","b":[33,30,93],"m":"ld","o":"hl,$5D1E"},{"a":25387,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25388,"t":"code","b":[201],"m":"ret"},{"a":25389,"l":"stepUp","c":"A step up, noted (noteMove). A is kept.","t":"code","b":[245],"m":"push","o":"af","x":[25366]},{"a":25390,"t":"code","b":[205,160,99],"m":"call","oa":25504,"o":"cursorUp"},{"a":25393,"t":"code","b":[205,81,99],"m":"call","oa":25425,"o":"noteMove"},{"a":25396,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25397,"t":"code","b":[201],"m":"ret"},{"a":25398,"l":"stepDown","c":"A step down, noted.","t":"code","b":[245],"m":"push","o":"af","x":[25371]},{"a":25399,"t":"code","b":[205,192,99],"m":"call","oa":25536,"o":"cursorDown"},{"a":25402,"t":"code","b":[205,81,99],"m":"call","oa":25425,"o":"noteMove"},{"a":25405,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25406,"t":"code","b":[201],"m":"ret"},{"a":25407,"l":"stepRight","c":"A step right, noted.","t":"code","b":[245],"m":"push","o":"af","x":[25376]},{"a":25408,"t":"code","b":[205,92,99],"m":"call","oa":25436,"o":"cursorRight"},{"a":25411,"t":"code","b":[205,81,99],"m":"call","oa":25425,"o":"noteMove"},{"a":25414,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25415,"t":"code","b":[201],"m":"ret"},{"a":25416,"l":"stepLeft","c":"A step left, noted.","t":"code","b":[245],"m":"push","o":"af","x":[25381]},{"a":25417,"t":"code","b":[205,128,99],"m":"call","oa":25472,"o":"cursorLeft"},{"a":25420,"t":"code","b":[205,81,99],"m":"call","oa":25425,"o":"noteMove"},{"a":25423,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25424,"t":"code","b":[201],"m":"ret"},{"a":25425,"l":"noteMove","c":"Note a way held: $5D1D set, $5D1E one more.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[25393,25402,25411,25420]},{"a":25427,"t":"code","b":[50,29,93],"m":"ld","oa":23837,"o":"($5D1D),a"},{"a":25430,"t":"code","b":[33,30,93],"m":"ld","o":"hl,$5D1E"},{"a":25433,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25434,"t":"code","b":[201],"m":"ret"},{"a":25435,"l":"SCROLLED","c":"Set when the view has scrolled and has to be drawn again.","t":"byte","b":[0],"x":[25177,25190,25211,25458,25492,25529,25563,25570,25577]},{"a":25436,"l":"cursorRight","c":"A step right: the cursor's column (CURSOR_COL) one on, unless it is at the view's last ($B718). There the view moves one right instead (VIEW_COL), unless it shows the map's last column already (VIEW_COL $45: 80 columns less the view's 11), and SCROLLED and bit 3 of $5D1C are set.","t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)","x":[25408]},{"a":25439,"t":"code","b":[58,24,183],"m":"ld","oa":46872,"o":"a,($B718)"},{"a":25442,"t":"code","b":[188],"m":"cp","o":"h"},{"a":25443,"t":"code","b":[32,22],"m":"jr","oa":25467,"o":"nz,$637B"},{"a":25445,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":25448,"t":"code","b":[62,69],"m":"ld","o":"a,$45"},{"a":25450,"t":"code","b":[188],"m":"cp","o":"h"},{"a":25451,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25452,"t":"code","b":[36],"m":"inc","o":"h"},{"a":25453,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":25456,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25458,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25461,"t":"code","b":[33,28,93],"m":"ld","o":"hl,$5D1C"},{"a":25464,"t":"code","b":[203,222],"m":"set","o":"3,(hl)"},{"a":25466,"t":"code","b":[201],"m":"ret"},{"a":25467,"c":"The step itself, and the cursor's square written back (the steps left, up and down end here too).","t":"code","b":[36],"m":"inc","o":"h","x":[25443]},{"a":25468,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl","x":[25502,25534,25568]},{"a":25471,"t":"code","b":[201],"m":"ret"},{"a":25472,"l":"cursorLeft","c":"A step left, the same way: the view's first column is $B719, the map's VIEW_COL 0, and the bit of $5D1C bit 2.","t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)","x":[25417]},{"a":25475,"t":"code","b":[58,25,183],"m":"ld","oa":46873,"o":"a,($B719)"},{"a":25478,"t":"code","b":[188],"m":"cp","o":"h"},{"a":25479,"t":"code","b":[32,20],"m":"jr","oa":25501,"o":"nz,$639D"},{"a":25481,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":25484,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25485,"t":"code","b":[188],"m":"cp","o":"h"},{"a":25486,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25487,"t":"code","b":[37],"m":"dec","o":"h"},{"a":25488,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":25491,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25492,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25495,"t":"code","b":[33,28,93],"m":"ld","o":"hl,$5D1C"},{"a":25498,"t":"code","b":[203,214],"m":"set","o":"2,(hl)"},{"a":25500,"t":"code","b":[201],"m":"ret"},{"a":25501,"c":"The step left.","t":"code","b":[37],"m":"dec","o":"h","x":[25479]},{"a":25502,"t":"code","b":[24,220],"m":"jr","oa":25468,"o":"$637C"},{"a":25504,"l":"cursorUp","c":"A step up: the view's first row $B719, the map's VIEW_ROW 0, bit 0 of $5D1C.","t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)","x":[25390]},{"a":25507,"t":"code","b":[58,25,183],"m":"ld","oa":46873,"o":"a,($B719)"},{"a":25510,"t":"code","b":[189],"m":"cp","o":"l"},{"a":25511,"t":"code","b":[32,20],"m":"jr","oa":25533,"o":"nz,$63BD"},{"a":25513,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":25516,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25517,"t":"code","b":[189],"m":"cp","o":"l"},{"a":25518,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25519,"t":"code","b":[45],"m":"dec","o":"l"},{"a":25520,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":25523,"t":"code","b":[33,28,93],"m":"ld","o":"hl,$5D1C"},{"a":25526,"t":"code","b":[203,198],"m":"set","o":"0,(hl)"},{"a":25528,"t":"code","b":[60],"m":"inc","o":"a"},{"a":25529,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25532,"t":"code","b":[201],"m":"ret"},{"a":25533,"c":"The step up.","t":"code","b":[45],"m":"dec","o":"l","x":[25511]},{"a":25534,"t":"code","b":[24,188],"m":"jr","oa":25468,"o":"$637C"},{"a":25536,"l":"cursorDown","c":"A step down: the view's last row $B718, the map's VIEW_ROW $27 (50 rows less 11), bit 1 of $5D1C.","t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)","x":[25399]},{"a":25539,"t":"code","b":[58,24,183],"m":"ld","oa":46872,"o":"a,($B718)"},{"a":25542,"t":"code","b":[189],"m":"cp","o":"l"},{"a":25543,"t":"code","b":[32,22],"m":"jr","oa":25567,"o":"nz,$63DF"},{"a":25545,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":25548,"t":"code","b":[62,39],"m":"ld","o":"a,$27"},{"a":25550,"t":"code","b":[189],"m":"cp","o":"l"},{"a":25551,"t":"code","b":[200],"m":"ret","o":"z"},{"a":25552,"t":"code","b":[44],"m":"inc","o":"l"},{"a":25553,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":25556,"t":"code","b":[33,28,93],"m":"ld","o":"hl,$5D1C"},{"a":25559,"t":"code","b":[203,206],"m":"set","o":"1,(hl)"},{"a":25561,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25563,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25566,"t":"code","b":[201],"m":"ret"},{"a":25567,"c":"The step down.","t":"code","b":[44],"m":"inc","o":"l","x":[25543]},{"a":25568,"t":"code","b":[24,154],"m":"jr","oa":25468,"o":"$637C"},{"a":25570,"l":"showMove","c":"Show the cursor's move. After a scroll the view is drawn again (scrollView) with the cursor on it; otherwise the cursor is drawn at its new square, the square it left is drawn again (drawSquareAt), and there is a pause of 80 delays. A cursor held against the map's edge is drawn and at once drawn over, as its old square is its new one.","t":"code","b":[58,91,99],"m":"ld","oa":25435,"o":"a,(SCROLLED)","x":[25341]},{"a":25573,"t":"code","b":[183],"m":"or","o":"a"},{"a":25574,"t":"code","b":[40,11],"m":"jr","oa":25587,"o":"z,$63F3"},{"a":25576,"t":"code","b":[175],"m":"xor","o":"a"},{"a":25577,"t":"code","b":[50,91,99],"m":"ld","oa":25435,"o":"(SCROLLED),a"},{"a":25580,"t":"code","b":[205,10,100],"m":"call","oa":25610,"o":"scrollView"},{"a":25583,"t":"code","b":[205,54,100],"m":"call","oa":25654,"o":"drawCursor"},{"a":25586,"t":"code","b":[201],"m":"ret"},{"a":25587,"t":"code","b":[205,54,100],"m":"call","oa":25654,"o":"drawCursor","x":[25574]},{"a":25590,"t":"code","b":[6,80],"m":"ld","o":"b,$50"},{"a":25592,"t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)"},{"a":25596,"t":"code","b":[42,19,93],"m":"ld","oa":23827,"o":"hl,($5D13)"},{"a":25599,"t":"code","b":[205,86,100],"m":"call","oa":25686,"o":"drawSquareAt"},{"a":25602,"t":"code","b":[6,80],"m":"ld","o":"b,$50"},{"a":25604,"t":"code","b":[205,223,98],"m":"call","oa":25311,"o":"delay1","x":[25607]},{"a":25607,"t":"code","b":[16,251],"m":"djnz","oa":25604,"o":"$6404"},{"a":25609,"t":"code","b":[201],"m":"ret"},{"a":25610,"l":"scrollView","c":"Draw the view again after a scroll, through the jumps at $6418 by the ways in $5D1C less one: from the bottom row up after a scroll up (drawViewUp), from the right after a scroll left (drawViewLeft), by columns after a scroll right (drawViewColumns), and by rows after a scroll down. Up and down at once, $5D1C 3 or 7, draws nothing.","t":"code","b":[58,28,93],"m":"ld","oa":23836,"o":"a,($5D1C)","x":[25183,25580]},{"a":25613,"t":"code","b":[61],"m":"dec","o":"a"},{"a":25614,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":25616,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25617,"t":"code","b":[33,24,100],"m":"ld","o":"hl,$6418"},{"a":25620,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25621,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25622,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25623,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":25624,"l":"scrollJumps","c":"The jumps, three bytes each: up, down, up and down, left, up and left, down and left, all but right, right, up and right, down and right.","t":"code","b":[195,108,100],"m":"jp","oa":25708,"o":"drawViewUp"},{"a":25627,"t":"code","b":[195,42,97],"m":"jp","oa":24874,"o":"drawView"},{"a":25630,"t":"code","b":[201],"m":"ret"},{"a":25631,"t":"code","b":[0],"m":"nop"},{"a":25632,"t":"code","b":[0],"m":"nop"},{"a":25633,"t":"code","b":[195,176,100],"m":"jp","oa":25776,"o":"drawViewLeft"},{"a":25636,"t":"code","b":[195,108,100],"m":"jp","oa":25708,"o":"drawViewUp"},{"a":25639,"t":"code","b":[195,42,97],"m":"jp","oa":24874,"o":"drawView"},{"a":25642,"t":"code","b":[201],"m":"ret"},{"a":25643,"t":"code","b":[0],"m":"nop"},{"a":25644,"t":"code","b":[0],"m":"nop"},{"a":25645,"t":"code","b":[195,129,97],"m":"jp","oa":24961,"o":"drawViewColumns"},{"a":25648,"t":"code","b":[195,108,100],"m":"jp","oa":25708,"o":"drawViewUp"},{"a":25651,"t":"code","b":[195,42,97],"m":"jp","oa":24874,"o":"drawView"},{"a":25654,"l":"drawCursor","c":"Draw the cursor, tile $AF in white on black ($47), at its square in the view: the character row and column twice the cursor's, plus one.","t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)","x":[25047,25583,25587]},{"a":25657,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":25658,"t":"code","b":[36],"m":"inc","o":"h"},{"a":25659,"t":"code","b":[44],"m":"inc","o":"l"},{"a":25660,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":25663,"t":"code","b":[62,71],"m":"ld","o":"a,$47"},{"a":25665,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":25668,"t":"code","b":[62,175],"m":"ld","o":"a,$AF"},{"a":25670,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":25673,"t":"code","b":[201],"m":"ret"},{"a":25674,"l":"eraseCursor","c":"Take the cursor off by drawing the map's square under it, unless $B71B is set.","t":"code","b":[58,27,183],"m":"ld","oa":46875,"o":"a,($B71B)","x":[25062,27077,27118,27830,32527,32973,34639]},{"a":25677,"t":"code","b":[183],"m":"or","o":"a"},{"a":25678,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":25679,"t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)"},{"a":25683,"t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)"},{"a":25686,"l":"drawSquareAt","c":"Draw the map's square at the view's square HL (L the row, H the column), with DE the map's square at the view's top left.","t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl","x":[25599]},{"a":25689,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25690,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":25691,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":25694,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25695,"t":"code","b":[42,254,92],"m":"ld","oa":23806,"o":"hl,($5CFE)"},{"a":25698,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":25699,"t":"code","b":[36],"m":"inc","o":"h"},{"a":25700,"t":"code","b":[44],"m":"inc","o":"l"},{"a":25701,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":25704,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":25707,"t":"code","b":[201],"m":"ret"},{"a":25708,"l":"drawViewUp","c":"Draw the view from its bottom row up, each row from the left.","t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)","x":[25624,25636,25648]},{"a":25712,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":25714,"t":"code","b":[131],"m":"add","o":"a,e"},{"a":25715,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":25716,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":25719,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25722,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":25724,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":25726,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":25729,"t":"code","b":[197],"m":"push","o":"bc","x":[25773]},{"a":25730,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25732,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":25735,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":25737,"t":"code","b":[197],"m":"push","o":"bc","x":[25755]},{"a":25738,"t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":25741,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25742,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25743,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25746,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":25749,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":25752,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25753,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25754,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25755,"t":"code","b":[16,236],"m":"djnz","oa":25737,"o":"$6489"},{"a":25757,"c":"Back to the start of the row above: 91 squares back from this row's end.","t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":25760,"t":"code","b":[17,165,255],"m":"ld","o":"de,$FFA5"},{"a":25763,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25764,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25767,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25768,"t":"code","b":[33,254,92],"m":"ld","o":"hl,$5CFE"},{"a":25771,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25772,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25773,"t":"code","b":[16,210],"m":"djnz","oa":25729,"o":"$6481"},{"a":25775,"t":"code","b":[201],"m":"ret"},{"a":25776,"l":"drawViewLeft","c":"Draw the view column by column from its right-hand column leftwards.","t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)","x":[25633]},{"a":25780,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":25782,"t":"code","b":[130],"m":"add","o":"a,d"},{"a":25783,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":25784,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":25787,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25790,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":25792,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":25794,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":25797,"t":"code","b":[197],"m":"push","o":"bc","x":[25844]},{"a":25798,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":25800,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":25803,"t":"code","b":[6,11],"m":"ld","o":"b,$0B"},{"a":25805,"t":"code","b":[197],"m":"push","o":"bc","x":[25826]},{"a":25806,"t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":25809,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25810,"t":"code","b":[17,80,0],"m":"ld","o":"de,$0050"},{"a":25813,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25814,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25817,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":25820,"t":"code","b":[33,254,92],"m":"ld","o":"hl,$5CFE"},{"a":25823,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25824,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":25825,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25826,"t":"code","b":[16,233],"m":"djnz","oa":25805,"o":"$64CD"},{"a":25828,"c":"Back to the top of the column to the left: 881 squares back.","t":"code","b":[42,2,93],"m":"ld","oa":23810,"o":"hl,($5D02)"},{"a":25831,"t":"code","b":[17,143,252],"m":"ld","o":"de,$FC8F"},{"a":25834,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25835,"t":"code","b":[34,2,93],"m":"ld","oa":23810,"o":"($5D02),hl"},{"a":25838,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25839,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":25842,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25843,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":25844,"t":"code","b":[16,207],"m":"djnz","oa":25797,"o":"$64C5"},{"a":25846,"t":"code","b":[201],"m":"ret"},{"a":25847,"l":"printCharDouble","c":"Print character A in double height at PRINT_ROW and PRINT_COL: each of the font's eight lines twice, down two character cells, the top cell in the colours in ATTR and the bottom one in ATTR2. Every register is kept.","t":"code","b":[229],"m":"push","o":"hl","x":[26101,26452,31715,31730,33624,41933]},{"a":25848,"t":"code","b":[213],"m":"push","o":"de"},{"a":25849,"t":"code","b":[197],"m":"push","o":"bc"},{"a":25850,"t":"code","b":[245],"m":"push","o":"af"},{"a":25851,"t":"code","b":[50,4,93],"m":"ld","oa":23812,"o":"($5D04),a"},{"a":25854,"t":"code","b":[237,91,254,92],"m":"ld","oa":23806,"o":"de,($5CFE)"},{"a":25858,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":25859,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":25861,"t":"code","b":[33,66,96],"m":"ld","o":"hl,$6042"},{"a":25864,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25865,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25866,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":25867,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25868,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":25869,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25870,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":25871,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25872,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":25873,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":25874,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":25876,"t":"code","b":[9],"m":"add","o":"hl,bc"},{"a":25877,"t":"code","b":[229],"m":"push","o":"hl"},{"a":25878,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":25879,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":25881,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25882,"t":"code","b":[229],"m":"push","o":"hl"},{"a":25883,"t":"code","b":[17,57,177],"m":"ld","o":"de,$B139"},{"a":25886,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":25888,"t":"code","b":[58,4,93],"m":"ld","oa":23812,"o":"a,($5D04)"},{"a":25891,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":25892,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":25893,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":25894,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":25895,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25896,"t":"code","b":[209],"m":"pop","o":"de"},{"a":25897,"t":"code","b":[14,2],"m":"ld","o":"c,$02"},{"a":25899,"t":"code","b":[6,4],"m":"ld","o":"b,$04","x":[25913]},{"a":25901,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[25907]},{"a":25902,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":25903,"t":"code","b":[20],"m":"inc","o":"d"},{"a":25904,"t":"code","b":[18],"m":"ld","o":"(de),a"},{"a":25905,"t":"code","b":[20],"m":"inc","o":"d"},{"a":25906,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25907,"t":"code","b":[16,248],"m":"djnz","oa":25901,"o":"$652D"},{"a":25909,"t":"code","b":[13],"m":"dec","o":"c"},{"a":25910,"t":"code","b":[40,3],"m":"jr","oa":25915,"o":"z,$653B"},{"a":25912,"t":"code","b":[209],"m":"pop","o":"de"},{"a":25913,"t":"code","b":[24,240],"m":"jr","oa":25899,"o":"$652B"},{"a":25915,"t":"code","b":[235],"m":"ex","o":"de,hl","x":[25910]},{"a":25916,"t":"code","b":[37],"m":"dec","o":"h"},{"a":25917,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":25918,"t":"code","b":[15],"m":"rrca"},{"a":25919,"t":"code","b":[15],"m":"rrca"},{"a":25920,"t":"code","b":[15],"m":"rrca"},{"a":25921,"t":"code","b":[230,3],"m":"and","o":"$03"},{"a":25923,"t":"code","b":[246,88],"m":"or","o":"$58"},{"a":25925,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":25926,"t":"code","b":[58,1,93],"m":"ld","oa":23809,"o":"a,($5D01)"},{"a":25929,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":25930,"t":"code","b":[17,224,255],"m":"ld","o":"de,$FFE0"},{"a":25933,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":25934,"t":"code","b":[58,0,93],"m":"ld","oa":23808,"o":"a,($5D00)"},{"a":25937,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":25938,"t":"code","b":[241],"m":"pop","o":"af"},{"a":25939,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":25940,"t":"code","b":[209],"m":"pop","o":"de"},{"a":25941,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":25942,"t":"code","b":[201],"m":"ret"},{"a":25943,"l":"printMessage","c":"Print message A of the list at ($5D1F), from the row and column in $5D05 and $5D06. The messages each end with '|' ($7C), and message A begins after the A-th one (the 256th for 0). In a message, a byte of $F1 or more is a code (textCode) and '/' a new line (newLine); any other is a character, if bit 2 of $5D09 is set, or else a word of the dictionary at ($5D07). The dictionary is a list of words the same way, each one followed by a space unless bit 1 is set; in a word, a byte from $80 up is a code and '/' a new line. HL, DE and BC are kept. $5D09, how text is printed: bit 0, a '/' is a space; 1, no space after a word; 2, the bytes are characters; 3, double height; 4, the text runs down.","t":"code","b":[229],"m":"push","o":"hl","x":[26496,26816,27462,27535,27576,28034,30921,31495]},{"a":25944,"t":"code","b":[213],"m":"push","o":"de"},{"a":25945,"t":"code","b":[197],"m":"push","o":"bc"},{"a":25946,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":25947,"t":"code","b":[42,31,93],"m":"ld","oa":23839,"o":"hl,($5D1F)"},{"a":25950,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":25951,"t":"code","b":[35],"m":"inc","o":"hl","x":[25955,25957]},{"a":25952,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25953,"t":"code","b":[254,124],"m":"cp","o":"$7C"},{"a":25955,"t":"code","b":[32,250],"m":"jr","oa":25951,"o":"nz,$655F"},{"a":25957,"t":"code","b":[16,248],"m":"djnz","oa":25951,"o":"$655F"},{"a":25959,"t":"code","b":[34,10,93],"m":"ld","oa":23818,"o":"($5D0A),hl"},{"a":25962,"t":"code","b":[42,5,93],"m":"ld","oa":23813,"o":"hl,($5D05)"},{"a":25965,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":25968,"t":"code","b":[42,10,93],"m":"ld","oa":23818,"o":"hl,($5D0A)","x":[25993,26002,26014,26056]},{"a":25971,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":25972,"t":"code","b":[34,10,93],"m":"ld","oa":23818,"o":"($5D0A),hl"},{"a":25975,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":25976,"t":"code","b":[254,124],"m":"cp","o":"$7C"},{"a":25978,"t":"code","b":[40,36],"m":"jr","oa":26016,"o":"z,$65A0"},{"a":25980,"t":"code","b":[254,241],"m":"cp","o":"$F1"},{"a":25982,"t":"code","b":[56,11],"m":"jr","oa":25995,"o":"c,$658B"},{"a":25984,"t":"code","b":[205,63,102],"m":"call","oa":26175,"o":"textCode"},{"a":25987,"t":"code","b":[42,33,93],"m":"ld","oa":23841,"o":"hl,($5D21)"},{"a":25990,"t":"code","b":[34,10,93],"m":"ld","oa":23818,"o":"($5D0A),hl"},{"a":25993,"t":"code","b":[24,229],"m":"jr","oa":25968,"o":"$6570"},{"a":25995,"t":"code","b":[254,47],"m":"cp","o":"$2F","x":[25982]},{"a":25997,"t":"code","b":[32,5],"m":"jr","oa":26004,"o":"nz,$6594"},{"a":25999,"t":"code","b":[205,23,102],"m":"call","oa":26135,"o":"newLine"},{"a":26002,"t":"code","b":[24,220],"m":"jr","oa":25968,"o":"$6570"},{"a":26004,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09","x":[25997]},{"a":26007,"t":"code","b":[203,86],"m":"bit","o":"2,(hl)"},{"a":26009,"t":"code","b":[40,9],"m":"jr","oa":26020,"o":"z,$65A4"},{"a":26011,"t":"code","b":[205,231,101],"m":"call","oa":26087,"o":"putChar"},{"a":26014,"t":"code","b":[24,208],"m":"jr","oa":25968,"o":"$6570"},{"a":26016,"t":"code","b":[193],"m":"pop","o":"bc","x":[25978]},{"a":26017,"t":"code","b":[209],"m":"pop","o":"de"},{"a":26018,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":26019,"t":"code","b":[201],"m":"ret"},{"a":26020,"c":"A word of the dictionary: find it, and print it a character at a time ($5D0C walks it).","t":"code","b":[42,7,93],"m":"ld","oa":23815,"o":"hl,($5D07)","x":[26009]},{"a":26023,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":26024,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":26025,"t":"code","b":[35],"m":"inc","o":"hl","x":[26029,26031]},{"a":26026,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26027,"t":"code","b":[254,124],"m":"cp","o":"$7C"},{"a":26029,"t":"code","b":[32,250],"m":"jr","oa":26025,"o":"nz,$65A9"},{"a":26031,"t":"code","b":[16,248],"m":"djnz","oa":26025,"o":"$65A9"},{"a":26033,"t":"code","b":[34,12,93],"m":"ld","oa":23820,"o":"($5D0C),hl"},{"a":26036,"t":"code","b":[42,12,93],"m":"ld","oa":23820,"o":"hl,($5D0C)","x":[26071,26080,26085]},{"a":26039,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26040,"t":"code","b":[34,12,93],"m":"ld","oa":23820,"o":"($5D0C),hl"},{"a":26043,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26044,"t":"code","b":[254,124],"m":"cp","o":"$7C"},{"a":26046,"t":"code","b":[32,10],"m":"jr","oa":26058,"o":"nz,$65CA"},{"a":26048,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":26051,"t":"code","b":[203,78],"m":"bit","o":"1,(hl)"},{"a":26053,"t":"code","b":[204,252,101],"m":"call","oa":26108,"o":"z,advance"},{"a":26056,"t":"code","b":[24,166],"m":"jr","oa":25968,"o":"$6570"},{"a":26058,"t":"code","b":[254,128],"m":"cp","o":"$80","x":[26046]},{"a":26060,"t":"code","b":[56,11],"m":"jr","oa":26073,"o":"c,$65D9"},{"a":26062,"t":"code","b":[205,63,102],"m":"call","oa":26175,"o":"textCode"},{"a":26065,"t":"code","b":[42,33,93],"m":"ld","oa":23841,"o":"hl,($5D21)"},{"a":26068,"t":"code","b":[34,12,93],"m":"ld","oa":23820,"o":"($5D0C),hl"},{"a":26071,"t":"code","b":[24,219],"m":"jr","oa":26036,"o":"$65B4"},{"a":26073,"t":"code","b":[254,47],"m":"cp","o":"$2F","x":[26060]},{"a":26075,"t":"code","b":[32,5],"m":"jr","oa":26082,"o":"nz,$65E2"},{"a":26077,"t":"code","b":[205,23,102],"m":"call","oa":26135,"o":"newLine"},{"a":26080,"t":"code","b":[24,210],"m":"jr","oa":26036,"o":"$65B4"},{"a":26082,"t":"code","b":[205,231,101],"m":"call","oa":26087,"o":"putChar","x":[26075]},{"a":26085,"t":"code","b":[24,205],"m":"jr","oa":26036,"o":"$65B4"},{"a":26087,"l":"putChar","c":"Print character A, in double height if bit 3 of $5D09 is set, and move on.","t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09","x":[26011,26082]},{"a":26090,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":26092,"t":"code","b":[32,7],"m":"jr","oa":26101,"o":"nz,$65F5"},{"a":26094,"t":"code","b":[205,114,96],"m":"call","oa":24690,"o":"printChar"},{"a":26097,"t":"code","b":[205,252,101],"m":"call","oa":26108,"o":"advance"},{"a":26100,"t":"code","b":[201],"m":"ret"},{"a":26101,"t":"code","b":[205,247,100],"m":"call","oa":25847,"o":"printCharDouble","x":[26092]},{"a":26104,"t":"code","b":[205,252,101],"m":"call","oa":26108,"o":"advance"},{"a":26107,"t":"code","b":[201],"m":"ret"},{"a":26108,"l":"advance","c":"Move on one character: a column right, or with bit 4 of $5D09 a row down (two in double height).","t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09","x":[26053,26097,26104,26140]},{"a":26111,"t":"code","b":[203,102],"m":"bit","o":"4,(hl)"},{"a":26113,"t":"code","b":[32,5],"m":"jr","oa":26120,"o":"nz,$6608"},{"a":26115,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":26118,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":26119,"t":"code","b":[201],"m":"ret"},{"a":26120,"t":"code","b":[58,254,92],"m":"ld","oa":23806,"o":"a,($5CFE)","x":[26113]},{"a":26123,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26124,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":26127,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":26129,"t":"code","b":[200],"m":"ret","o":"z"},{"a":26130,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26131,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":26134,"t":"code","b":[201],"m":"ret"},{"a":26135,"l":"newLine","c":"A new line: the next row from where the line began ($5D05), two rows on in double height, or with bit 4 of $5D09 the next column; just a space with bit 0.","t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09","x":[25999,26077]},{"a":26138,"t":"code","b":[203,70],"m":"bit","o":"0,(hl)"},{"a":26140,"t":"code","b":[32,222],"m":"jr","oa":26108,"o":"nz,advance"},{"a":26142,"t":"code","b":[203,102],"m":"bit","o":"4,(hl)"},{"a":26144,"t":"code","b":[40,7],"m":"jr","oa":26153,"o":"z,$6629"},{"a":26146,"t":"code","b":[237,91,5,93],"m":"ld","oa":23813,"o":"de,($5D05)"},{"a":26150,"t":"code","b":[20],"m":"inc","o":"d"},{"a":26151,"t":"code","b":[24,13],"m":"jr","oa":26166,"o":"$6636"},{"a":26153,"t":"code","b":[237,91,5,93],"m":"ld","oa":23813,"o":"de,($5D05)","x":[26144]},{"a":26157,"t":"code","b":[28],"m":"inc","o":"e"},{"a":26158,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":26161,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":26163,"t":"code","b":[40,1],"m":"jr","oa":26166,"o":"z,$6636"},{"a":26165,"t":"code","b":[28],"m":"inc","o":"e"},{"a":26166,"t":"code","b":[237,83,5,93],"m":"ld","oa":23813,"o":"($5D05),de","x":[26151,26163]},{"a":26170,"t":"code","b":[237,83,254,92],"m":"ld","oa":23806,"o":"($5CFE),de"},{"a":26174,"t":"code","b":[201],"m":"ret"},{"a":26175,"l":"textCode","c":"A code in a message, at HL. $FF and $FD: the engine's dictionary ($AC06); $FE: the scenario's (its address at $B724). $FC, $FB: characters off, on (bit 2 of $5D09); $FA, $F9: double height on, off (bit 3); $F8, $F7: downwards off, on (bit 4); $F4, $F3: the space after words on, off (bit 1); $F2, $F1: '/' as a space off, on (bit 0). $F6: the colours, from the byte after the code into ATTR (and in double height the next into ATTR2). $F5: the row and the column, from the two bytes after. $5D21 is left on the code's last byte.","t":"code","b":[34,33,93],"m":"ld","oa":23841,"o":"($5D21),hl","x":[25984,26062]},{"a":26178,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26179,"t":"code","b":[32,7],"m":"jr","oa":26188,"o":"nz,$664C"},{"a":26181,"t":"code","b":[33,6,172],"m":"ld","o":"hl,$AC06"},{"a":26184,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":26187,"t":"code","b":[201],"m":"ret"},{"a":26188,"t":"code","b":[60],"m":"inc","o":"a","x":[26179]},{"a":26189,"t":"code","b":[32,7],"m":"jr","oa":26198,"o":"nz,$6656"},{"a":26191,"t":"code","b":[42,36,183],"m":"ld","oa":46884,"o":"hl,($B724)"},{"a":26194,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":26197,"t":"code","b":[201],"m":"ret"},{"a":26198,"t":"code","b":[60],"m":"inc","o":"a","x":[26189]},{"a":26199,"t":"code","b":[32,7],"m":"jr","oa":26208,"o":"nz,$6660"},{"a":26201,"t":"code","b":[33,6,172],"m":"ld","o":"hl,$AC06"},{"a":26204,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":26207,"t":"code","b":[201],"m":"ret"},{"a":26208,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09","x":[26199]},{"a":26211,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26212,"t":"code","b":[32,3],"m":"jr","oa":26217,"o":"nz,$6669"},{"a":26214,"t":"code","b":[203,150],"m":"res","o":"2,(hl)"},{"a":26216,"t":"code","b":[201],"m":"ret"},{"a":26217,"t":"code","b":[60],"m":"inc","o":"a","x":[26212]},{"a":26218,"t":"code","b":[32,3],"m":"jr","oa":26223,"o":"nz,$666F"},{"a":26220,"t":"code","b":[203,214],"m":"set","o":"2,(hl)"},{"a":26222,"t":"code","b":[201],"m":"ret"},{"a":26223,"t":"code","b":[60],"m":"inc","o":"a","x":[26218]},{"a":26224,"t":"code","b":[32,3],"m":"jr","oa":26229,"o":"nz,$6675"},{"a":26226,"t":"code","b":[203,222],"m":"set","o":"3,(hl)"},{"a":26228,"t":"code","b":[201],"m":"ret"},{"a":26229,"t":"code","b":[60],"m":"inc","o":"a","x":[26224]},{"a":26230,"t":"code","b":[32,3],"m":"jr","oa":26235,"o":"nz,$667B"},{"a":26232,"t":"code","b":[203,158],"m":"res","o":"3,(hl)"},{"a":26234,"t":"code","b":[201],"m":"ret"},{"a":26235,"t":"code","b":[60],"m":"inc","o":"a","x":[26230]},{"a":26236,"t":"code","b":[32,3],"m":"jr","oa":26241,"o":"nz,$6681"},{"a":26238,"t":"code","b":[203,166],"m":"res","o":"4,(hl)"},{"a":26240,"t":"code","b":[201],"m":"ret"},{"a":26241,"t":"code","b":[60],"m":"inc","o":"a","x":[26236]},{"a":26242,"t":"code","b":[32,3],"m":"jr","oa":26247,"o":"nz,$6687"},{"a":26244,"t":"code","b":[203,230],"m":"set","o":"4,(hl)"},{"a":26246,"t":"code","b":[201],"m":"ret"},{"a":26247,"t":"code","b":[60],"m":"inc","o":"a","x":[26242]},{"a":26248,"t":"code","b":[32,26],"m":"jr","oa":26276,"o":"nz,$66A4"},{"a":26250,"t":"code","b":[42,33,93],"m":"ld","oa":23841,"o":"hl,($5D21)"},{"a":26253,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26254,"t":"code","b":[34,33,93],"m":"ld","oa":23841,"o":"($5D21),hl"},{"a":26257,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26258,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":26261,"t":"code","b":[58,9,93],"m":"ld","oa":23817,"o":"a,($5D09)"},{"a":26264,"t":"code","b":[203,95],"m":"bit","o":"3,a"},{"a":26266,"t":"code","b":[200],"m":"ret","o":"z"},{"a":26267,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26268,"t":"code","b":[34,33,93],"m":"ld","oa":23841,"o":"($5D21),hl"},{"a":26271,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26272,"t":"code","b":[50,1,93],"m":"ld","oa":23809,"o":"($5D01),a"},{"a":26275,"t":"code","b":[201],"m":"ret"},{"a":26276,"t":"code","b":[60],"m":"inc","o":"a","x":[26248]},{"a":26277,"t":"code","b":[32,19],"m":"jr","oa":26298,"o":"nz,$66BA"},{"a":26279,"t":"code","b":[42,33,93],"m":"ld","oa":23841,"o":"hl,($5D21)"},{"a":26282,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26283,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":26284,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26285,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":26286,"t":"code","b":[34,33,93],"m":"ld","oa":23841,"o":"($5D21),hl"},{"a":26289,"t":"code","b":[237,67,5,93],"m":"ld","oa":23813,"o":"($5D05),bc"},{"a":26293,"t":"code","b":[237,67,254,92],"m":"ld","oa":23806,"o":"($5CFE),bc"},{"a":26297,"t":"code","b":[201],"m":"ret"},{"a":26298,"t":"code","b":[60],"m":"inc","o":"a","x":[26277]},{"a":26299,"t":"code","b":[32,3],"m":"jr","oa":26304,"o":"nz,$66C0"},{"a":26301,"t":"code","b":[203,142],"m":"res","o":"1,(hl)"},{"a":26303,"t":"code","b":[201],"m":"ret"},{"a":26304,"t":"code","b":[60],"m":"inc","o":"a","x":[26299]},{"a":26305,"t":"code","b":[32,3],"m":"jr","oa":26310,"o":"nz,$66C6"},{"a":26307,"t":"code","b":[203,206],"m":"set","o":"1,(hl)"},{"a":26309,"t":"code","b":[201],"m":"ret"},{"a":26310,"t":"code","b":[60],"m":"inc","o":"a","x":[26305]},{"a":26311,"t":"code","b":[32,3],"m":"jr","oa":26316,"o":"nz,$66CC"},{"a":26313,"t":"code","b":[203,134],"m":"res","o":"0,(hl)"},{"a":26315,"t":"code","b":[201],"m":"ret"},{"a":26316,"t":"code","b":[60],"m":"inc","o":"a","x":[26311]},{"a":26317,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":26318,"t":"code","b":[203,198],"m":"set","o":"0,(hl)"},{"a":26320,"t":"code","b":[201],"m":"ret"},{"a":26321,"l":"repeatDelay","c":"The controls' auto-repeat. With nothing held, $5CFB is cleared and the routine returns at once. Otherwise it waits up to 110 turns of a short delay and a read of the controls (only 40 while the controls repeat, with $5CFB set), and returns early when they are let go.","t":"code","b":[33,251,92],"m":"ld","o":"hl,$5CFB","x":[26878,27841,27871,31705,37655,40366]},{"a":26324,"t":"code","b":[17,42,93],"m":"ld","o":"de,$5D2A"},{"a":26327,"t":"code","b":[26],"m":"ld","o":"a,(de)"},{"a":26328,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26329,"t":"code","b":[32,2],"m":"jr","oa":26333,"o":"nz,$66DD"},{"a":26331,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26332,"t":"code","b":[201],"m":"ret"},{"a":26333,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[26329]},{"a":26334,"t":"code","b":[183],"m":"or","o":"a"},{"a":26335,"t":"code","b":[6,40],"m":"ld","o":"b,$28"},{"a":26337,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":26339,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26340,"t":"code","b":[32,2],"m":"jr","oa":26344,"o":"nz,$66E8"},{"a":26342,"t":"code","b":[6,110],"m":"ld","o":"b,$6E"},{"a":26344,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)","x":[26340,26357]},{"a":26347,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26348,"t":"code","b":[200],"m":"ret","o":"z"},{"a":26349,"t":"code","b":[197],"m":"push","o":"bc"},{"a":26350,"t":"code","b":[205,218,98],"m":"call","oa":25306,"o":"delay3"},{"a":26353,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":26356,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26357,"t":"code","b":[16,241],"m":"djnz","oa":26344,"o":"$66E8"},{"a":26359,"t":"code","b":[201],"m":"ret"},{"a":26360,"l":"printNumber","c":"Print the number A, 0 to 255, in three characters, the digits and then spaces, leaving PRINT_COL two on.","t":"code","b":[254,10],"m":"cp","o":"$0A","x":[24534,24550,24588,24608,26538,26558,27315,27327,27393,27607,27683,29991,31569,31586,31603,33086,33136,33596,34732,34744,34756,34768,34784,34951,36296,36345,36357,37641,40521,40761,41177,41537]},{"a":26362,"t":"code","b":[48,14],"m":"jr","oa":26378,"o":"nc,$670A"},{"a":26364,"t":"code","b":[205,66,103],"m":"call","oa":26434,"o":"digitOn"},{"a":26367,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":26369,"t":"code","b":[205,68,103],"m":"call","oa":26436,"o":"charOn"},{"a":26372,"t":"code","b":[62,32],"m":"ld","o":"a,$20","x":[26389]},{"a":26374,"t":"code","b":[205,76,103],"m":"call","oa":26444,"o":"putDigit"},{"a":26377,"t":"code","b":[201],"m":"ret"},{"a":26378,"t":"code","b":[254,100],"m":"cp","o":"$64","x":[26362]},{"a":26380,"t":"code","b":[48,9],"m":"jr","oa":26391,"o":"nc,$6717"},{"a":26382,"t":"code","b":[205,43,103],"m":"call","oa":26411,"o":"twoDigits"},{"a":26385,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":26388,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":26389,"t":"code","b":[24,237],"m":"jr","oa":26372,"o":"$6704"},{"a":26391,"t":"code","b":[254,200],"m":"cp","o":"$C8","x":[26380]},{"a":26393,"t":"code","b":[56,7],"m":"jr","oa":26402,"o":"c,$6722"},{"a":26395,"t":"code","b":[214,200],"m":"sub","o":"$C8"},{"a":26397,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":26398,"t":"code","b":[62,50],"m":"ld","o":"a,$32"},{"a":26400,"t":"code","b":[24,5],"m":"jr","oa":26407,"o":"$6727"},{"a":26402,"t":"code","b":[214,100],"m":"sub","o":"$64","x":[26393]},{"a":26404,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":26405,"t":"code","b":[62,49],"m":"ld","o":"a,$31"},{"a":26407,"t":"code","b":[205,68,103],"m":"call","oa":26436,"o":"charOn","x":[26400]},{"a":26410,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":26411,"l":"twoDigits","c":"Print A, under 100, as two digits, the second without moving on.","t":"code","b":[6,0],"m":"ld","o":"b,$00","x":[26382]},{"a":26413,"t":"code","b":[254,10],"m":"cp","o":"$0A","x":[26420]},{"a":26415,"t":"code","b":[56,5],"m":"jr","oa":26422,"o":"c,$6736"},{"a":26417,"t":"code","b":[214,10],"m":"sub","o":"$0A"},{"a":26419,"t":"code","b":[4],"m":"inc","o":"b"},{"a":26420,"t":"code","b":[24,247],"m":"jr","oa":26413,"o":"$672D"},{"a":26422,"t":"code","b":[79],"m":"ld","o":"c,a","x":[26415]},{"a":26423,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":26424,"t":"code","b":[205,66,103],"m":"call","oa":26434,"o":"digitOn"},{"a":26427,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":26428,"t":"code","b":[198,48],"m":"add","o":"a,$30"},{"a":26430,"t":"code","b":[205,76,103],"m":"call","oa":26444,"o":"putDigit"},{"a":26433,"t":"code","b":[201],"m":"ret"},{"a":26434,"l":"digitOn","c":"Print the digit A and move on.","t":"code","b":[198,48],"m":"add","o":"a,$30","x":[26364,26424]},{"a":26436,"l":"charOn","c":"Print the character A and move on a column.","t":"code","b":[205,76,103],"m":"call","oa":26444,"o":"putDigit","x":[26369,26407]},{"a":26439,"t":"code","b":[33,255,92],"m":"ld","o":"hl,$5CFF"},{"a":26442,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":26443,"t":"code","b":[201],"m":"ret"},{"a":26444,"l":"putDigit","c":"Print the character A where PRINT_ROW and PRINT_COL say, in double height if bit 3 of $5D09 is set, without moving on. HL is kept.","t":"code","b":[229],"m":"push","o":"hl","x":[26374,26430,26436]},{"a":26445,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":26448,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":26450,"t":"code","b":[40,5],"m":"jr","oa":26457,"o":"z,$6759"},{"a":26452,"t":"code","b":[205,247,100],"m":"call","oa":25847,"o":"printCharDouble"},{"a":26455,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":26456,"t":"code","b":[201],"m":"ret"},{"a":26457,"t":"code","b":[205,114,96],"m":"call","oa":24690,"o":"printChar","x":[26450]},{"a":26460,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":26461,"t":"code","b":[201],"m":"ret"},{"a":26462,"l":"infoText","c":"Print message A of the engine's list in double height (bit 3 of $5D09), in the colours $06 above and $46 below: the readout's lines under the view.","t":"code","b":[229],"m":"push","o":"hl","x":[24505,24576,25274,25291,26966,27019,27029,27034,27087,27206,27214,27298,27772,29996,30225,30467,31559,31855,33019,33100,33128,33946,34653,36228,36268,36534,36539,37493,37569,39904,40026,40270,40307,40339,40455,40476,40721,41269,41276,41286,41498,41542,41912,42234,42241,45239,45446,45517,45569]},{"a":26463,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":26466,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":26468,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":26471,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":26474,"t":"code","b":[24,8],"m":"jr","oa":26484,"o":"engineText"},{"a":26476,"l":"text","c":"Print message A of the engine's list in the usual height and the colours as they are.","t":"code","b":[229],"m":"push","o":"hl","x":[24558,26516,26521,26971,27071,27132,27346,27370,27449,27550,29967,30239,30316,30472,31305,31942,32993,36465,36481,36497,36508,42279,45234,45512,45564]},{"a":26477,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":26480,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":26482,"t":"code","b":[24,0],"m":"jr","oa":26484,"o":"engineText"},{"a":26484,"l":"engineText","c":"The engine's list of messages ($A64E) and its dictionary ($AC06), then printMessage.","t":"code","b":[33,6,172],"m":"ld","o":"hl,$AC06","x":[26474,26482]},{"a":26487,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":26490,"t":"code","b":[33,78,166],"m":"ld","o":"hl,$A64E"},{"a":26493,"t":"code","b":[34,31,93],"m":"ld","oa":23839,"o":"($5D1F),hl"},{"a":26496,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":26499,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":26500,"t":"code","b":[201],"m":"ret"},{"a":26501,"l":"showSides","c":"The bottom line: messages 1 and 2 in the colour of the side whose turn it is ($B702 + the side in $B712), then in white on red the turn ($B711) and that side's victory points ($B70F + the side).","t":"code","b":[42,18,183],"m":"ld","oa":46866,"o":"hl,($B712)","x":[26958,30217,30459,31423,32119,32132,32147,33148,34249,34939,37212,37260,38907,42006]},{"a":26504,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":26506,"t":"code","b":[17,2,183],"m":"ld","o":"de,$B702"},{"a":26509,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26510,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26511,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":26514,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":26516,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":26519,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":26521,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":26524,"t":"code","b":[62,114],"m":"ld","o":"a,$72"},{"a":26526,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":26529,"t":"code","b":[33,23,10],"m":"ld","o":"hl,$0A17"},{"a":26532,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":26535,"t":"code","b":[58,17,183],"m":"ld","oa":46865,"o":"a,($B711)"},{"a":26538,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":26541,"t":"code","b":[33,23,16],"m":"ld","o":"hl,$1017"},{"a":26544,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":26547,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":26550,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":26552,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26553,"t":"code","b":[33,15,183],"m":"ld","o":"hl,$B70F"},{"a":26556,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26557,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26558,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":26561,"t":"code","b":[201],"m":"ret"},{"a":26562,"l":"unitPtr","c":"IX = the record of unit A: the units are $8C on in the map, 40 bytes each from $D39F. Returns A = the unit's number from 0, DE = 40 x A.","t":"code","b":[214,140],"m":"sub","o":"$8C","x":[24239,26688,27091,27480,27640,27717,28386,29860,30161,30447,30576,34645,37240,39176,39291,39343,39787,39992,40564,40698,40844,41213,41689,41718,41885]},{"a":26564,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":26566,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":26567,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26568,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26569,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26570,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26571,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26572,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":26574,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26575,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26576,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26577,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26578,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26579,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26580,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26581,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26582,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26583,"t":"code","b":[221,33,159,211],"m":"ld","o":"ix,$D39F"},{"a":26587,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":26588,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":26590,"t":"code","b":[201],"m":"ret"},{"a":26591,"l":"objectPtr","c":"IX = the record of object A: the objects are $6E to $8B in the map, 20 bytes each from the address at $B728.","t":"code","b":[214,110],"m":"sub","o":"$6E","x":[28459,31020,31521,31839,31997,32296,32358,32714,33008,36367,39262,40115,40241,41226,41337,41371]},{"a":26593,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":26595,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":26596,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26597,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26598,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26599,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26600,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":26602,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26603,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26604,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26605,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26606,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26607,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":26608,"t":"code","b":[221,42,40,183],"m":"ld","oa":46888,"o":"ix,($B728)"},{"a":26612,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":26614,"t":"code","b":[201],"m":"ret"},{"a":26615,"l":"terrainPtr","c":"IY = the record of terrain A, 12 bytes each from the address at $B726. Byte $04 of a unit's record picks the byte of its terrain's record that is the cost of a step onto it ($FF: impassable).","t":"code","b":[38,0],"m":"ld","o":"h,$00","x":[27664,28483,31083,31820,32837,33189,39029,41793]},{"a":26617,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":26618,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26619,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26620,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26621,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":26623,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26624,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26625,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26626,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26627,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26628,"t":"code","b":[253,42,38,183],"m":"ld","oa":46886,"o":"iy,($B726)"},{"a":26632,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":26633,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":26635,"t":"code","b":[201],"m":"ret"},{"a":26636,"l":"cursorSquare","c":"$5D24 (and HL) = the map's square under the cursor: the view's corner plus the cursor's square, the row in the low byte.","t":"code","b":[237,91,17,93],"m":"ld","oa":23825,"o":"de,($5D11)","x":[26722,26738,26990,27726,28173,42019]},{"a":26640,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":26643,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26644,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":26647,"t":"code","b":[201],"m":"ret"},{"a":26648,"l":"squareInfo","c":"Describe the square under the cursor in the readout, from the scenario's messages. $5CFA keeps the square. Terrain ($00-$6D) has a message of its own; an object ($6E-$8B) its own, under the message for the floor under it (floorUnder); a unit ($8C up) its name, what it holds, and what it stands on.","t":"code","b":[237,91,17,93],"m":"ld","oa":23825,"o":"de,($5D11)","x":[25277,26974,27074]},{"a":26652,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":26655,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26656,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":26657,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":26660,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26661,"t":"code","b":[50,250,92],"m":"ld","oa":23802,"o":"($5CFA),a"},{"a":26664,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":26666,"t":"code","b":[48,11],"m":"jr","oa":26679,"o":"nc,$6837"},{"a":26668,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":26670,"t":"code","b":[48,66],"m":"jr","oa":26738,"o":"nc,$6872"},{"a":26672,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804"},{"a":26675,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26678,"t":"code","b":[201],"m":"ret"},{"a":26679,"c":"A unit: its name, the object in its hands (if any), and then the square it stands on, an object or terrain.","t":"code","b":[33,14,24],"m":"ld","o":"hl,$180E","x":[26666]},{"a":26682,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26685,"t":"code","b":[58,250,92],"m":"ld","oa":23802,"o":"a,($5CFA)"},{"a":26688,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":26691,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":26694,"t":"code","b":[183],"m":"or","o":"a"},{"a":26695,"t":"code","b":[40,12],"m":"jr","oa":26709,"o":"z,$6855"},{"a":26697,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":26700,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":26703,"t":"code","b":[33,20,24],"m":"ld","o":"hl,$1814"},{"a":26706,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26709,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)","x":[26695]},{"a":26712,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":26714,"t":"code","b":[56,15],"m":"jr","oa":26731,"o":"c,$686B"},{"a":26716,"t":"code","b":[33,9,24],"m":"ld","o":"hl,$1809"},{"a":26719,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26722,"t":"code","b":[205,12,104],"m":"call","oa":26636,"o":"cursorSquare"},{"a":26725,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":26728,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":26731,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804","x":[26714]},{"a":26734,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26737,"t":"code","b":[201],"m":"ret"},{"a":26738,"c":"An object: the floor under it, and the object.","t":"code","b":[205,12,104],"m":"call","oa":26636,"o":"cursorSquare","x":[26670]},{"a":26741,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":26744,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":26747,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804"},{"a":26750,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26753,"t":"code","b":[58,250,92],"m":"ld","oa":23802,"o":"a,($5CFA)"},{"a":26756,"t":"code","b":[33,9,24],"m":"ld","o":"hl,$1809"},{"a":26759,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":26762,"t":"code","b":[201],"m":"ret"},{"a":26763,"l":"carriedPtr","c":"IY = the record of the scenario's object A, from 1, 6 bytes each from the address at $B72A: its kind, its row and column, the floor under it, its ammunition and the unit carrying it. Returns at once, with Z, for 0 (none).","t":"code","b":[183],"m":"or","o":"a","x":[26697,31779,31991,36810,39954,40053,40225,40258]},{"a":26764,"t":"code","b":[200],"m":"ret","o":"z"},{"a":26765,"t":"code","b":[61],"m":"dec","o":"a"},{"a":26766,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":26767,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":26769,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26770,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":26771,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":26773,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":26774,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26775,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26776,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":26777,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":26781,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":26783,"t":"code","b":[201],"m":"ret"},{"a":26784,"l":"scenarioTextAt","c":"Message A + 1 of the scenario's list in double height, in the colours $06 and $46, at the column in H and the row in L.","t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl","x":[26675,26682,26706,26719,26734,26750,26759,27293,27767,30234,33034,34720,36237,39913,41942]},{"a":26787,"l":"scenarioText","c":"The same where $5D05 says: the scenario's list of messages at the address in $B722, its dictionary at the address in $B724.","t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":26790,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":26792,"t":"code","b":[237,91,36,183],"m":"ld","oa":46884,"o":"de,($B724)"},{"a":26796,"t":"code","b":[237,83,7,93],"m":"ld","oa":23815,"o":"($5D07),de"},{"a":26800,"t":"code","b":[237,91,34,183],"m":"ld","oa":46882,"o":"de,($B722)"},{"a":26804,"t":"code","b":[237,83,31,93],"m":"ld","oa":23839,"o":"($5D1F),de"},{"a":26808,"t":"code","b":[17,6,70],"m":"ld","o":"de,$4606"},{"a":26811,"t":"code","b":[237,83,0,93],"m":"ld","oa":23808,"o":"($5D00),de"},{"a":26815,"t":"code","b":[60],"m":"inc","o":"a"},{"a":26816,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":26819,"t":"code","b":[201],"m":"ret"},{"a":26820,"l":"menuSelect","c":"Choose from the menu on show. It has ($5D2C) lines, and the one chosen ($5D2B, from 0) is lit (lightLine). Up and down move the light, from the last line round to the first and back, with the controls' auto-repeat; fire flashes the line four times, with sound effect 5 each time, and returns.","t":"code","b":[175],"m":"xor","o":"a","x":[27057,27228,31153,31870,36555]},{"a":26821,"t":"code","b":[50,43,93],"m":"ld","oa":23851,"o":"($5D2B),a"},{"a":26824,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":26827,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls","x":[26881]},{"a":26830,"t":"code","b":[33,43,93],"m":"ld","o":"hl,$5D2B"},{"a":26833,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":26836,"t":"code","b":[15],"m":"rrca"},{"a":26837,"t":"code","b":[48,44],"m":"jr","oa":26883,"o":"nc,$6903"},{"a":26839,"t":"code","b":[15],"m":"rrca"},{"a":26840,"t":"code","b":[56,16],"m":"jr","oa":26858,"o":"c,$68EA"},{"a":26842,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":26845,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26846,"t":"code","b":[214,1],"m":"sub","o":"$01"},{"a":26848,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26849,"t":"code","b":[48,24],"m":"jr","oa":26875,"o":"nc,$68FB"},{"a":26851,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":26854,"t":"code","b":[61],"m":"dec","o":"a"},{"a":26855,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26856,"t":"code","b":[24,17],"m":"jr","oa":26875,"o":"$68FB"},{"a":26858,"t":"code","b":[15],"m":"rrca","x":[26840]},{"a":26859,"t":"code","b":[56,17],"m":"jr","oa":26878,"o":"c,$68FE"},{"a":26861,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":26864,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":26867,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":26868,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":26869,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":26870,"t":"code","b":[184],"m":"cp","o":"b"},{"a":26871,"t":"code","b":[56,2],"m":"jr","oa":26875,"o":"c,$68FB"},{"a":26873,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":26875,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine","x":[26849,26856,26871]},{"a":26878,"t":"code","b":[205,209,102],"m":"call","oa":26321,"o":"repeatDelay","x":[26859]},{"a":26881,"t":"code","b":[24,200],"m":"jr","oa":26827,"o":"$68CB"},{"a":26883,"c":"Fire: the flash.","t":"code","b":[6,4],"m":"ld","o":"b,$04","x":[26837]},{"a":26885,"t":"code","b":[197],"m":"push","o":"bc","x":[26901]},{"a":26886,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":26889,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":26891,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":26894,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":26897,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":26900,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26901,"t":"code","b":[16,238],"m":"djnz","oa":26885,"o":"$6905"},{"a":26903,"t":"code","b":[201],"m":"ret"},{"a":26904,"l":"lightLine","c":"Light the menu's line ($5D2B), or put it out: the attributes of its 8 cells across by 2 rows, from the address in $5D2D plus 64 x (the line + 1), have their ink and paper swapped and BRIGHT set. HL is kept.","t":"code","b":[229],"m":"push","o":"hl","x":[26824,26842,26861,26875,26886,26894,30027,30035,40360,40383,40400,40409,40429,40450,40482,40847,40917]},{"a":26905,"t":"code","b":[42,45,93],"m":"ld","oa":23853,"o":"hl,($5D2D)"},{"a":26908,"t":"code","b":[17,64,0],"m":"ld","o":"de,$0040"},{"a":26911,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)"},{"a":26914,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":26915,"t":"code","b":[4],"m":"inc","o":"b"},{"a":26916,"t":"code","b":[25],"m":"add","o":"hl,de","x":[26917]},{"a":26917,"t":"code","b":[16,253],"m":"djnz","oa":26916,"o":"$6924"},{"a":26919,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":26921,"t":"code","b":[197],"m":"push","o":"bc","x":[26954]},{"a":26922,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":26924,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[26947]},{"a":26925,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":26927,"t":"code","b":[15],"m":"rrca"},{"a":26928,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":26930,"t":"code","b":[15],"m":"rrca"},{"a":26931,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":26933,"t":"code","b":[15],"m":"rrca"},{"a":26934,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":26936,"t":"code","b":[203,57],"m":"srl","o":"c"},{"a":26938,"t":"code","b":[203,57],"m":"srl","o":"c"},{"a":26940,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":26942,"t":"code","b":[177],"m":"or","o":"c"},{"a":26943,"t":"code","b":[246,64],"m":"or","o":"$40"},{"a":26945,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":26946,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":26947,"t":"code","b":[16,231],"m":"djnz","oa":26924,"o":"$692C"},{"a":26949,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":26950,"t":"code","b":[17,24,0],"m":"ld","o":"de,$0018"},{"a":26953,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":26954,"t":"code","b":[16,221],"m":"djnz","oa":26921,"o":"$6929"},{"a":26956,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":26957,"t":"code","b":[201],"m":"ret"},{"a":26958,"l":"cursorMode","c":"Cursor mode, the heart of a player's turn: the bottom line, the view and the readout, then the cursor (cursorStep) until fire is pressed, and the menu for the square under it. A unit of the side whose turn it is that has action points left offers line 0 (select it); any unit offers line 1; lines 2 to 5 are always there. The choice runs its routine from the table at $6A35. Returns when the turn ends (endTurn).","t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides","x":[24440]},{"a":26961,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":26964,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":26966,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":26969,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":26971,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":26974,"t":"code","b":[205,24,104],"m":"call","oa":26648,"o":"squareInfo"},{"a":26977,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"cursorStep","x":[26985,27083]},{"a":26980,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":26983,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":26985,"t":"code","b":[32,246],"m":"jr","oa":26977,"o":"nz,$6961"},{"a":26987,"t":"code","b":[205,238,105],"m":"call","oa":27118,"o":"menuOpen"},{"a":26990,"t":"code","b":[205,12,104],"m":"call","oa":26636,"o":"cursorSquare"},{"a":26993,"t":"code","b":[237,91,36,93],"m":"ld","oa":23844,"o":"de,($5D24)"},{"a":26997,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":27000,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":27003,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27004,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27006,"t":"code","b":[56,24],"m":"jr","oa":27032,"o":"c,$6998"},{"a":27008,"t":"code","b":[205,211,105],"m":"call","oa":27091,"o":"ownUnit"},{"a":27011,"t":"code","b":[32,9],"m":"jr","oa":27022,"o":"nz,$698E"},{"a":27013,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27014,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27017,"t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":27019,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27022,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[27011]},{"a":27024,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27027,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":27029,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27032,"t":"code","b":[62,9],"m":"ld","o":"a,$09","x":[27006]},{"a":27034,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27037,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":27039,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27042,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27043,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27046,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27047,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27050,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27051,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27054,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":27057,"t":"code","b":[205,196,104],"m":"call","oa":26820,"o":"menuSelect"},{"a":27060,"t":"code","b":[33,53,106],"m":"ld","o":"hl,$6A35"},{"a":27063,"t":"code","b":[205,31,106],"m":"call","oa":27167,"o":"dispatch"},{"a":27066,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":27069,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":27071,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":27074,"t":"code","b":[205,24,104],"m":"call","oa":26648,"o":"squareInfo"},{"a":27077,"t":"code","b":[205,74,100],"m":"call","oa":25674,"o":"eraseCursor"},{"a":27080,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":27083,"t":"code","b":[24,148],"m":"jr","oa":26977,"o":"$6961"},{"a":27085,"l":"clearInfo","c":"Clear the readout: message 5.","t":"code","b":[62,5],"m":"ld","o":"a,$05","x":[27066,27121,27201,27284,27758,28013,30220,30462,32988,36223,37488,37546,39899,40021,40075,40265,41907]},{"a":27087,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27090,"t":"code","b":[201],"m":"ret"},{"a":27091,"l":"ownUnit","c":"Whether unit A can be selected: IX and $5D33 its record; Z if it is on the side whose turn it is (bit 0 of its byte $25 matches $B712) and its action points ($06) are not 0.","t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr","x":[27008]},{"a":27094,"t":"code","b":[221,34,51,93],"m":"ld","oa":23859,"o":"($5D33),ix"},{"a":27098,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)"},{"a":27101,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":27103,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":27106,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":27107,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":27108,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":27111,"t":"code","b":[183],"m":"or","o":"a"},{"a":27112,"t":"code","b":[40,2],"m":"jr","oa":27116,"o":"z,$69EC"},{"a":27114,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27115,"t":"code","b":[201],"m":"ret"},{"a":27116,"t":"code","b":[60],"m":"inc","o":"a","x":[27112]},{"a":27117,"t":"code","b":[201],"m":"ret"},{"a":27118,"l":"menuOpen","c":"Open a menu: the cursor off, the readout cleared, message 6, no lines yet ($5D2C, their option numbers listed from $5B00 by the pointer at $5D31), the lines lit from attribute $5858, and the text from row 4, column 24.","t":"code","b":[205,74,100],"m":"call","oa":25674,"o":"eraseCursor","x":[26987,27209,30946,31850,36439]},{"a":27121,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":27124,"t":"code","b":[33,88,88],"m":"ld","o":"hl,$5858"},{"a":27127,"t":"code","b":[34,45,93],"m":"ld","oa":23853,"o":"($5D2D),hl"},{"a":27130,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":27132,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":27135,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27136,"t":"code","b":[50,44,93],"m":"ld","oa":23852,"o":"($5D2C),a"},{"a":27139,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":27142,"t":"code","b":[34,49,93],"m":"ld","oa":23857,"o":"($5D31),hl"},{"a":27145,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804"},{"a":27148,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":27151,"t":"code","b":[201],"m":"ret"},{"a":27152,"l":"addOption","c":"Add option A to the menu's list. A is kept.","t":"code","b":[245],"m":"push","o":"af","x":[27014,27024,27039,27043,27047,27051,27218,27222,30915,31859,31864,36460,36476,36492,36513,36529,36544,36549]},{"a":27153,"t":"code","b":[42,49,93],"m":"ld","oa":23857,"o":"hl,($5D31)"},{"a":27156,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":27157,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":27158,"t":"code","b":[34,49,93],"m":"ld","oa":23857,"o":"($5D31),hl"},{"a":27161,"t":"code","b":[33,44,93],"m":"ld","o":"hl,$5D2C"},{"a":27164,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":27165,"t":"code","b":[241],"m":"pop","o":"af"},{"a":27166,"t":"code","b":[201],"m":"ret"},{"a":27167,"l":"dispatch","c":"Run the routine the line chosen asks for: its option number, from the list at $5B00, picks a word of the table at HL, and the routine is jumped to, so that it returns to the caller.","t":"code","b":[229],"m":"push","o":"hl","x":[27063,27234,31159,36561]},{"a":27168,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":27171,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":27173,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)"},{"a":27176,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":27177,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27178,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":27179,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":27181,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":27182,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27183,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27184,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":27185,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":27186,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":27187,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":27188,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":27189,"l":"cursorOptions","c":"The routines of cursor mode's menu, by option: select the unit ($6CB3), $8742, $840C, $8495, end the turn (endTurnMenu), and nothing ($6A6C).","t":"word","b":[179,108,66,135,12,132,149,132],"d":[27827,34626,33804,33941]},{"a":27197,"t":"word","b":[65,106,108,106],"d":[27201,27244]},{"a":27201,"l":"endTurnMenu","c":"Option 4: end the turn? A menu of two lines, no and yes. Yes ($6A6A) returns past this routine and past cursor mode too.","t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":27204,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":27206,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27209,"t":"code","b":[205,238,105],"m":"call","oa":27118,"o":"menuOpen"},{"a":27212,"t":"code","b":[62,82],"m":"ld","o":"a,$52"},{"a":27214,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27217,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27218,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27221,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27222,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":27225,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":27228,"t":"code","b":[205,196,104],"m":"call","oa":26820,"o":"menuSelect"},{"a":27231,"t":"code","b":[33,102,106],"m":"ld","o":"hl,$6A66"},{"a":27234,"t":"code","b":[205,31,106],"m":"call","oa":27167,"o":"dispatch"},{"a":27237,"t":"code","b":[201],"m":"ret"},{"a":27238,"l":"endTurnOptions","c":"The two answers: no (noOption) and yes (endTurn).","t":"word","b":[108,106,106,106],"d":[27244,27242]},{"a":27242,"l":"endTurn","c":"Yes: two return addresses dropped, so the RET leaves cursor mode.","t":"code","b":[225],"m":"pop","o":"hl"},{"a":27243,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":27244,"l":"noOption","c":"No: nothing.","t":"code","b":[201],"m":"ret"},{"a":27245,"l":"waitRelease","c":"Wait until no key and no control is held: the ROM's KEY-SCAN, then the controls. Not in the computer's turn ($5DF7 set). Each turn of the loop adds one to $5D9C, which the random numbers mix in. Every register is kept.","t":"code","b":[245],"m":"push","o":"af","x":[24561,24570,27054,27080,27225,27823,28804,30308,30349,30503,30531,31150,31341,31867,31964,34126,36552,37603,40363,40458,40854,41506,41545,41595,42289]},{"a":27246,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":27249,"t":"code","b":[183],"m":"or","o":"a"},{"a":27250,"t":"code","b":[32,21],"m":"jr","oa":27273,"o":"nz,$6A89"},{"a":27252,"t":"code","b":[205,142,2],"m":"call","oa":654,"o":"$028E","x":[27262,27271]},{"a":27255,"t":"code","b":[33,156,93],"m":"ld","o":"hl,$5D9C"},{"a":27258,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":27259,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":27260,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":27262,"t":"code","b":[32,244],"m":"jr","oa":27252,"o":"nz,$6A74"},{"a":27264,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":27267,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":27270,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27271,"t":"code","b":[32,235],"m":"jr","oa":27252,"o":"nz,$6A74"},{"a":27273,"t":"code","b":[241],"m":"pop","o":"af","x":[27250]},{"a":27274,"t":"code","b":[201],"m":"ret"},{"a":27275,"l":"unitStats","c":"The selected unit's numbers (its record's address at $5D33), unless its $08 is 0: its name, a share of $07 less $08 by $18 (healthShare), $19, two words picked by the top three bits of $0C and of $0A, half of $05, and the panel (unitPanel).","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[27791,28121,28168,30528,31178,32516,32634,33642,39775,39928]},{"a":27279,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":27282,"t":"code","b":[183],"m":"or","o":"a"},{"a":27283,"t":"code","b":[200],"m":"ret","o":"z"},{"a":27284,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":27287,"t":"code","b":[33,0,24],"m":"ld","o":"hl,$1800"},{"a":27290,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":27293,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":27296,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":27298,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27301,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":27303,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":27306,"t":"code","b":[33,13,29],"m":"ld","o":"hl,$1D0D"},{"a":27309,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":27312,"t":"code","b":[205,41,107],"m":"call","oa":27433,"o":"healthShare"},{"a":27315,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":27318,"t":"code","b":[33,14,29],"m":"ld","o":"hl,$1D0E"},{"a":27321,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":27324,"t":"code","b":[221,126,25],"m":"ld","o":"a,(ix+$19)"},{"a":27327,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":27330,"t":"code","b":[33,10,24],"m":"ld","o":"hl,$180A"},{"a":27333,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":27336,"t":"code","b":[221,126,12],"m":"ld","o":"a,(ix+$0C)"},{"a":27339,"t":"code","b":[7],"m":"rlca"},{"a":27340,"t":"code","b":[7],"m":"rlca"},{"a":27341,"t":"code","b":[7],"m":"rlca"},{"a":27342,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":27344,"t":"code","b":[198,46],"m":"add","o":"a,$2E"},{"a":27346,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":27349,"t":"code","b":[33,12,24],"m":"ld","o":"hl,$180C"},{"a":27352,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":27355,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":27357,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":27360,"t":"code","b":[221,126,10],"m":"ld","o":"a,(ix+$0A)"},{"a":27363,"t":"code","b":[7],"m":"rlca"},{"a":27364,"t":"code","b":[7],"m":"rlca"},{"a":27365,"t":"code","b":[7],"m":"rlca"},{"a":27366,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":27368,"t":"code","b":[198,54],"m":"add","o":"a,$36"},{"a":27370,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":27373,"t":"code","b":[33,8,24],"m":"ld","o":"hl,$1808"},{"a":27376,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":27379,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":27381,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":27384,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27385,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":27388,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":27391,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":27393,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":27396,"t":"code","b":[205,188,107],"m":"call","oa":27580,"o":"unitPanel"},{"a":27399,"t":"code","b":[201],"m":"ret"},{"a":27400,"l":"waitKey","c":"Wait for any key: port $FE read with every half-row at once, each turn adding one to $5D9C. Then sound effect 0.","t":"code","b":[33,156,93],"m":"ld","o":"hl,$5D9C","x":[27410,45449]},{"a":27403,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":27404,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27405,"t":"code","b":[219,254],"m":"in","o":"a,($FE)"},{"a":27407,"t":"code","b":[246,224],"m":"or","o":"$E0"},{"a":27409,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27410,"t":"code","b":[40,244],"m":"jr","oa":27400,"o":"z,waitKey"},{"a":27412,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27413,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":27416,"t":"code","b":[201],"m":"ret"},{"a":27417,"l":"divRound","c":"C = A divided by B, rounded to the nearest, A the remainder. B must not be 0.","t":"code","b":[14,0],"m":"ld","o":"c,$00","x":[24381,27442,31228,31262,31292,31759,31929,32101,32739,32755,32801,33303,33310,36086,36199,39622,40007,40198]},{"a":27419,"t":"code","b":[184],"m":"cp","o":"b","x":[27424]},{"a":27420,"t":"code","b":[56,4],"m":"jr","oa":27426,"o":"c,$6B22"},{"a":27422,"t":"code","b":[144],"m":"sub","o":"b"},{"a":27423,"t":"code","b":[12],"m":"inc","o":"c"},{"a":27424,"t":"code","b":[24,249],"m":"jr","oa":27419,"o":"$6B1B"},{"a":27426,"t":"code","b":[4],"m":"inc","o":"b","x":[27420]},{"a":27427,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":27429,"t":"code","b":[184],"m":"cp","o":"b"},{"a":27430,"t":"code","b":[216],"m":"ret","o":"c"},{"a":27431,"t":"code","b":[12],"m":"inc","o":"c"},{"a":27432,"t":"code","b":[201],"m":"ret"},{"a":27433,"l":"healthShare","c":"A = ($07) less ($08) of the unit at IX, divided by its ($18), rounded.","t":"code","b":[221,126,7],"m":"ld","o":"a,(ix+$07)","x":[24296,27312]},{"a":27436,"t":"code","b":[221,150,8],"m":"sub","o":"(ix+$08)"},{"a":27439,"t":"code","b":[221,70,24],"m":"ld","o":"b,(ix+$18)"},{"a":27442,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":27445,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":27446,"t":"code","b":[201],"m":"ret"},{"a":27447,"l":"facingText","c":"The way the unit faces: message 11 of the engine's list, then message ($21) + 12 in characters, ($21) being its facing, 0 (up) to 7 clockwise.","t":"code","b":[62,11],"m":"ld","o":"a,$0B","x":[27584]},{"a":27449,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":27452,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":27454,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":27457,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":27460,"t":"code","b":[198,12],"m":"add","o":"a,$0C"},{"a":27462,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":27465,"t":"code","b":[201],"m":"ret"},{"a":27466,"l":"floorAt","c":"$5D23 = the floor of the map's square at the address in $5D3A: terrain as it is; for a unit, the square it stands on (its byte $16); for an object, the floor under it (floorUnder).","t":"code","b":[237,91,58,93],"m":"ld","oa":23866,"o":"de,($5D3A)","x":[31773,32826,33186,39026,39973,41790]},{"a":27470,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":27473,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27474,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27476,"t":"code","b":[56,18],"m":"jr","oa":27496,"o":"c,$6B68"},{"a":27478,"t":"code","b":[221,229],"m":"push","o":"ix"},{"a":27480,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":27483,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":27486,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":27488,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":27490,"t":"code","b":[48,12],"m":"jr","oa":27504,"o":"nc,$6B70"},{"a":27492,"t":"code","b":[50,35,93],"m":"ld","oa":23843,"o":"($5D23),a"},{"a":27495,"t":"code","b":[201],"m":"ret"},{"a":27496,"t":"code","b":[254,110],"m":"cp","o":"$6E","x":[27476]},{"a":27498,"t":"code","b":[48,4],"m":"jr","oa":27504,"o":"nc,$6B70"},{"a":27500,"t":"code","b":[50,35,93],"m":"ld","oa":23843,"o":"($5D23),a"},{"a":27503,"t":"code","b":[201],"m":"ret"},{"a":27504,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)","x":[27490,27498]},{"a":27507,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":27510,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":27513,"t":"code","b":[201],"m":"ret"},{"a":27514,"l":"scenarioMessageAt","c":"Message A + 1 of the scenario's list at the column in H and the row in L, in double height, in the colours as they are.","t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl","x":[24522,24596,24616,40318,42250]},{"a":27517,"t":"code","b":[42,36,183],"m":"ld","oa":46884,"o":"hl,($B724)"},{"a":27520,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":27523,"t":"code","b":[42,34,183],"m":"ld","oa":46882,"o":"hl,($B722)"},{"a":27526,"t":"code","b":[34,31,93],"m":"ld","oa":23839,"o":"($5D1F),hl"},{"a":27529,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":27532,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":27534,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27535,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":27538,"t":"code","b":[201],"m":"ret"},{"a":27539,"l":"panelLine","c":"A line of the panel at HL: message 21 of the engine's list (blanks), then over it the scenario's message A + 1 in yellow on black.","t":"code","b":[229],"m":"push","o":"hl","x":[27626,27671,33954,33962,40628,41154]},{"a":27540,"t":"code","b":[245],"m":"push","o":"af"},{"a":27541,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27542,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":27545,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":27548,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":27550,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":27553,"t":"code","b":[241],"m":"pop","o":"af"},{"a":27554,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":27555,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":27558,"t":"code","b":[33,0,93],"m":"ld","o":"hl,$5D00"},{"a":27561,"t":"code","b":[54,70],"m":"ld","o":"(hl),$46"},{"a":27563,"t":"code","b":[42,36,183],"m":"ld","oa":46884,"o":"hl,($B724)"},{"a":27566,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":27569,"t":"code","b":[42,34,183],"m":"ld","oa":46882,"o":"hl,($B722)"},{"a":27572,"t":"code","b":[34,31,93],"m":"ld","oa":23839,"o":"($5D1F),hl"},{"a":27575,"t":"code","b":[60],"m":"inc","o":"a"},{"a":27576,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":27579,"t":"code","b":[201],"m":"ret"},{"a":27580,"l":"unitPanel","c":"The selected unit's panel: the way it faces; its action points ($06) in double height; the object in its hands ($23, when $17 is not 0); the terrain it stands on ($16, or the floor under the object or unit there) and that terrain's byte $06; and the enemies in sight (seenCount). IX is left on the unit.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[27396,28801,30746,32503,32606]},{"a":27584,"t":"code","b":[205,55,107],"m":"call","oa":27447,"o":"facingText"},{"a":27587,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":27589,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":27592,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":27595,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":27598,"t":"code","b":[33,6,24],"m":"ld","o":"hl,$1806"},{"a":27601,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":27604,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":27607,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":27610,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27611,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":27614,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":27617,"t":"code","b":[183],"m":"or","o":"a"},{"a":27618,"t":"code","b":[40,9],"m":"jr","oa":27629,"o":"z,$6BED"},{"a":27620,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":27623,"t":"code","b":[33,16,24],"m":"ld","o":"hl,$1810"},{"a":27626,"t":"code","b":[205,147,107],"m":"call","oa":27539,"o":"panelLine"},{"a":27629,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)","x":[27618]},{"a":27632,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":27634,"t":"code","b":[56,27],"m":"jr","oa":27663,"o":"c,$6C0F"},{"a":27636,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":27638,"t":"code","b":[56,14],"m":"jr","oa":27654,"o":"c,$6C06"},{"a":27640,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":27643,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":27646,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":27650,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":27652,"t":"code","b":[56,9],"m":"jr","oa":27663,"o":"c,$6C0F"},{"a":27654,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)","x":[27638]},{"a":27657,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":27660,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":27663,"t":"code","b":[245],"m":"push","o":"af","x":[27634,27652]},{"a":27664,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":27667,"t":"code","b":[241],"m":"pop","o":"af"},{"a":27668,"t":"code","b":[33,19,24],"m":"ld","o":"hl,$1813"},{"a":27671,"t":"code","b":[205,147,107],"m":"call","oa":27539,"o":"panelLine"},{"a":27674,"t":"code","b":[33,21,29],"m":"ld","o":"hl,$1D15"},{"a":27677,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":27680,"t":"code","b":[253,126,6],"m":"ld","o":"a,(iy+$06)"},{"a":27683,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":27686,"t":"code","b":[205,255,116],"m":"call","oa":29951,"o":"seenCount"},{"a":27689,"t":"code","b":[201],"m":"ret"},{"a":27690,"l":"selectUnit","c":"Select the unit on the square at the address in $5D2F: $5D26 its number, IX its record, and the list from $5C3C cleared. In a player's turn, a unit holding an object ($17) whose bit 6 of $25 is clear may, at random (a number below $34 drawn, below $20 and at least the unit's $0C), show message $61, set that bit and drop it (dropForced). Then the units it sees (findSeen, showSeen), its numbers, the view centred on it, and its square, action points and facing kept (keepPlace).","t":"code","b":[33,60,92],"m":"ld","o":"hl,$5C3C","x":[27827]},{"a":27693,"t":"code","b":[34,103,93],"m":"ld","oa":23911,"o":"($5D67),hl"},{"a":27696,"t":"code","b":[17,61,92],"m":"ld","o":"de,$5C3D"},{"a":27699,"t":"code","b":[1,18,0],"m":"ld","o":"bc,$0012"},{"a":27702,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":27704,"t":"code","b":[237,176],"m":"ldir"},{"a":27706,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27707,"t":"code","b":[50,254,116],"m":"ld","oa":29950,"o":"(seenBefore),a"},{"a":27710,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":27713,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27714,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":27717,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":27720,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":27723,"t":"code","b":[183],"m":"or","o":"a"},{"a":27724,"t":"code","b":[32,59],"m":"jr","oa":27785,"o":"nz,$6C89"},{"a":27726,"t":"code","b":[205,12,104],"m":"call","oa":26636,"o":"cursorSquare"},{"a":27729,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":27732,"t":"code","b":[183],"m":"or","o":"a"},{"a":27733,"t":"code","b":[40,50],"m":"jr","oa":27785,"o":"z,$6C89"},{"a":27735,"t":"code","b":[221,203,37,118],"m":"bit","o":"6,(ix+$25)"},{"a":27739,"t":"code","b":[32,44],"m":"jr","oa":27785,"o":"nz,$6C89"},{"a":27741,"t":"code","b":[62,52],"m":"ld","o":"a,$34"},{"a":27743,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":27746,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":27749,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":27751,"t":"code","b":[48,32],"m":"jr","oa":27785,"o":"nc,$6C89"},{"a":27753,"t":"code","b":[221,190,12],"m":"cp","o":"(ix+$0C)"},{"a":27756,"t":"code","b":[56,27],"m":"jr","oa":27785,"o":"c,$6C89"},{"a":27758,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":27761,"t":"code","b":[33,0,24],"m":"ld","o":"hl,$1800"},{"a":27764,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":27767,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":27770,"t":"code","b":[62,97],"m":"ld","o":"a,$61"},{"a":27772,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":27775,"t":"code","b":[221,203,37,246],"m":"set","o":"6,(ix+$25)"},{"a":27779,"t":"code","b":[205,5,124],"m":"call","oa":31749,"o":"dropForced"},{"a":27782,"t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause"},{"a":27785,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen","x":[27724,27733,27739,27751,27756]},{"a":27788,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":27791,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":27794,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":27797,"t":"code","b":[17,5,5],"m":"ld","o":"de,$0505"},{"a":27800,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27801,"t":"code","b":[34,105,93],"m":"ld","oa":23913,"o":"($5D69),hl"},{"a":27804,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":27807,"t":"code","b":[34,107,93],"m":"ld","oa":23915,"o":"($5D6B),hl"},{"a":27810,"t":"code","b":[58,93,93],"m":"ld","oa":23901,"o":"a,($5D5D)"},{"a":27813,"t":"code","b":[183],"m":"or","o":"a"},{"a":27814,"t":"code","b":[204,138,119],"m":"call","oa":30602,"o":"z,panView"},{"a":27817,"t":"code","b":[205,13,110],"m":"call","oa":28173,"o":"centreOnUnit"},{"a":27820,"t":"code","b":[205,47,112],"m":"call","oa":28719,"o":"keepPlace"},{"a":27823,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":27826,"t":"code","b":[201],"m":"ret"},{"a":27827,"l":"unitMode","c":"Option 0, the unit selected. It blinks, shown for 255 turns of the controls and then a black square for 130, while the controls move it, turn it or (fire) open its menu; until it is dead, has no action points, or a move cannot be paid for (unitInput gives Z).","t":"code","b":[205,42,108],"m":"call","oa":27690,"o":"selectUnit"},{"a":27830,"t":"code","b":[205,74,100],"m":"call","oa":25674,"o":"eraseCursor","x":[27877]},{"a":27833,"t":"code","b":[6,255],"m":"ld","o":"b,$FF"},{"a":27835,"t":"code","b":[197],"m":"push","o":"bc","x":[27845]},{"a":27836,"t":"code","b":[205,233,108],"m":"call","oa":27881,"o":"unitInput"},{"a":27839,"t":"code","b":[40,38],"m":"jr","oa":27879,"o":"z,$6CE7"},{"a":27841,"t":"code","b":[205,209,102],"m":"call","oa":26321,"o":"repeatDelay"},{"a":27844,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":27845,"t":"code","b":[16,244],"m":"djnz","oa":27835,"o":"$6CBB"},{"a":27847,"t":"code","b":[175],"m":"xor","o":"a"},{"a":27848,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":27851,"t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)"},{"a":27854,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":27855,"t":"code","b":[36],"m":"inc","o":"h"},{"a":27856,"t":"code","b":[44],"m":"inc","o":"l"},{"a":27857,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":27860,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":27863,"t":"code","b":[6,130],"m":"ld","o":"b,$82"},{"a":27865,"t":"code","b":[197],"m":"push","o":"bc","x":[27875]},{"a":27866,"t":"code","b":[205,233,108],"m":"call","oa":27881,"o":"unitInput"},{"a":27869,"t":"code","b":[40,8],"m":"jr","oa":27879,"o":"z,$6CE7"},{"a":27871,"t":"code","b":[205,209,102],"m":"call","oa":26321,"o":"repeatDelay"},{"a":27874,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":27875,"t":"code","b":[16,244],"m":"djnz","oa":27865,"o":"$6CD9"},{"a":27877,"t":"code","b":[24,207],"m":"jr","oa":27830,"o":"$6CB6"},{"a":27879,"t":"code","b":[193],"m":"pop","o":"bc","x":[27839,27869]},{"a":27880,"t":"code","b":[201],"m":"ret"},{"a":27881,"l":"unitInput","c":"One read of the controls for the unit selected: fire opens its menu ($78CD), up is a step forwards, down a step back, right and left a turn. With none held, Z if the unit is dead ($08 is 0).","t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls","x":[27836,27866]},{"a":27884,"t":"code","b":[6,118],"m":"ld","o":"b,$76"},{"a":27886,"t":"code","b":[16,254],"m":"djnz","oa":27886,"o":"$6CEE","x":[27886]},{"a":27888,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":27891,"t":"code","b":[15],"m":"rrca"},{"a":27892,"t":"code","b":[210,205,120],"m":"jp","oa":30925,"o":"nc,unitMenu"},{"a":27895,"t":"code","b":[15],"m":"rrca"},{"a":27896,"t":"code","b":[210,85,110],"m":"jp","oa":28245,"o":"nc,walkForward"},{"a":27899,"t":"code","b":[15],"m":"rrca"},{"a":27900,"t":"code","b":[210,96,110],"m":"jp","oa":28256,"o":"nc,walkBack"},{"a":27903,"t":"code","b":[15],"m":"rrca"},{"a":27904,"t":"code","b":[210,175,109],"m":"jp","oa":28079,"o":"nc,turnRight"},{"a":27907,"t":"code","b":[15],"m":"rrca"},{"a":27908,"t":"code","b":[210,222,109],"m":"jp","oa":28126,"o":"nc,turnLeft"},{"a":27911,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":27915,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":27918,"t":"code","b":[183],"m":"or","o":"a"},{"a":27919,"t":"code","b":[201],"m":"ret"},{"a":27920,"l":"setUnitTile","c":"The unit's tile in the table of squares at $E660 (two bytes a square; a unit's is the second of its pair): picked by its kind (byte $00 rotated right three times, through the table at the address in $B71C), the kind of object in its hands ($23 less $6D, when $17 is not 0) and its facing ($21), through the table at the address in $B71E, eight tiles to a row.","t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)","x":[28104,28151,28789,31426,31909,32122,33727,34684,34703,39763,39866,39896,41817]},{"a":27923,"t":"code","b":[15],"m":"rrca"},{"a":27924,"t":"code","b":[15],"m":"rrca"},{"a":27925,"t":"code","b":[15],"m":"rrca"},{"a":27926,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":27928,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":27929,"t":"code","b":[237,91,28,183],"m":"ld","oa":46876,"o":"de,($B71C)"},{"a":27933,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27934,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":27937,"t":"code","b":[183],"m":"or","o":"a"},{"a":27938,"t":"code","b":[40,5],"m":"jr","oa":27945,"o":"z,$6D29"},{"a":27940,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":27943,"t":"code","b":[214,109],"m":"sub","o":"$6D"},{"a":27945,"t":"code","b":[95],"m":"ld","o":"e,a","x":[27938]},{"a":27946,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":27948,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27949,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27950,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":27951,"t":"code","b":[98],"m":"ld","o":"h,d"},{"a":27952,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":27953,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":27954,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":27955,"t":"code","b":[237,91,30,183],"m":"ld","oa":46878,"o":"de,($B71E)"},{"a":27959,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27960,"t":"code","b":[221,94,33],"m":"ld","o":"e,(ix+$21)"},{"a":27963,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":27965,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27966,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":27967,"t":"code","b":[245],"m":"push","o":"af"},{"a":27968,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":27971,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":27972,"t":"code","b":[98],"m":"ld","o":"h,d"},{"a":27973,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":27974,"t":"code","b":[17,96,230],"m":"ld","o":"de,$E660"},{"a":27977,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":27978,"t":"code","b":[241],"m":"pop","o":"af"},{"a":27979,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":27980,"t":"code","b":[201],"m":"ret"},{"a":27981,"l":"apCost","c":"The action points last asked of payAP.","t":"byte","b":[0],"x":[31364,32067,37320,40212]},{"a":27982,"l":"payAP","c":"Pay B action points from the unit at IX: $5D35 is what would be left, and NC. With too few, message $14 and carry, and $5D37 is set.","t":"code","b":[175],"m":"xor","o":"a","x":[28081,28128,31232,31266,31296,31763,31933,36767,37807,39594,40011,40202]},{"a":27983,"t":"code","b":[50,55,93],"m":"ld","oa":23863,"o":"($5D37),a"},{"a":27986,"t":"code","b":[33,77,109],"m":"ld","o":"hl,$6D4D"},{"a":27989,"t":"code","b":[112],"m":"ld","o":"(hl),b"},{"a":27990,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":27993,"t":"code","b":[144],"m":"sub","o":"b"},{"a":27994,"t":"code","b":[56,4],"m":"jr","oa":28000,"o":"c,$6D60"},{"a":27996,"t":"code","b":[50,53,93],"m":"ld","oa":23861,"o":"($5D35),a"},{"a":27999,"t":"code","b":[201],"m":"ret"},{"a":28000,"t":"code","b":[62,20],"m":"ld","o":"a,$14","x":[27994]},{"a":28002,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":28005,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28007,"t":"code","b":[50,55,93],"m":"ld","oa":23863,"o":"($5D37),a"},{"a":28010,"t":"code","b":[55],"m":"scf"},{"a":28011,"t":"code","b":[201],"m":"ret"},{"a":28012,"l":"errorText","c":"Message A of the engine's list in the readout, with sound effect $0B, then wait for the controls (waitControls).","t":"code","b":[245],"m":"push","o":"af","x":[28002,32140,32155,32513,32631,36427,36829,37447,37532]},{"a":28013,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":28016,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":28019,"t":"code","b":[54,8],"m":"ld","o":"(hl),$08"},{"a":28021,"t":"code","b":[33,0,24],"m":"ld","o":"hl,$1800"},{"a":28024,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":28027,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":28030,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":28033,"t":"code","b":[241],"m":"pop","o":"af"},{"a":28034,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":28037,"t":"code","b":[62,11],"m":"ld","o":"a,$0B"},{"a":28039,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":28042,"t":"code","b":[24,9],"m":"jr","oa":28053,"o":"waitControls"},{"a":28044,"l":"pause","c":"A pause of 600 delays, then the wait for the controls.","t":"code","b":[205,233,98],"m":"call","oa":25321,"o":"delay200","x":[27782,28702,33166,36796,39778,39925,40273]},{"a":28047,"t":"code","b":[205,233,98],"m":"call","oa":25321,"o":"delay200"},{"a":28050,"t":"code","b":[205,233,98],"m":"call","oa":25321,"o":"delay200"},{"a":28053,"l":"waitControls","c":"In a player's turn, wait up to 65 turns of 40 delays, returning as soon as any control is held.","t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)","x":[28042]},{"a":28056,"t":"code","b":[183],"m":"or","o":"a"},{"a":28057,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28058,"t":"code","b":[6,65],"m":"ld","o":"b,$41"},{"a":28060,"t":"code","b":[197],"m":"push","o":"bc","x":[28074]},{"a":28061,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":28064,"t":"code","b":[205,228,98],"m":"call","oa":25316,"o":"delay40"},{"a":28067,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":28070,"t":"code","b":[60],"m":"inc","o":"a"},{"a":28071,"t":"code","b":[32,4],"m":"jr","oa":28077,"o":"nz,$6DAD"},{"a":28073,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":28074,"t":"code","b":[16,240],"m":"djnz","oa":28060,"o":"$6D9C"},{"a":28076,"t":"code","b":[201],"m":"ret"},{"a":28077,"t":"code","b":[193],"m":"pop","o":"bc","x":[28071]},{"a":28078,"t":"code","b":[201],"m":"ret"},{"a":28079,"l":"turnRight","c":"Turn the unit right an eighth, for one action point: its facing and its tile, the units it sees, the view drawn again (unless $5D36 is set), then afterAction. With too few points, its numbers again and Z, which lets it go.","t":"code","b":[6,1],"m":"ld","o":"b,$01","x":[27904]},{"a":28081,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":28084,"t":"code","b":[56,35],"m":"jr","oa":28121,"o":"c,$6DD9"},{"a":28086,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":28089,"t":"code","b":[60],"m":"inc","o":"a"},{"a":28090,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":28092,"t":"code","b":[32,1],"m":"jr","oa":28095,"o":"nz,$6DBF"},{"a":28094,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28095,"t":"code","b":[221,119,33],"m":"ld","o":"(ix+$21),a","x":[28092]},{"a":28098,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":28101,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":28104,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":28107,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":28110,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":28113,"t":"code","b":[183],"m":"or","o":"a"},{"a":28114,"t":"code","b":[204,42,97],"m":"call","oa":24874,"o":"z,drawView"},{"a":28117,"t":"code","b":[205,17,120],"m":"call","oa":30737,"o":"afterAction"},{"a":28120,"t":"code","b":[201],"m":"ret"},{"a":28121,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats","x":[28084]},{"a":28124,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28125,"t":"code","b":[201],"m":"ret"},{"a":28126,"l":"turnLeft","c":"Turn the unit left an eighth, the same way.","t":"code","b":[6,1],"m":"ld","o":"b,$01","x":[27908]},{"a":28128,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":28131,"t":"code","b":[56,35],"m":"jr","oa":28168,"o":"c,$6E08"},{"a":28133,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":28136,"t":"code","b":[214,1],"m":"sub","o":"$01"},{"a":28138,"t":"code","b":[48,2],"m":"jr","oa":28142,"o":"nc,$6DEE"},{"a":28140,"t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":28142,"t":"code","b":[221,119,33],"m":"ld","o":"(ix+$21),a","x":[28138]},{"a":28145,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":28148,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":28151,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":28154,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":28157,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":28160,"t":"code","b":[183],"m":"or","o":"a"},{"a":28161,"t":"code","b":[204,42,97],"m":"call","oa":24874,"o":"z,drawView"},{"a":28164,"t":"code","b":[205,17,120],"m":"call","oa":30737,"o":"afterAction"},{"a":28167,"t":"code","b":[201],"m":"ret"},{"a":28168,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats","x":[28131]},{"a":28171,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28172,"t":"code","b":[201],"m":"ret"},{"a":28173,"l":"centreOnUnit","c":"Centre the view on the unit under the cursor (cursorSquare), within the map.","t":"code","b":[205,12,104],"m":"call","oa":26636,"o":"cursorSquare","x":[27817,28792,30346,30509,32587]},{"a":28176,"l":"centreOn","c":"Centre the view on the square in $5D24.","t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)","x":[28621,30305,38584]},{"a":28179,"l":"centreAt","c":"Centre the view on the square in HL (L the row, H the column): its corner 5 squares up and left of it, from 0 to 69 across and 0 to 39 down, and the cursor on the square; the cursor shown at once. The view is drawn unless $5D36 is set.","t":"code","b":[124],"m":"ld","o":"a,h","x":[30692,30696,39769,39919]},{"a":28180,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":28182,"t":"code","b":[48,2],"m":"jr","oa":28186,"o":"nc,$6E1A"},{"a":28184,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":28186,"t":"code","b":[254,74],"m":"cp","o":"$4A","x":[28182]},{"a":28188,"t":"code","b":[56,2],"m":"jr","oa":28192,"o":"c,$6E20"},{"a":28190,"t":"code","b":[62,74],"m":"ld","o":"a,$4A"},{"a":28192,"t":"code","b":[214,5],"m":"sub","o":"$05","x":[28188]},{"a":28194,"t":"code","b":[50,253,92],"m":"ld","oa":23805,"o":"($5CFD),a"},{"a":28197,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28198,"t":"code","b":[124],"m":"ld","o":"a,h"},{"a":28199,"t":"code","b":[144],"m":"sub","o":"b"},{"a":28200,"t":"code","b":[50,18,93],"m":"ld","oa":23826,"o":"($5D12),a"},{"a":28203,"t":"code","b":[125],"m":"ld","o":"a,l"},{"a":28204,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":28206,"t":"code","b":[48,2],"m":"jr","oa":28210,"o":"nc,$6E32"},{"a":28208,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":28210,"t":"code","b":[254,44],"m":"cp","o":"$2C","x":[28206]},{"a":28212,"t":"code","b":[56,2],"m":"jr","oa":28216,"o":"c,$6E38"},{"a":28214,"t":"code","b":[62,44],"m":"ld","o":"a,$2C"},{"a":28216,"t":"code","b":[214,5],"m":"sub","o":"$05","x":[28212]},{"a":28218,"t":"code","b":[50,252,92],"m":"ld","oa":23804,"o":"($5CFC),a"},{"a":28221,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":28222,"t":"code","b":[125],"m":"ld","o":"a,l"},{"a":28223,"t":"code","b":[144],"m":"sub","o":"b"},{"a":28224,"t":"code","b":[50,17,93],"m":"ld","oa":23825,"o":"($5D11),a"},{"a":28227,"t":"code","b":[33,26,183],"m":"ld","o":"hl,$B71A"},{"a":28230,"t":"code","b":[54,1],"m":"ld","o":"(hl),$01"},{"a":28232,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28233,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":28236,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":28239,"t":"code","b":[183],"m":"or","o":"a"},{"a":28240,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":28241,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":28244,"t":"code","b":[201],"m":"ret"},{"a":28245,"l":"walkForward","c":"A step forwards, the way the unit faces ($5D38 clear).","t":"code","b":[175],"m":"xor","o":"a","x":[27896]},{"a":28246,"t":"code","b":[50,56,93],"m":"ld","oa":23864,"o":"($5D38),a"},{"a":28249,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":28252,"t":"code","b":[205,203,126],"m":"call","oa":32459,"o":"moveDir"},{"a":28255,"t":"code","b":[201],"m":"ret"},{"a":28256,"l":"walkBack","c":"A step back, the way opposite ($5D38 set, which doubles the cost).","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[27900]},{"a":28258,"t":"code","b":[50,56,93],"m":"ld","oa":23864,"o":"($5D38),a"},{"a":28261,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":28264,"t":"code","b":[198,4],"m":"add","o":"a,$04"},{"a":28266,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":28268,"t":"code","b":[56,2],"m":"jr","oa":28272,"o":"c,$6E70"},{"a":28270,"t":"code","b":[214,8],"m":"sub","o":"$08"},{"a":28272,"t":"code","b":[205,203,126],"m":"call","oa":32459,"o":"moveDir","x":[28268]},{"a":28275,"t":"code","b":[201],"m":"ret"},{"a":28276,"l":"stepTarget","c":"The square a step from the one in $5D24 the way A (0 up, then clockwise to 7): $5D3A the row, $5D3B the column, and $5D1E the step's extra cost, all from the table at $6EA7. Z if the square is off the map.","t":"code","b":[95],"m":"ld","o":"e,a","x":[30943,32459]},{"a":28277,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":28279,"t":"code","b":[33,167,110],"m":"ld","o":"hl,$6EA7"},{"a":28282,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28283,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28284,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28285,"t":"code","b":[58,36,93],"m":"ld","oa":23844,"o":"a,($5D24)"},{"a":28288,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":28289,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":28291,"t":"code","b":[40,32],"m":"jr","oa":28325,"o":"z,$6EA5"},{"a":28293,"t":"code","b":[254,50],"m":"cp","o":"$32"},{"a":28295,"t":"code","b":[40,28],"m":"jr","oa":28325,"o":"z,$6EA5"},{"a":28297,"t":"code","b":[50,58,93],"m":"ld","oa":23866,"o":"($5D3A),a"},{"a":28300,"t":"code","b":[58,37,93],"m":"ld","oa":23845,"o":"a,($5D25)"},{"a":28303,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28304,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":28305,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":28307,"t":"code","b":[40,16],"m":"jr","oa":28325,"o":"z,$6EA5"},{"a":28309,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":28311,"t":"code","b":[40,12],"m":"jr","oa":28325,"o":"z,$6EA5"},{"a":28313,"t":"code","b":[50,59,93],"m":"ld","oa":23867,"o":"($5D3B),a"},{"a":28316,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":28317,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28318,"t":"code","b":[50,30,93],"m":"ld","oa":23838,"o":"($5D1E),a"},{"a":28321,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28323,"t":"code","b":[183],"m":"or","o":"a"},{"a":28324,"t":"code","b":[201],"m":"ret"},{"a":28325,"t":"code","b":[175],"m":"xor","o":"a","x":[28291,28295,28307,28311]},{"a":28326,"t":"code","b":[201],"m":"ret"},{"a":28327,"l":"steps","c":"The eight ways: the change in row and column and the extra cost, 2 for a diagonal.","t":"byte","b":[255,0,0,255,1,2,0,1]},{"a":28335,"t":"byte","b":[0,1,1,2,1,0,0,1]},{"a":28343,"t":"byte","b":[255,2,0,255,0,255,255,2]},{"a":28351,"l":"stepCost","c":"What a step onto the square at $5D3A costs, in $5D28, and whether it can be made, in $5D29. 0 or 3: an enemy is there (3 when the unit steps back, or stands on a unit itself); 4: a unit of its own side is there and their bytes $02 add up to 21 or more; 2: too few action points; 5: the step can be made. When the unit's kind cannot cross the terrain at all, $5D29 is the byte under the unit instead. The cost is the terrain's for the unit (its record at $B726, the byte picked by the unit's $04), plus an object's ($03 of its record), plus the step's extra, doubled for a step back. $5D39 keeps what the square holds, $5D27 the floor, $5D3E the square's address, and $5D3C an enemy's record.","t":"code","b":[175],"m":"xor","o":"a","x":[32463]},{"a":28352,"t":"code","b":[50,40,93],"m":"ld","oa":23848,"o":"($5D28),a"},{"a":28355,"t":"code","b":[237,91,58,93],"m":"ld","oa":23866,"o":"de,($5D3A)"},{"a":28359,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":28362,"t":"code","b":[34,62,93],"m":"ld","oa":23870,"o":"($5D3E),hl"},{"a":28365,"t":"code","b":[58,56,93],"m":"ld","oa":23864,"o":"a,($5D38)"},{"a":28368,"t":"code","b":[183],"m":"or","o":"a"},{"a":28369,"t":"code","b":[196,48,120],"m":"call","oa":30768,"o":"nz,revealBehind"},{"a":28372,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":28375,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28376,"t":"code","b":[50,39,93],"m":"ld","oa":23847,"o":"($5D27),a"},{"a":28379,"t":"code","b":[50,57,93],"m":"ld","oa":23865,"o":"($5D39),a"},{"a":28382,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":28384,"t":"code","b":[56,69],"m":"jr","oa":28455,"o":"c,$6F27"},{"a":28386,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":28389,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)"},{"a":28392,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":28394,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":28397,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":28398,"t":"code","b":[33,41,93],"m":"ld","o":"hl,$5D29"},{"a":28401,"t":"code","b":[40,25],"m":"jr","oa":28428,"o":"z,$6F0C"},{"a":28403,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":28405,"t":"code","b":[221,34,60,93],"m":"ld","oa":23868,"o":"($5D3C),ix"},{"a":28409,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":28413,"t":"code","b":[58,56,93],"m":"ld","oa":23864,"o":"a,($5D38)"},{"a":28416,"t":"code","b":[183],"m":"or","o":"a"},{"a":28417,"t":"code","b":[32,6],"m":"jr","oa":28425,"o":"nz,$6F09"},{"a":28419,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":28422,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":28424,"t":"code","b":[216],"m":"ret","o":"c"},{"a":28425,"t":"code","b":[54,3],"m":"ld","o":"(hl),$03","x":[28417,28512]},{"a":28427,"t":"code","b":[201],"m":"ret"},{"a":28428,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)","x":[28401]},{"a":28431,"t":"code","b":[50,39,93],"m":"ld","oa":23847,"o":"($5D27),a"},{"a":28434,"t":"code","b":[221,70,2],"m":"ld","o":"b,(ix+$02)"},{"a":28437,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":28441,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":28444,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":28445,"t":"code","b":[254,21],"m":"cp","o":"$15"},{"a":28447,"t":"code","b":[56,3],"m":"jr","oa":28452,"o":"c,$6F24"},{"a":28449,"t":"code","b":[54,4],"m":"ld","o":"(hl),$04"},{"a":28451,"t":"code","b":[201],"m":"ret"},{"a":28452,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)","x":[28447]},{"a":28455,"t":"code","b":[254,110],"m":"cp","o":"$6E","x":[28384]},{"a":28457,"t":"code","b":[56,21],"m":"jr","oa":28480,"o":"c,$6F40"},{"a":28459,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":28462,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":28465,"t":"code","b":[50,40,93],"m":"ld","oa":23848,"o":"($5D28),a"},{"a":28468,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":28471,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":28474,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":28477,"t":"code","b":[50,39,93],"m":"ld","oa":23847,"o":"($5D27),a"},{"a":28480,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)","x":[28457]},{"a":28483,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":28486,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":28490,"t":"code","b":[221,94,4],"m":"ld","o":"e,(ix+$04)"},{"a":28493,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":28495,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":28497,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":28500,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":28502,"t":"code","b":[32,12],"m":"jr","oa":28516,"o":"nz,$6F64"},{"a":28504,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":28507,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":28509,"t":"code","b":[33,41,93],"m":"ld","o":"hl,$5D29"},{"a":28512,"t":"code","b":[48,167],"m":"jr","oa":28425,"o":"nc,$6F09"},{"a":28514,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28515,"t":"code","b":[201],"m":"ret"},{"a":28516,"t":"code","b":[33,40,93],"m":"ld","o":"hl,$5D28","x":[28502]},{"a":28519,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":28520,"t":"code","b":[33,30,93],"m":"ld","o":"hl,$5D1E"},{"a":28523,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":28524,"t":"code","b":[50,40,93],"m":"ld","oa":23848,"o":"($5D28),a"},{"a":28527,"t":"code","b":[58,56,93],"m":"ld","oa":23864,"o":"a,($5D38)"},{"a":28530,"t":"code","b":[183],"m":"or","o":"a"},{"a":28531,"t":"code","b":[33,40,93],"m":"ld","o":"hl,$5D28"},{"a":28534,"t":"code","b":[40,2],"m":"jr","oa":28538,"o":"z,$6F7A"},{"a":28536,"t":"code","b":[203,38],"m":"sla","o":"(hl)"},{"a":28538,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)","x":[28534]},{"a":28541,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":28542,"t":"code","b":[33,41,93],"m":"ld","o":"hl,$5D29"},{"a":28545,"t":"code","b":[48,3],"m":"jr","oa":28550,"o":"nc,$6F86"},{"a":28547,"t":"code","b":[54,2],"m":"ld","o":"(hl),$02"},{"a":28549,"t":"code","b":[201],"m":"ret"},{"a":28550,"t":"code","b":[54,5],"m":"ld","o":"(hl),$05","x":[28545]},{"a":28552,"t":"code","b":[201],"m":"ret"},{"a":28553,"l":"makeStep","c":"Make the step: the scenario's hook at $B62D; the action points paid ($06) and added to $22; the unit off its old square (its floor put back) and onto the new one; the units it sees, the view, and sound effect 3 in a player's turn. With no points left on a square another unit of its side shares (shared, $9A16) the unit goes back where it was kept (undoMove). Then, in the computer's turn, the hook at $B62A, or the view shown with a pause when $B715 is set. NZ if the unit can go on.","t":"code","b":[205,45,182],"m":"call","oa":46637,"o":"$B62D","x":[32499]},{"a":28556,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":28560,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":28563,"t":"code","b":[33,40,93],"m":"ld","o":"hl,$5D28"},{"a":28566,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":28567,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":28570,"t":"code","b":[221,126,34],"m":"ld","o":"a,(ix+$22)"},{"a":28573,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":28574,"t":"code","b":[221,119,34],"m":"ld","o":"(ix+$22),a"},{"a":28577,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":28580,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":28583,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28584,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)"},{"a":28587,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":28590,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":28593,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":28596,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28597,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":28600,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":28603,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":28606,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":28609,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":28612,"t":"code","b":[205,193,116],"m":"call","oa":29889,"o":"placeUnit"},{"a":28615,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":28618,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":28621,"t":"code","b":[205,16,110],"m":"call","oa":28176,"o":"centreOn"},{"a":28624,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":28627,"t":"code","b":[183],"m":"or","o":"a"},{"a":28628,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":28630,"t":"code","b":[204,190,181],"m":"call","oa":46526,"o":"z,sound"},{"a":28633,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":28636,"t":"code","b":[183],"m":"or","o":"a"},{"a":28637,"t":"code","b":[32,6],"m":"jr","oa":28645,"o":"nz,$6FE5"},{"a":28639,"t":"code","b":[205,22,154],"m":"call","oa":39446,"o":"shared"},{"a":28642,"t":"code","b":[194,66,112],"m":"jp","oa":28738,"o":"nz,undoMove"},{"a":28645,"t":"code","b":[205,22,154],"m":"call","oa":39446,"o":"shared","x":[28637]},{"a":28648,"t":"code","b":[204,47,112],"m":"call","oa":28719,"o":"z,keepPlace"},{"a":28651,"t":"code","b":[58,93,93],"m":"ld","oa":23901,"o":"a,($5D5D)"},{"a":28654,"t":"code","b":[183],"m":"or","o":"a"},{"a":28655,"t":"code","b":[204,93,117],"m":"call","oa":30045,"o":"z,startReaction"},{"a":28658,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":28661,"t":"code","b":[183],"m":"or","o":"a"},{"a":28662,"t":"code","b":[40,41],"m":"jr","oa":28705,"o":"z,canGoOn"},{"a":28664,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":28667,"t":"code","b":[183],"m":"or","o":"a"},{"a":28668,"t":"code","b":[40,5],"m":"jr","oa":28675,"o":"z,$7003"},{"a":28670,"t":"code","b":[205,42,182],"m":"call","oa":46634,"o":"$B62A"},{"a":28673,"t":"code","b":[24,30],"m":"jr","oa":28705,"o":"canGoOn"},{"a":28675,"t":"code","b":[58,21,183],"m":"ld","oa":46869,"o":"a,($B715)","x":[28668]},{"a":28678,"t":"code","b":[183],"m":"or","o":"a"},{"a":28679,"t":"code","b":[40,24],"m":"jr","oa":28705,"o":"z,canGoOn"},{"a":28681,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28682,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":28685,"t":"code","b":[205,71,119],"m":"call","oa":30535,"o":"sideView"},{"a":28688,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28690,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":28693,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":28696,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":28699,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":28702,"t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause"},{"a":28705,"l":"canGoOn","c":"NZ if the unit at IX can go on: alive ($08 not 0) and with action points ($06).","t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)","x":[28662,28673,28679]},{"a":28708,"t":"code","b":[183],"m":"or","o":"a"},{"a":28709,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28710,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":28713,"t":"code","b":[183],"m":"or","o":"a"},{"a":28714,"t":"code","b":[200],"m":"ret","o":"z"},{"a":28715,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28717,"t":"code","b":[183],"m":"or","o":"a"},{"a":28718,"t":"code","b":[201],"m":"ret"},{"a":28719,"l":"keepPlace","c":"Keep the unit's square ($5D40), action points ($5D42) and facing ($5D43), for undoMove.","t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)","x":[27820,28648,28807,30752]},{"a":28722,"t":"code","b":[34,64,93],"m":"ld","oa":23872,"o":"($5D40),hl"},{"a":28725,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":28728,"t":"code","b":[50,66,93],"m":"ld","oa":23874,"o":"($5D42),a"},{"a":28731,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":28734,"t":"code","b":[50,67,93],"m":"ld","oa":23875,"o":"($5D43),a"},{"a":28737,"t":"code","b":[201],"m":"ret"},{"a":28738,"l":"undoMove","c":"Put the unit back where keepPlace kept it: its square, action points and facing, the view and its panel. $5D37 is set; NZ.","t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)","x":[28642,30763,31216]},{"a":28741,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":28744,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28745,"t":"code","b":[237,91,64,93],"m":"ld","oa":23872,"o":"de,($5D40)"},{"a":28749,"t":"code","b":[237,83,252,92],"m":"ld","oa":23804,"o":"($5CFC),de"},{"a":28753,"t":"code","b":[237,83,36,93],"m":"ld","oa":23844,"o":"($5D24),de"},{"a":28757,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":28760,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":28763,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":28764,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":28767,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":28770,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":28771,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":28774,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":28777,"t":"code","b":[58,66,93],"m":"ld","oa":23874,"o":"a,($5D42)"},{"a":28780,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":28783,"t":"code","b":[58,67,93],"m":"ld","oa":23875,"o":"a,($5D43)"},{"a":28786,"t":"code","b":[221,119,33],"m":"ld","o":"(ix+$21),a"},{"a":28789,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":28792,"t":"code","b":[205,13,110],"m":"call","oa":28173,"o":"centreOnUnit"},{"a":28795,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":28798,"t":"code","b":[205,193,116],"m":"call","oa":29889,"o":"placeUnit"},{"a":28801,"t":"code","b":[205,188,107],"m":"call","oa":27580,"o":"unitPanel"},{"a":28804,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":28807,"t":"code","b":[205,47,112],"m":"call","oa":28719,"o":"keepPlace"},{"a":28810,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":28812,"t":"code","b":[50,55,93],"m":"ld","oa":23863,"o":"($5D37),a"},{"a":28815,"t":"code","b":[183],"m":"or","o":"a"},{"a":28816,"t":"code","b":[201],"m":"ret"},{"a":28817,"l":"lineVars","c":"A line across the map, words: the start's column ($7091) and row ($7093), the end's column ($7095) and row ($7097), the current column ($7099) and row ($709B), the run across ($709D) and down ($709F), the steps down ($70A1) and across ($70A3), 1 or -1, taken together on a diagonal step, the straight step along the major way down ($70A5) and across ($70A7), one of them 0, the error ($70A9), the major run ($70AB), the minor run ($70AD), the range of a shot or a throw ($70AF: shotRange, $8FF0, and the throw, $9AF7, set it; inRange, $8A18, compares the distance with it), and the distance so far ($70B1), 2 for each straight step and 3 for each diagonal.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[28877,28897,29210,30629,36034,36949,36969,37230,37931,38570,38690,38915,38932]},{"a":28825,"t":"byte","b":[0,0,0,0,0,0,0,0],"x":[29047,29054,29076,29083,29213,29257,30632,30676,35266,35274,35305,35475,35479,35891,36890,37141,38935,38947,38979,39641,39709]},{"a":28833,"t":"byte","b":[0,0,0,0,0,0,0,0],"x":[28934,28955,29008]},{"a":28841,"t":"byte","b":[0,0,0,0,0,0,0,0],"x":[28851,28859,28870,29028]},{"a":28849,"t":"byte","b":[0,0],"x":[29057,29062,29086,29092,35349,36927,38967,39000]},{"a":28851,"l":"lineError","c":"The line's error moves on by the minor run; NC, and the major run taken off it, when it reaches the major run.","t":"code","b":[42,169,112],"m":"ld","oa":28841,"o":"hl,($70A9)","x":[29032]},{"a":28854,"t":"code","b":[237,91,173,112],"m":"ld","oa":28845,"o":"de,($70AD)"},{"a":28858,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":28859,"t":"code","b":[34,169,112],"m":"ld","oa":28841,"o":"($70A9),hl"},{"a":28862,"t":"code","b":[237,91,171,112],"m":"ld","oa":28843,"o":"de,($70AB)"},{"a":28866,"t":"code","b":[175],"m":"xor","o":"a"},{"a":28867,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":28869,"t":"code","b":[216],"m":"ret","o":"c"},{"a":28870,"t":"code","b":[34,169,112],"m":"ld","oa":28841,"o":"($70A9),hl"},{"a":28873,"t":"code","b":[201],"m":"ret"},{"a":28874,"l":"lineSetup","c":"Set the line up from its two ends: the runs and steps, which way is the major one, and the error at half the major run.","t":"code","b":[42,149,112],"m":"ld","oa":28821,"o":"hl,($7095)","x":[29247,30666,35249,38944]},{"a":28877,"t":"code","b":[237,91,145,112],"m":"ld","oa":28817,"o":"de,(lineVars)"},{"a":28881,"t":"code","b":[183],"m":"or","o":"a"},{"a":28882,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":28884,"t":"code","b":[56,11],"m":"jr","oa":28897,"o":"c,$70E1"},{"a":28886,"t":"code","b":[34,157,112],"m":"ld","oa":28829,"o":"($709D),hl"},{"a":28889,"t":"code","b":[33,1,0],"m":"ld","o":"hl,$0001"},{"a":28892,"t":"code","b":[34,163,112],"m":"ld","oa":28835,"o":"($70A3),hl"},{"a":28895,"t":"code","b":[24,19],"m":"jr","oa":28916,"o":"$70F4"},{"a":28897,"t":"code","b":[42,145,112],"m":"ld","oa":28817,"o":"hl,(lineVars)","x":[28884]},{"a":28900,"t":"code","b":[237,91,149,112],"m":"ld","oa":28821,"o":"de,($7095)"},{"a":28904,"t":"code","b":[183],"m":"or","o":"a"},{"a":28905,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":28907,"t":"code","b":[34,157,112],"m":"ld","oa":28829,"o":"($709D),hl"},{"a":28910,"t":"code","b":[33,255,255],"m":"ld","o":"hl,$FFFF"},{"a":28913,"t":"code","b":[34,163,112],"m":"ld","oa":28835,"o":"($70A3),hl"},{"a":28916,"t":"code","b":[42,151,112],"m":"ld","oa":28823,"o":"hl,($7097)","x":[28895]},{"a":28919,"t":"code","b":[237,91,147,112],"m":"ld","oa":28819,"o":"de,($7093)"},{"a":28923,"t":"code","b":[183],"m":"or","o":"a"},{"a":28924,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":28926,"t":"code","b":[56,11],"m":"jr","oa":28939,"o":"c,$710B"},{"a":28928,"t":"code","b":[34,159,112],"m":"ld","oa":28831,"o":"($709F),hl"},{"a":28931,"t":"code","b":[33,1,0],"m":"ld","o":"hl,$0001"},{"a":28934,"t":"code","b":[34,161,112],"m":"ld","oa":28833,"o":"($70A1),hl"},{"a":28937,"t":"code","b":[24,19],"m":"jr","oa":28958,"o":"$711E"},{"a":28939,"t":"code","b":[42,147,112],"m":"ld","oa":28819,"o":"hl,($7093)","x":[28926]},{"a":28942,"t":"code","b":[237,91,151,112],"m":"ld","oa":28823,"o":"de,($7097)"},{"a":28946,"t":"code","b":[183],"m":"or","o":"a"},{"a":28947,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":28949,"t":"code","b":[34,159,112],"m":"ld","oa":28831,"o":"($709F),hl"},{"a":28952,"t":"code","b":[33,255,255],"m":"ld","o":"hl,$FFFF"},{"a":28955,"t":"code","b":[34,161,112],"m":"ld","oa":28833,"o":"($70A1),hl"},{"a":28958,"t":"code","b":[42,157,112],"m":"ld","oa":28829,"o":"hl,($709D)","x":[28937]},{"a":28961,"t":"code","b":[237,91,159,112],"m":"ld","oa":28831,"o":"de,($709F)"},{"a":28965,"t":"code","b":[183],"m":"or","o":"a"},{"a":28966,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":28968,"t":"code","b":[56,26],"m":"jr","oa":28996,"o":"c,$7144"},{"a":28970,"t":"code","b":[42,159,112],"m":"ld","oa":28831,"o":"hl,($709F)"},{"a":28973,"t":"code","b":[34,173,112],"m":"ld","oa":28845,"o":"($70AD),hl"},{"a":28976,"t":"code","b":[42,157,112],"m":"ld","oa":28829,"o":"hl,($709D)"},{"a":28979,"t":"code","b":[34,171,112],"m":"ld","oa":28843,"o":"($70AB),hl"},{"a":28982,"t":"code","b":[42,163,112],"m":"ld","oa":28835,"o":"hl,($70A3)"},{"a":28985,"t":"code","b":[34,167,112],"m":"ld","oa":28839,"o":"($70A7),hl"},{"a":28988,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":28991,"t":"code","b":[34,165,112],"m":"ld","oa":28837,"o":"($70A5),hl"},{"a":28994,"t":"code","b":[24,24],"m":"jr","oa":29020,"o":"$715C"},{"a":28996,"t":"code","b":[42,157,112],"m":"ld","oa":28829,"o":"hl,($709D)","x":[28968]},{"a":28999,"t":"code","b":[34,173,112],"m":"ld","oa":28845,"o":"($70AD),hl"},{"a":29002,"t":"code","b":[42,159,112],"m":"ld","oa":28831,"o":"hl,($709F)"},{"a":29005,"t":"code","b":[34,171,112],"m":"ld","oa":28843,"o":"($70AB),hl"},{"a":29008,"t":"code","b":[42,161,112],"m":"ld","oa":28833,"o":"hl,($70A1)"},{"a":29011,"t":"code","b":[34,165,112],"m":"ld","oa":28837,"o":"($70A5),hl"},{"a":29014,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":29017,"t":"code","b":[34,167,112],"m":"ld","oa":28839,"o":"($70A7),hl"},{"a":29020,"t":"code","b":[42,171,112],"m":"ld","oa":28843,"o":"hl,($70AB)","x":[28994]},{"a":29023,"t":"code","b":[167],"m":"and","o":"a"},{"a":29024,"t":"code","b":[203,28],"m":"rr","o":"h"},{"a":29026,"t":"code","b":[203,29],"m":"rr","o":"l"},{"a":29028,"t":"code","b":[34,169,112],"m":"ld","oa":28841,"o":"($70A9),hl"},{"a":29031,"t":"code","b":[201],"m":"ret"},{"a":29032,"l":"lineStep","c":"A step along the line: along the major way, or diagonally when the error runs over; the distance grows by 2 or 3.","t":"code","b":[205,179,112],"m":"call","oa":28851,"o":"lineError","x":[29250,30669,35338,38970]},{"a":29035,"t":"code","b":[48,29],"m":"jr","oa":29066,"o":"nc,$718A"},{"a":29037,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":29040,"t":"code","b":[33,165,112],"m":"ld","o":"hl,$70A5"},{"a":29043,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":29044,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":29047,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":29050,"t":"code","b":[33,167,112],"m":"ld","o":"hl,$70A7"},{"a":29053,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":29054,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":29057,"t":"code","b":[42,177,112],"m":"ld","oa":28849,"o":"hl,($70B1)"},{"a":29060,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29061,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29062,"t":"code","b":[34,177,112],"m":"ld","oa":28849,"o":"($70B1),hl"},{"a":29065,"t":"code","b":[201],"m":"ret"},{"a":29066,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)","x":[29035]},{"a":29069,"t":"code","b":[33,161,112],"m":"ld","o":"hl,$70A1"},{"a":29072,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":29073,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":29076,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":29079,"t":"code","b":[33,163,112],"m":"ld","o":"hl,$70A3"},{"a":29082,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":29083,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":29086,"t":"code","b":[42,177,112],"m":"ld","oa":28849,"o":"hl,($70B1)"},{"a":29089,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29090,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29091,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29092,"t":"code","b":[34,177,112],"m":"ld","oa":28849,"o":"($70B1),hl"},{"a":29095,"t":"code","b":[201],"m":"ret"},{"a":29096,"l":"hideSide","c":"Take the units of side A off the map, their floors put back, from the table at $5C50: four bytes a unit, its side (3 for none), its row, its column, and the floor under it.","t":"code","b":[6,20],"m":"ld","o":"b,$14","x":[24160,30500,30548,30703,30707,38558]},{"a":29098,"t":"code","b":[50,68,93],"m":"ld","oa":23876,"o":"($5D44),a"},{"a":29101,"t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50"},{"a":29104,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29107,"t":"code","b":[197],"m":"push","o":"bc","x":[29140]},{"a":29108,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)"},{"a":29111,"t":"code","b":[58,68,93],"m":"ld","oa":23876,"o":"a,($5D44)"},{"a":29114,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29115,"t":"code","b":[32,12],"m":"jr","oa":29129,"o":"nz,$71C9"},{"a":29117,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29118,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":29119,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29120,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":29121,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29122,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29123,"t":"code","b":[245],"m":"push","o":"af"},{"a":29124,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":29127,"t":"code","b":[241],"m":"pop","o":"af"},{"a":29128,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29129,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)","x":[29115]},{"a":29132,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":29135,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29136,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29139,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":29140,"t":"code","b":[16,221],"m":"djnz","oa":29107,"o":"$71B3"},{"a":29142,"t":"code","b":[201],"m":"ret"},{"a":29143,"l":"showAllUnits","c":"Put every unit in the table at $5C50 on the map.","t":"code","b":[6,20],"m":"ld","o":"b,$14","x":[24183,30539,45601]},{"a":29145,"t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50"},{"a":29148,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29151,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)","x":[29182]},{"a":29154,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29155,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":29157,"t":"code","b":[40,13],"m":"jr","oa":29172,"o":"z,$71F4"},{"a":29159,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29160,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":29161,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29162,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":29163,"t":"code","b":[197],"m":"push","o":"bc"},{"a":29164,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":29167,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":29168,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":29170,"t":"code","b":[144],"m":"sub","o":"b"},{"a":29171,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29172,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)","x":[29157]},{"a":29175,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":29178,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29179,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29182,"t":"code","b":[16,223],"m":"djnz","oa":29151,"o":"$71DF"},{"a":29184,"t":"code","b":[201],"m":"ret"},{"a":29185,"l":"lineClear4","c":"Whether the line from ($5D47) to ($5D49) is clear for flag 4 of the squares (lineClear).","t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":29187,"t":"code","b":[24,6],"m":"jr","oa":29195,"o":"$720B"},{"a":29189,"l":"lineClear2","c":"The same for flag 2.","t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":29191,"t":"code","b":[24,2],"m":"jr","oa":29195,"o":"$720B"},{"a":29193,"l":"lineClear","c":"Whether the line from the square at $5D47 (row, column) to the one at $5D49 is clear for flag 1, sight: every square on it but the last has its flags (the byte at $D2FF plus what the square holds) tested against the mask in $5D4B. Z when the line reaches its end; NZ where it is blocked, with that square in DE.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[29421,29438]},{"a":29195,"t":"code","b":[50,75,93],"m":"ld","oa":23883,"o":"($5D4B),a","x":[29187,29191]},{"a":29198,"t":"code","b":[58,71,93],"m":"ld","oa":23879,"o":"a,($5D47)"},{"a":29201,"t":"code","b":[50,147,112],"m":"ld","oa":28819,"o":"($7093),a"},{"a":29204,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":29207,"t":"code","b":[58,72,93],"m":"ld","oa":23880,"o":"a,($5D48)"},{"a":29210,"t":"code","b":[50,145,112],"m":"ld","oa":28817,"o":"(lineVars),a"},{"a":29213,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":29216,"t":"code","b":[58,73,93],"m":"ld","oa":23881,"o":"a,($5D49)"},{"a":29219,"t":"code","b":[50,151,112],"m":"ld","oa":28823,"o":"($7097),a"},{"a":29222,"t":"code","b":[58,74,93],"m":"ld","oa":23882,"o":"a,($5D4A)"},{"a":29225,"t":"code","b":[50,149,112],"m":"ld","oa":28821,"o":"($7095),a"},{"a":29228,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29229,"t":"code","b":[50,148,112],"m":"ld","oa":28820,"o":"($7094),a"},{"a":29232,"t":"code","b":[50,156,112],"m":"ld","oa":28828,"o":"($709C),a"},{"a":29235,"t":"code","b":[50,146,112],"m":"ld","oa":28818,"o":"($7092),a"},{"a":29238,"t":"code","b":[50,154,112],"m":"ld","oa":28826,"o":"($709A),a"},{"a":29241,"t":"code","b":[50,152,112],"m":"ld","oa":28824,"o":"($7098),a"},{"a":29244,"t":"code","b":[50,150,112],"m":"ld","oa":28822,"o":"($7096),a"},{"a":29247,"t":"code","b":[205,202,112],"m":"call","oa":28874,"o":"lineSetup"},{"a":29250,"t":"code","b":[205,104,113],"m":"call","oa":29032,"o":"lineStep","x":[29288]},{"a":29253,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":29256,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":29257,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":29260,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":29261,"t":"code","b":[58,73,93],"m":"ld","oa":23881,"o":"a,($5D49)"},{"a":29264,"t":"code","b":[187],"m":"cp","o":"e"},{"a":29265,"t":"code","b":[32,5],"m":"jr","oa":29272,"o":"nz,$7258"},{"a":29267,"t":"code","b":[58,74,93],"m":"ld","oa":23882,"o":"a,($5D4A)"},{"a":29270,"t":"code","b":[186],"m":"cp","o":"d"},{"a":29271,"t":"code","b":[200],"m":"ret","o":"z"},{"a":29272,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare","x":[29265]},{"a":29275,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":29276,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":29278,"t":"code","b":[33,255,210],"m":"ld","o":"hl,$D2FF"},{"a":29281,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29282,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29283,"t":"code","b":[33,75,93],"m":"ld","o":"hl,$5D4B"},{"a":29286,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":29287,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":29288,"t":"code","b":[24,216],"m":"jr","oa":29250,"o":"$7242"},{"a":29290,"l":"findSeen","c":"List the enemies the unit at ($5D24) can see (seenFrom): the side not in $B712.","t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712","x":[27785,28615,28696,30270,30364,30512,30579,31167,32600,33145,37203]},{"a":29293,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":29295,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":29296,"t":"code","b":[60],"m":"inc","o":"a"},{"a":29297,"t":"code","b":[50,77,93],"m":"ld","oa":23885,"o":"($5D4D),a"},{"a":29300,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":29302,"t":"code","b":[50,76,93],"m":"ld","oa":23884,"o":"($5D4C),a"},{"a":29305,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":29308,"t":"code","b":[34,81,93],"m":"ld","oa":23889,"o":"($5D51),hl"},{"a":29311,"t":"code","b":[205,152,114],"m":"call","oa":29336,"o":"seenFrom"},{"a":29314,"t":"code","b":[201],"m":"ret"},{"a":29315,"l":"findSeenAll","c":"List every unit but itself ($5D26) that the unit at ($5D24) can see.","t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[30288]},{"a":29317,"t":"code","b":[50,77,93],"m":"ld","oa":23885,"o":"($5D4D),a"},{"a":29320,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":29323,"t":"code","b":[50,76,93],"m":"ld","oa":23884,"o":"($5D4C),a"},{"a":29326,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":29329,"t":"code","b":[34,81,93],"m":"ld","oa":23889,"o":"($5D51),hl"},{"a":29332,"t":"code","b":[205,152,114],"m":"call","oa":29336,"o":"seenFrom"},{"a":29335,"t":"code","b":[201],"m":"ret"},{"a":29336,"l":"seenFrom","c":"List from $5B97, three bytes each (row, column, number) and $FF at the end, the units of the sides in $5D4D (bit 0 side 0, bit 1 side 1), all but unit ($5D4C), to which the line from the square at $5D51 is clear both ways.","t":"code","b":[33,151,91],"m":"ld","o":"hl,$5B97","x":[29311,29332]},{"a":29339,"t":"code","b":[34,79,93],"m":"ld","oa":23887,"o":"($5D4F),hl"},{"a":29342,"t":"code","b":[17,152,91],"m":"ld","o":"de,$5B98"},{"a":29345,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":29347,"t":"code","b":[1,57,0],"m":"ld","o":"bc,$0039"},{"a":29350,"t":"code","b":[237,176],"m":"ldir"},{"a":29352,"t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50"},{"a":29355,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29358,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":29360,"t":"code","b":[197],"m":"push","o":"bc","x":[29475]},{"a":29361,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":29363,"t":"code","b":[144],"m":"sub","o":"b"},{"a":29364,"t":"code","b":[50,78,93],"m":"ld","oa":23886,"o":"($5D4E),a"},{"a":29367,"t":"code","b":[33,76,93],"m":"ld","o":"hl,$5D4C"},{"a":29370,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29371,"t":"code","b":[40,91],"m":"jr","oa":29464,"o":"z,$7318"},{"a":29373,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)"},{"a":29376,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29377,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":29379,"t":"code","b":[40,83],"m":"jr","oa":29464,"o":"z,$7318"},{"a":29381,"t":"code","b":[58,77,93],"m":"ld","oa":23885,"o":"a,($5D4D)"},{"a":29384,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":29385,"t":"code","b":[12],"m":"inc","o":"c"},{"a":29386,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":29388,"t":"code","b":[185],"m":"cp","o":"c"},{"a":29389,"t":"code","b":[40,8],"m":"jr","oa":29399,"o":"z,$72D7"},{"a":29391,"t":"code","b":[58,77,93],"m":"ld","oa":23885,"o":"a,($5D4D)"},{"a":29394,"t":"code","b":[230,2],"m":"and","o":"$02"},{"a":29396,"t":"code","b":[185],"m":"cp","o":"c"},{"a":29397,"t":"code","b":[32,65],"m":"jr","oa":29464,"o":"nz,$7318"},{"a":29399,"t":"code","b":[35],"m":"inc","o":"hl","x":[29389]},{"a":29400,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29401,"t":"code","b":[50,83,93],"m":"ld","oa":23891,"o":"($5D53),a"},{"a":29404,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29405,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29406,"t":"code","b":[50,84,93],"m":"ld","oa":23892,"o":"($5D54),a"},{"a":29409,"t":"code","b":[42,81,93],"m":"ld","oa":23889,"o":"hl,($5D51)"},{"a":29412,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":29415,"t":"code","b":[42,83,93],"m":"ld","oa":23891,"o":"hl,($5D53)"},{"a":29418,"t":"code","b":[34,73,93],"m":"ld","oa":23881,"o":"($5D49),hl"},{"a":29421,"t":"code","b":[205,9,114],"m":"call","oa":29193,"o":"lineClear"},{"a":29424,"t":"code","b":[32,38],"m":"jr","oa":29464,"o":"nz,$7318"},{"a":29426,"t":"code","b":[42,81,93],"m":"ld","oa":23889,"o":"hl,($5D51)"},{"a":29429,"t":"code","b":[34,73,93],"m":"ld","oa":23881,"o":"($5D49),hl"},{"a":29432,"t":"code","b":[42,83,93],"m":"ld","oa":23891,"o":"hl,($5D53)"},{"a":29435,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":29438,"t":"code","b":[205,9,114],"m":"call","oa":29193,"o":"lineClear"},{"a":29441,"t":"code","b":[32,21],"m":"jr","oa":29464,"o":"nz,$7318"},{"a":29443,"t":"code","b":[42,79,93],"m":"ld","oa":23887,"o":"hl,($5D4F)"},{"a":29446,"t":"code","b":[58,71,93],"m":"ld","oa":23879,"o":"a,($5D47)"},{"a":29449,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29450,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29451,"t":"code","b":[58,72,93],"m":"ld","oa":23880,"o":"a,($5D48)"},{"a":29454,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29455,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29456,"t":"code","b":[58,78,93],"m":"ld","oa":23886,"o":"a,($5D4E)"},{"a":29459,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29460,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29461,"t":"code","b":[34,79,93],"m":"ld","oa":23887,"o":"($5D4F),hl"},{"a":29464,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)","x":[29371,29379,29397,29424,29441]},{"a":29467,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":29470,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29471,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29474,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":29475,"t":"code","b":[16,139],"m":"djnz","oa":29360,"o":"$72B0"},{"a":29477,"t":"code","b":[201],"m":"ret"},{"a":29478,"l":"inView","c":"Where the square at $5D49 lies from the one at $5D47 for the unit at IX by its facing ($21): A = 0 in front, 1 to the right, 2 behind, 3 to the left; Z in front. $5D55 and $5D56 are the distances down and across; each facing has its routine, through the table at $7351, and facings 4 to 7 turn the answer of 0 to 3 about.","t":"code","b":[58,71,93],"m":"ld","oa":23879,"o":"a,($5D47)","x":[29770,30168,33219,36416,37521,39806]},{"a":29481,"t":"code","b":[33,73,93],"m":"ld","o":"hl,$5D49"},{"a":29484,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":29485,"t":"code","b":[48,2],"m":"jr","oa":29489,"o":"nc,$7331"},{"a":29487,"t":"code","b":[237,68],"m":"neg"},{"a":29489,"t":"code","b":[50,85,93],"m":"ld","oa":23893,"o":"($5D55),a","x":[29485]},{"a":29492,"t":"code","b":[58,72,93],"m":"ld","oa":23880,"o":"a,($5D48)"},{"a":29495,"t":"code","b":[33,74,93],"m":"ld","o":"hl,$5D4A"},{"a":29498,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":29499,"t":"code","b":[48,2],"m":"jr","oa":29503,"o":"nc,$733F"},{"a":29501,"t":"code","b":[237,68],"m":"neg"},{"a":29503,"t":"code","b":[50,86,93],"m":"ld","oa":23894,"o":"($5D56),a","x":[29499]},{"a":29506,"t":"code","b":[221,94,33],"m":"ld","o":"e,(ix+$21)"},{"a":29509,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":29511,"t":"code","b":[33,81,115],"m":"ld","o":"hl,$7351"},{"a":29514,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29515,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29516,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":29517,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29518,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":29519,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":29520,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":29521,"l":"facingJumps","c":"The routines for facings 0 to 7.","t":"word","b":[120,115,196,115,158,115,243,115],"d":[29560,29636,29598,29683]},{"a":29529,"t":"word","b":[97,115,102,115,107,115,112,115],"d":[29537,29542,29547,29552]},{"a":29537,"l":"facing4","c":"Facing down: facing up's answer, turned about.","t":"code","b":[205,120,115],"m":"call","oa":29560,"o":"facing0"},{"a":29540,"t":"code","b":[24,13],"m":"jr","oa":29555,"o":"turnAbout"},{"a":29542,"l":"facing5","c":"Facing down and left: up and right's, turned about.","t":"code","b":[205,196,115],"m":"call","oa":29636,"o":"facing1"},{"a":29545,"t":"code","b":[24,8],"m":"jr","oa":29555,"o":"turnAbout"},{"a":29547,"l":"facing6","c":"Facing left: right's, turned about.","t":"code","b":[205,158,115],"m":"call","oa":29598,"o":"facing2"},{"a":29550,"t":"code","b":[24,3],"m":"jr","oa":29555,"o":"turnAbout"},{"a":29552,"l":"facing7","c":"Facing up and left: down and right's, turned about.","t":"code","b":[205,243,115],"m":"call","oa":29683,"o":"facing3"},{"a":29555,"l":"turnAbout","c":"Front for behind and right for left: A XOR 2.","t":"code","b":[238,3],"m":"xor","o":"$03","x":[29540,29545,29550]},{"a":29557,"t":"code","b":[238,1],"m":"xor","o":"$01"},{"a":29559,"t":"code","b":[201],"m":"ret"},{"a":29560,"l":"facing0","c":"Facing up: in front if the square is above and no further across than down, behind if below; otherwise to the left or the right.","t":"code","b":[58,85,93],"m":"ld","oa":23893,"o":"a,($5D55)","x":[29537]},{"a":29563,"t":"code","b":[33,86,93],"m":"ld","o":"hl,$5D56"},{"a":29566,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29567,"t":"code","b":[56,14],"m":"jr","oa":29583,"o":"c,$738F"},{"a":29569,"t":"code","b":[58,73,93],"m":"ld","oa":23881,"o":"a,($5D49)"},{"a":29572,"t":"code","b":[33,71,93],"m":"ld","o":"hl,$5D47"},{"a":29575,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29576,"t":"code","b":[56,3],"m":"jr","oa":29581,"o":"c,$738D"},{"a":29578,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":29580,"t":"code","b":[201],"m":"ret"},{"a":29581,"t":"code","b":[175],"m":"xor","o":"a","x":[29576]},{"a":29582,"t":"code","b":[201],"m":"ret"},{"a":29583,"t":"code","b":[58,74,93],"m":"ld","oa":23882,"o":"a,($5D4A)","x":[29567]},{"a":29586,"t":"code","b":[33,72,93],"m":"ld","o":"hl,$5D48"},{"a":29589,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29590,"t":"code","b":[56,3],"m":"jr","oa":29595,"o":"c,$739B"},{"a":29592,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":29594,"t":"code","b":[201],"m":"ret"},{"a":29595,"t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[29590]},{"a":29597,"t":"code","b":[201],"m":"ret"},{"a":29598,"l":"facing2","c":"Facing right: in front if the square is to the right and no further down than across.","t":"code","b":[58,86,93],"m":"ld","oa":23894,"o":"a,($5D56)","x":[29547]},{"a":29601,"t":"code","b":[33,85,93],"m":"ld","o":"hl,$5D55"},{"a":29604,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29605,"t":"code","b":[56,14],"m":"jr","oa":29621,"o":"c,$73B5"},{"a":29607,"t":"code","b":[58,74,93],"m":"ld","oa":23882,"o":"a,($5D4A)"},{"a":29610,"t":"code","b":[33,72,93],"m":"ld","o":"hl,$5D48"},{"a":29613,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29614,"t":"code","b":[56,2],"m":"jr","oa":29618,"o":"c,$73B2"},{"a":29616,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29617,"t":"code","b":[201],"m":"ret"},{"a":29618,"t":"code","b":[62,2],"m":"ld","o":"a,$02","x":[29614]},{"a":29620,"t":"code","b":[201],"m":"ret"},{"a":29621,"t":"code","b":[58,73,93],"m":"ld","oa":23881,"o":"a,($5D49)","x":[29605]},{"a":29624,"t":"code","b":[33,71,93],"m":"ld","o":"hl,$5D47"},{"a":29627,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29628,"t":"code","b":[56,3],"m":"jr","oa":29633,"o":"c,$73C1"},{"a":29630,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":29632,"t":"code","b":[201],"m":"ret"},{"a":29633,"t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[29628]},{"a":29635,"t":"code","b":[201],"m":"ret"},{"a":29636,"l":"facing1","c":"Facing up and right: in front if the square is no lower and no further left.","t":"code","b":[58,71,93],"m":"ld","oa":23879,"o":"a,($5D47)","x":[29542]},{"a":29639,"t":"code","b":[33,73,93],"m":"ld","o":"hl,$5D49"},{"a":29642,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29643,"t":"code","b":[56,11],"m":"jr","oa":29656,"o":"c,$73D8"},{"a":29645,"t":"code","b":[58,74,93],"m":"ld","oa":23882,"o":"a,($5D4A)"},{"a":29648,"t":"code","b":[33,72,93],"m":"ld","o":"hl,$5D48"},{"a":29651,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29652,"t":"code","b":[56,2],"m":"jr","oa":29656,"o":"c,$73D8"},{"a":29654,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29655,"t":"code","b":[201],"m":"ret"},{"a":29656,"t":"code","b":[58,73,93],"m":"ld","oa":23881,"o":"a,($5D49)","x":[29643,29652]},{"a":29659,"t":"code","b":[33,71,93],"m":"ld","o":"hl,$5D47"},{"a":29662,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29663,"t":"code","b":[56,12],"m":"jr","oa":29677,"o":"c,$73ED"},{"a":29665,"t":"code","b":[58,72,93],"m":"ld","oa":23880,"o":"a,($5D48)"},{"a":29668,"t":"code","b":[33,74,93],"m":"ld","o":"hl,$5D4A"},{"a":29671,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29672,"t":"code","b":[56,6],"m":"jr","oa":29680,"o":"c,$73F0"},{"a":29674,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":29676,"t":"code","b":[201],"m":"ret"},{"a":29677,"t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[29663]},{"a":29679,"t":"code","b":[201],"m":"ret"},{"a":29680,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[29672]},{"a":29682,"t":"code","b":[201],"m":"ret"},{"a":29683,"l":"facing3","c":"Facing down and right: in front if the square is no higher and no further left.","t":"code","b":[58,73,93],"m":"ld","oa":23881,"o":"a,($5D49)","x":[29552]},{"a":29686,"t":"code","b":[33,71,93],"m":"ld","o":"hl,$5D47"},{"a":29689,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29690,"t":"code","b":[56,11],"m":"jr","oa":29703,"o":"c,$7407"},{"a":29692,"t":"code","b":[58,74,93],"m":"ld","oa":23882,"o":"a,($5D4A)"},{"a":29695,"t":"code","b":[33,72,93],"m":"ld","o":"hl,$5D48"},{"a":29698,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29699,"t":"code","b":[56,2],"m":"jr","oa":29703,"o":"c,$7407"},{"a":29701,"t":"code","b":[175],"m":"xor","o":"a"},{"a":29702,"t":"code","b":[201],"m":"ret"},{"a":29703,"t":"code","b":[58,71,93],"m":"ld","oa":23879,"o":"a,($5D47)","x":[29690,29699]},{"a":29706,"t":"code","b":[33,73,93],"m":"ld","o":"hl,$5D49"},{"a":29709,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29710,"t":"code","b":[56,12],"m":"jr","oa":29724,"o":"c,$741C"},{"a":29712,"t":"code","b":[58,72,93],"m":"ld","oa":23880,"o":"a,($5D48)"},{"a":29715,"t":"code","b":[33,74,93],"m":"ld","o":"hl,$5D4A"},{"a":29718,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29719,"t":"code","b":[56,6],"m":"jr","oa":29727,"o":"c,$741F"},{"a":29721,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":29723,"t":"code","b":[201],"m":"ret"},{"a":29724,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[29710]},{"a":29726,"t":"code","b":[201],"m":"ret"},{"a":29727,"t":"code","b":[62,3],"m":"ld","o":"a,$03","x":[29719]},{"a":29729,"t":"code","b":[201],"m":"ret"},{"a":29730,"l":"showSeen","c":"Of the enemies listed from $5B97, those in front of the unit at IX (inView) are put on the map and listed from $5CA0, and counted in $5D59. In the computer's turn each is marked in the table at $B63A by its number, with ($5DF8).","t":"code","b":[175],"m":"xor","o":"a","x":[27788,28107,28154,28618,28699,30273,30291,30367,30582,31170,32603,37206]},{"a":29731,"t":"code","b":[50,89,93],"m":"ld","oa":23897,"o":"($5D59),a"},{"a":29734,"t":"code","b":[33,160,92],"m":"ld","o":"hl,$5CA0"},{"a":29737,"t":"code","b":[34,87,93],"m":"ld","oa":23895,"o":"($5D57),hl"},{"a":29740,"t":"code","b":[33,151,91],"m":"ld","o":"hl,$5B97"},{"a":29743,"t":"code","b":[34,79,93],"m":"ld","oa":23887,"o":"($5D4F),hl"},{"a":29746,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":29749,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":29752,"t":"code","b":[42,79,93],"m":"ld","oa":23887,"o":"hl,($5D4F)","x":[29830]},{"a":29755,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":29757,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":29758,"t":"code","b":[200],"m":"ret","o":"z"},{"a":29759,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":29760,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29761,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":29762,"t":"code","b":[237,83,73,93],"m":"ld","oa":23881,"o":"($5D49),de"},{"a":29766,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29767,"t":"code","b":[34,79,93],"m":"ld","oa":23887,"o":"($5D4F),hl"},{"a":29770,"t":"code","b":[205,38,115],"m":"call","oa":29478,"o":"inView"},{"a":29773,"t":"code","b":[183],"m":"or","o":"a"},{"a":29774,"t":"code","b":[32,47],"m":"jr","oa":29823,"o":"nz,$747F"},{"a":29776,"t":"code","b":[42,79,93],"m":"ld","oa":23887,"o":"hl,($5D4F)"},{"a":29779,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29780,"t":"code","b":[245],"m":"push","o":"af"},{"a":29781,"t":"code","b":[237,91,73,93],"m":"ld","oa":23881,"o":"de,($5D49)"},{"a":29785,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":29788,"t":"code","b":[241],"m":"pop","o":"af"},{"a":29789,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29790,"t":"code","b":[42,87,93],"m":"ld","oa":23895,"o":"hl,($5D57)"},{"a":29793,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29794,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":29795,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29796,"t":"code","b":[34,87,93],"m":"ld","oa":23895,"o":"($5D57),hl"},{"a":29799,"t":"code","b":[33,89,93],"m":"ld","o":"hl,$5D59"},{"a":29802,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":29803,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":29806,"t":"code","b":[183],"m":"or","o":"a"},{"a":29807,"t":"code","b":[40,14],"m":"jr","oa":29823,"o":"z,$747F"},{"a":29809,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":29810,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":29812,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":29813,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":29815,"t":"code","b":[33,58,182],"m":"ld","o":"hl,$B63A"},{"a":29818,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29819,"t":"code","b":[58,248,93],"m":"ld","oa":24056,"o":"a,($5DF8)"},{"a":29822,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29823,"t":"code","b":[42,79,93],"m":"ld","oa":23887,"o":"hl,($5D4F)","x":[29774,29807]},{"a":29826,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29827,"t":"code","b":[34,79,93],"m":"ld","oa":23887,"o":"($5D4F),hl"},{"a":29830,"t":"code","b":[24,176],"m":"jr","oa":29752,"o":"$7438"},{"a":29832,"l":"tableUnits","c":"Make the table at $5C50 again from the map: every unit found on it, with its square and the floor it covers.","t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50","x":[24156,24207,45553]},{"a":29835,"t":"code","b":[17,81,92],"m":"ld","o":"de,$5C51"},{"a":29838,"t":"code","b":[1,79,0],"m":"ld","o":"bc,$004F"},{"a":29841,"t":"code","b":[54,3],"m":"ld","o":"(hl),$03"},{"a":29843,"t":"code","b":[237,176],"m":"ldir"},{"a":29845,"t":"code","b":[33,191,214],"m":"ld","o":"hl,$D6BF"},{"a":29848,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29851,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)","x":[29886]},{"a":29854,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":29855,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":29857,"t":"code","b":[56,14],"m":"jr","oa":29873,"o":"c,$74B1"},{"a":29859,"t":"code","b":[245],"m":"push","o":"af"},{"a":29860,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":29863,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)"},{"a":29866,"t":"code","b":[205,226,116],"m":"call","oa":29922,"o":"posOf"},{"a":29869,"t":"code","b":[241],"m":"pop","o":"af"},{"a":29870,"t":"code","b":[205,193,116],"m":"call","oa":29889,"o":"placeUnit"},{"a":29873,"t":"code","b":[42,69,93],"m":"ld","oa":23877,"o":"hl,($5D45)","x":[29857]},{"a":29876,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29877,"t":"code","b":[34,69,93],"m":"ld","oa":23877,"o":"($5D45),hl"},{"a":29880,"t":"code","b":[17,95,230],"m":"ld","o":"de,$E65F"},{"a":29883,"t":"code","b":[183],"m":"or","o":"a"},{"a":29884,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":29886,"t":"code","b":[32,219],"m":"jr","oa":29851,"o":"nz,$749B"},{"a":29888,"t":"code","b":[201],"m":"ret"},{"a":29889,"l":"placeUnit","c":"Unit A's entry in the table at $5C50: its side (bit 0 of its $25), its square ($5D24) and the floor under it ($16).","t":"code","b":[214,140],"m":"sub","o":"$8C","x":[28612,28798,29870,41823]},{"a":29891,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":29892,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":29894,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":29895,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":29896,"t":"code","b":[17,80,92],"m":"ld","o":"de,$5C50"},{"a":29899,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":29900,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)"},{"a":29903,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":29905,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29906,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29907,"t":"code","b":[58,36,93],"m":"ld","oa":23844,"o":"a,($5D24)"},{"a":29910,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29911,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29912,"t":"code","b":[58,37,93],"m":"ld","oa":23845,"o":"a,($5D25)"},{"a":29915,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29916,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":29917,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":29920,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":29921,"t":"code","b":[201],"m":"ret"},{"a":29922,"l":"posOf","c":"$5D24 = the row and $5D25 the column of the map's square at HL.","t":"code","b":[175],"m":"xor","o":"a","x":[29866]},{"a":29923,"t":"code","b":[17,191,214],"m":"ld","o":"de,$D6BF"},{"a":29926,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":29928,"t":"code","b":[17,80,0],"m":"ld","o":"de,$0050"},{"a":29931,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":29933,"t":"code","b":[237,82],"m":"sbc","o":"hl,de","x":[29938]},{"a":29935,"t":"code","b":[56,3],"m":"jr","oa":29940,"o":"c,$74F4"},{"a":29937,"t":"code","b":[4],"m":"inc","o":"b"},{"a":29938,"t":"code","b":[24,249],"m":"jr","oa":29933,"o":"$74ED"},{"a":29940,"t":"code","b":[25],"m":"add","o":"hl,de","x":[29935]},{"a":29941,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":29942,"t":"code","b":[50,36,93],"m":"ld","oa":23844,"o":"($5D24),a"},{"a":29945,"t":"code","b":[125],"m":"ld","o":"a,l"},{"a":29946,"t":"code","b":[50,37,93],"m":"ld","oa":23845,"o":"($5D25),a"},{"a":29949,"t":"code","b":[201],"m":"ret"},{"a":29950,"l":"seenBefore","c":"The enemies in sight when seenCount last showed them.","t":"byte","b":[0],"x":[27707,29962,29999,30007]},{"a":29951,"l":"seenCount","c":"In a player's turn, the number of enemies in sight ($5D59) in the panel, with message $17, or the blank (message $16) when there are none. When more are in sight than before, the view is drawn again and the line flashes seven times with sound effect 7.","t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)","x":[27686]},{"a":29954,"t":"code","b":[183],"m":"or","o":"a"},{"a":29955,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":29956,"t":"code","b":[58,89,93],"m":"ld","oa":23897,"o":"a,($5D59)"},{"a":29959,"t":"code","b":[183],"m":"or","o":"a"},{"a":29960,"t":"code","b":[32,9],"m":"jr","oa":29971,"o":"nz,$7513"},{"a":29962,"t":"code","b":[50,254,116],"m":"ld","oa":29950,"o":"(seenBefore),a"},{"a":29965,"t":"code","b":[62,22],"m":"ld","o":"a,$16"},{"a":29967,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":29970,"t":"code","b":[201],"m":"ret"},{"a":29971,"t":"code","b":[62,8],"m":"ld","o":"a,$08","x":[29960]},{"a":29973,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":29976,"t":"code","b":[33,114,114],"m":"ld","o":"hl,$7272"},{"a":29979,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":29982,"t":"code","b":[33,22,24],"m":"ld","o":"hl,$1816"},{"a":29985,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":29988,"t":"code","b":[58,89,93],"m":"ld","oa":23897,"o":"a,($5D59)"},{"a":29991,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":29994,"t":"code","b":[62,23],"m":"ld","o":"a,$17"},{"a":29996,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":29999,"t":"code","b":[58,254,116],"m":"ld","oa":29950,"o":"a,(seenBefore)"},{"a":30002,"t":"code","b":[33,89,93],"m":"ld","o":"hl,$5D59"},{"a":30005,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30006,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30007,"t":"code","b":[50,254,116],"m":"ld","oa":29950,"o":"(seenBefore),a"},{"a":30010,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":30011,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30012,"t":"code","b":[50,43,93],"m":"ld","oa":23851,"o":"($5D2B),a"},{"a":30015,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":30018,"t":"code","b":[33,152,90],"m":"ld","o":"hl,$5A98"},{"a":30021,"t":"code","b":[34,45,93],"m":"ld","oa":23853,"o":"($5D2D),hl"},{"a":30024,"t":"code","b":[6,7],"m":"ld","o":"b,$07"},{"a":30026,"t":"code","b":[197],"m":"push","o":"bc","x":[30042]},{"a":30027,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":30030,"t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":30032,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":30035,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":30038,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":30041,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":30042,"t":"code","b":[16,238],"m":"djnz","oa":30026,"o":"$754A"},{"a":30044,"t":"code","b":[201],"m":"ret"},{"a":30045,"l":"startReaction","c":"Reaction fire. When enemies see the unit that moved ($5D33, the list from $5B97 copied to $5BD1) and it does not stand on a unit, the sides swap, and each enemy in turn that faces it, has more action points left than half its $05 less one, and has not reacted this turn (the list from $5C3C) is shown and may fire: the computer's through the scenario's hook at $B624, a player's through $8E09. Then the sides swap back, and the unit that moved is shown again.","t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)","x":[28655,32609]},{"a":30048,"t":"code","b":[183],"m":"or","o":"a"},{"a":30049,"t":"code","b":[40,5],"m":"jr","oa":30056,"o":"z,$7568"},{"a":30051,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30053,"t":"code","b":[50,54,93],"m":"ld","oa":23862,"o":"($5D36),a"},{"a":30056,"t":"code","b":[33,151,91],"m":"ld","o":"hl,$5B97","x":[30049]},{"a":30059,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30060,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30061,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30062,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":30066,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":30069,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":30071,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":30072,"t":"code","b":[17,209,91],"m":"ld","o":"de,$5BD1"},{"a":30075,"t":"code","b":[237,83,90,93],"m":"ld","oa":23898,"o":"($5D5A),de"},{"a":30079,"t":"code","b":[1,58,0],"m":"ld","o":"bc,$003A"},{"a":30082,"t":"code","b":[237,176],"m":"ldir"},{"a":30084,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30085,"t":"code","b":[50,98,93],"m":"ld","oa":23906,"o":"($5D62),a"},{"a":30088,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30089,"t":"code","b":[50,93,93],"m":"ld","oa":23901,"o":"($5D5D),a"},{"a":30092,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":30095,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":30096,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30097,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":30100,"t":"code","b":[50,92,93],"m":"ld","oa":23900,"o":"($5D5C),a"},{"a":30103,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":30106,"t":"code","b":[34,99,93],"m":"ld","oa":23907,"o":"($5D63),hl"},{"a":30109,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":30112,"t":"code","b":[34,101,93],"m":"ld","oa":23909,"o":"($5D65),hl"},{"a":30115,"t":"code","b":[34,105,93],"m":"ld","oa":23913,"o":"($5D69),hl"},{"a":30118,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":30121,"t":"code","b":[34,94,93],"m":"ld","oa":23902,"o":"($5D5E),hl"},{"a":30124,"t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)"},{"a":30127,"t":"code","b":[34,96,93],"m":"ld","oa":23904,"o":"($5D60),hl"},{"a":30130,"t":"code","b":[42,90,93],"m":"ld","oa":23898,"o":"hl,($5D5A)","x":[30409]},{"a":30133,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":30134,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":30136,"t":"code","b":[187],"m":"cp","o":"e"},{"a":30137,"t":"code","b":[202,204,118],"m":"jp","oa":30412,"o":"z,$76CC"},{"a":30140,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30141,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":30142,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30143,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30144,"t":"code","b":[237,83,36,93],"m":"ld","oa":23844,"o":"($5D24),de"},{"a":30148,"t":"code","b":[237,83,71,93],"m":"ld","oa":23879,"o":"($5D47),de"},{"a":30152,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":30155,"t":"code","b":[42,101,93],"m":"ld","oa":23909,"o":"hl,($5D65)"},{"a":30158,"t":"code","b":[34,73,93],"m":"ld","oa":23881,"o":"($5D49),hl"},{"a":30161,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":30164,"t":"code","b":[221,34,51,93],"m":"ld","oa":23859,"o":"($5D33),ix"},{"a":30168,"t":"code","b":[205,38,115],"m":"call","oa":29478,"o":"inView"},{"a":30171,"t":"code","b":[183],"m":"or","o":"a"},{"a":30172,"t":"code","b":[194,191,118],"m":"jp","oa":30399,"o":"nz,$76BF"},{"a":30175,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30176,"t":"code","b":[50,54,93],"m":"ld","oa":23862,"o":"($5D36),a"},{"a":30179,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":30182,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":30184,"t":"code","b":[61],"m":"dec","o":"a"},{"a":30185,"t":"code","b":[221,190,6],"m":"cp","o":"(ix+$06)"},{"a":30188,"t":"code","b":[210,191,118],"m":"jp","oa":30399,"o":"nc,$76BF"},{"a":30191,"t":"code","b":[33,60,92],"m":"ld","o":"hl,$5C3C"},{"a":30194,"t":"code","b":[6,19],"m":"ld","o":"b,$13"},{"a":30196,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":30199,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[30204]},{"a":30200,"t":"code","b":[202,191,118],"m":"jp","oa":30399,"o":"z,$76BF"},{"a":30203,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30204,"t":"code","b":[16,249],"m":"djnz","oa":30199,"o":"$75F7"},{"a":30206,"t":"code","b":[42,103,93],"m":"ld","oa":23911,"o":"hl,($5D67)"},{"a":30209,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30210,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30211,"t":"code","b":[34,103,93],"m":"ld","oa":23911,"o":"($5D67),hl"},{"a":30214,"t":"code","b":[205,64,94],"m":"call","oa":24128,"o":"computerSide"},{"a":30217,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":30220,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":30223,"t":"code","b":[62,25],"m":"ld","o":"a,$19"},{"a":30225,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":30228,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804"},{"a":30231,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":30234,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":30237,"t":"code","b":[62,26],"m":"ld","o":"a,$1A"},{"a":30239,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":30242,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":30245,"t":"code","b":[34,107,93],"m":"ld","oa":23915,"o":"($5D6B),hl"},{"a":30248,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":30251,"t":"code","b":[183],"m":"or","o":"a"},{"a":30252,"t":"code","b":[40,24],"m":"jr","oa":30278,"o":"z,$7646"},{"a":30254,"t":"code","b":[205,237,119],"m":"call","oa":30701,"o":"hideUnits"},{"a":30257,"t":"code","b":[62,0],"m":"ld","o":"a,$00"},{"a":30259,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":30262,"t":"code","b":[205,71,119],"m":"call","oa":30535,"o":"sideView"},{"a":30265,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30267,"t":"code","b":[50,18,183],"m":"ld","oa":46866,"o":"($B712),a"},{"a":30270,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":30273,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":30276,"t":"code","b":[24,16],"m":"jr","oa":30294,"o":"$7656"},{"a":30278,"t":"code","b":[58,98,93],"m":"ld","oa":23906,"o":"a,($5D62)","x":[30252]},{"a":30281,"t":"code","b":[183],"m":"or","o":"a"},{"a":30282,"t":"code","b":[204,237,119],"m":"call","oa":30701,"o":"z,hideUnits"},{"a":30285,"t":"code","b":[205,138,119],"m":"call","oa":30602,"o":"panView"},{"a":30288,"t":"code","b":[205,131,114],"m":"call","oa":29315,"o":"findSeenAll"},{"a":30291,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":30294,"t":"code","b":[237,91,36,93],"m":"ld","oa":23844,"o":"de,($5D24)","x":[30276]},{"a":30298,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":30301,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":30304,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30305,"t":"code","b":[205,16,110],"m":"call","oa":28176,"o":"centreOn"},{"a":30308,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":30311,"t":"code","b":[205,247,119],"m":"call","oa":30711,"o":"waitFire"},{"a":30314,"t":"code","b":[62,24],"m":"ld","o":"a,$18"},{"a":30316,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":30319,"t":"code","b":[237,91,36,93],"m":"ld","oa":23844,"o":"de,($5D24)"},{"a":30323,"t":"code","b":[237,83,252,92],"m":"ld","oa":23804,"o":"($5CFC),de"},{"a":30327,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":30330,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":30333,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":30336,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":30339,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":30342,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30343,"t":"code","b":[50,19,183],"m":"ld","oa":46867,"o":"($B713),a"},{"a":30346,"t":"code","b":[205,13,110],"m":"call","oa":28173,"o":"centreOnUnit"},{"a":30349,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":30352,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":30355,"t":"code","b":[183],"m":"or","o":"a"},{"a":30356,"t":"code","b":[40,30],"m":"jr","oa":30388,"o":"z,$76B4"},{"a":30358,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":30361,"t":"code","b":[183],"m":"or","o":"a"},{"a":30362,"t":"code","b":[40,21],"m":"jr","oa":30385,"o":"z,$76B1"},{"a":30364,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":30367,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":30370,"t":"code","b":[58,89,93],"m":"ld","oa":23897,"o":"a,($5D59)"},{"a":30373,"t":"code","b":[183],"m":"or","o":"a"},{"a":30374,"t":"code","b":[40,12],"m":"jr","oa":30388,"o":"z,$76B4"},{"a":30376,"t":"code","b":[205,36,182],"m":"call","oa":46628,"o":"$B624"},{"a":30379,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":30383,"t":"code","b":[24,3],"m":"jr","oa":30388,"o":"$76B4"},{"a":30385,"t":"code","b":[205,9,142],"m":"call","oa":36361,"o":"fireMode","x":[30362]},{"a":30388,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[30356,30374,30383]},{"a":30390,"t":"code","b":[50,98,93],"m":"ld","oa":23906,"o":"($5D62),a"},{"a":30393,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":30396,"t":"code","b":[34,105,93],"m":"ld","oa":23913,"o":"($5D69),hl"},{"a":30399,"t":"code","b":[42,90,93],"m":"ld","oa":23898,"o":"hl,($5D5A)","x":[30172,30188,30200]},{"a":30402,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":30405,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30406,"t":"code","b":[34,90,93],"m":"ld","oa":23898,"o":"($5D5A),hl"},{"a":30409,"t":"code","b":[195,178,117],"m":"jp","oa":30130,"o":"$75B2"},{"a":30412,"c":"The sides swapped back, the unit that moved selected again.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[30137]},{"a":30414,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":30417,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":30418,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30419,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30420,"t":"code","b":[50,93,93],"m":"ld","oa":23901,"o":"($5D5D),a"},{"a":30423,"t":"code","b":[205,64,94],"m":"call","oa":24128,"o":"computerSide"},{"a":30426,"t":"code","b":[42,101,93],"m":"ld","oa":23909,"o":"hl,($5D65)"},{"a":30429,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":30432,"t":"code","b":[34,107,93],"m":"ld","oa":23915,"o":"($5D6B),hl"},{"a":30435,"t":"code","b":[42,99,93],"m":"ld","oa":23907,"o":"hl,($5D63)"},{"a":30438,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":30441,"t":"code","b":[58,92,93],"m":"ld","oa":23900,"o":"a,($5D5C)"},{"a":30444,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":30447,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":30450,"t":"code","b":[221,34,51,93],"m":"ld","oa":23859,"o":"($5D33),ix"},{"a":30454,"t":"code","b":[58,98,93],"m":"ld","oa":23906,"o":"a,($5D62)"},{"a":30457,"t":"code","b":[183],"m":"or","o":"a"},{"a":30458,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30459,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":30462,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":30465,"t":"code","b":[62,27],"m":"ld","o":"a,$1B"},{"a":30467,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":30470,"t":"code","b":[62,26],"m":"ld","o":"a,$1A"},{"a":30472,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":30475,"t":"code","b":[205,237,119],"m":"call","oa":30701,"o":"hideUnits"},{"a":30478,"t":"code","b":[205,138,119],"m":"call","oa":30602,"o":"panView"},{"a":30481,"t":"code","b":[42,94,93],"m":"ld","oa":23902,"o":"hl,($5D5E)"},{"a":30484,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":30487,"t":"code","b":[42,96,93],"m":"ld","oa":23904,"o":"hl,($5D60)"},{"a":30490,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":30493,"t":"code","b":[205,71,119],"m":"call","oa":30535,"o":"sideView"},{"a":30496,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":30499,"t":"code","b":[183],"m":"or","o":"a"},{"a":30500,"t":"code","b":[196,168,113],"m":"call","oa":29096,"o":"nz,hideSide"},{"a":30503,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":30506,"t":"code","b":[205,247,119],"m":"call","oa":30711,"o":"waitFire"},{"a":30509,"t":"code","b":[205,13,110],"m":"call","oa":28173,"o":"centreOnUnit"},{"a":30512,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":30515,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":30518,"t":"code","b":[183],"m":"or","o":"a"},{"a":30519,"t":"code","b":[40,10],"m":"jr","oa":30531,"o":"z,$7743"},{"a":30521,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":30524,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":30527,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30528,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":30531,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease","x":[30519]},{"a":30534,"t":"code","b":[201],"m":"ret"},{"a":30535,"l":"sideView","c":"The map as side ($B712) sees it: every unit put on it, the other side's taken off, and each enemy that one of the side's units can see in front of it put back. IX is left on the unit at $5D33.","t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)","x":[24398,28685,30262,30493,38901]},{"a":30538,"t":"code","b":[229],"m":"push","o":"hl"},{"a":30539,"t":"code","b":[205,215,113],"m":"call","oa":29143,"o":"showAllUnits"},{"a":30542,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30544,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":30547,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":30548,"t":"code","b":[205,168,113],"m":"call","oa":29096,"o":"hideSide"},{"a":30551,"t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50"},{"a":30554,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":30556,"t":"code","b":[197],"m":"push","o":"bc","x":[30591]},{"a":30557,"t":"code","b":[229],"m":"push","o":"hl"},{"a":30558,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":30559,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":30562,"t":"code","b":[185],"m":"cp","o":"c"},{"a":30563,"t":"code","b":[32,20],"m":"jr","oa":30585,"o":"nz,$7779"},{"a":30565,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30566,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":30567,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30568,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":30569,"t":"code","b":[237,83,36,93],"m":"ld","oa":23844,"o":"($5D24),de"},{"a":30573,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":30575,"t":"code","b":[144],"m":"sub","o":"b"},{"a":30576,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":30579,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":30582,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":30585,"t":"code","b":[225],"m":"pop","o":"hl","x":[30563]},{"a":30586,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":30589,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30590,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":30591,"t":"code","b":[16,219],"m":"djnz","oa":30556,"o":"$775C"},{"a":30593,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":30597,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":30598,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":30601,"t":"code","b":[201],"m":"ret"},{"a":30602,"l":"panView","c":"Move the view along the line from the square at $5D69 to the one at $5D6B, a square at a time, centred on each (centreAt), unless the two are the same.","t":"code","b":[58,105,93],"m":"ld","oa":23913,"o":"a,($5D69)","x":[27814,30285,30478,33856]},{"a":30605,"t":"code","b":[33,107,93],"m":"ld","o":"hl,$5D6B"},{"a":30608,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30609,"t":"code","b":[32,6],"m":"jr","oa":30617,"o":"nz,$7799"},{"a":30611,"t":"code","b":[58,106,93],"m":"ld","oa":23914,"o":"a,($5D6A)"},{"a":30614,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30615,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30616,"t":"code","b":[200],"m":"ret","o":"z"},{"a":30617,"t":"code","b":[58,105,93],"m":"ld","oa":23913,"o":"a,($5D69)","x":[30609]},{"a":30620,"t":"code","b":[50,147,112],"m":"ld","oa":28819,"o":"($7093),a"},{"a":30623,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":30626,"t":"code","b":[58,106,93],"m":"ld","oa":23914,"o":"a,($5D6A)"},{"a":30629,"t":"code","b":[50,145,112],"m":"ld","oa":28817,"o":"(lineVars),a"},{"a":30632,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":30635,"t":"code","b":[58,107,93],"m":"ld","oa":23915,"o":"a,($5D6B)"},{"a":30638,"t":"code","b":[50,151,112],"m":"ld","oa":28823,"o":"($7097),a"},{"a":30641,"t":"code","b":[58,108,93],"m":"ld","oa":23916,"o":"a,($5D6C)"},{"a":30644,"t":"code","b":[50,149,112],"m":"ld","oa":28821,"o":"($7095),a"},{"a":30647,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30648,"t":"code","b":[50,148,112],"m":"ld","oa":28820,"o":"($7094),a"},{"a":30651,"t":"code","b":[50,146,112],"m":"ld","oa":28818,"o":"($7092),a"},{"a":30654,"t":"code","b":[50,156,112],"m":"ld","oa":28828,"o":"($709C),a"},{"a":30657,"t":"code","b":[50,154,112],"m":"ld","oa":28826,"o":"($709A),a"},{"a":30660,"t":"code","b":[50,152,112],"m":"ld","oa":28824,"o":"($7098),a"},{"a":30663,"t":"code","b":[50,150,112],"m":"ld","oa":28822,"o":"($7096),a"},{"a":30666,"t":"code","b":[205,202,112],"m":"call","oa":28874,"o":"lineSetup"},{"a":30669,"t":"code","b":[205,104,113],"m":"call","oa":29032,"o":"lineStep","x":[30699]},{"a":30672,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":30675,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":30676,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":30679,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":30680,"t":"code","b":[58,107,93],"m":"ld","oa":23915,"o":"a,($5D6B)"},{"a":30683,"t":"code","b":[189],"m":"cp","o":"l"},{"a":30684,"t":"code","b":[32,10],"m":"jr","oa":30696,"o":"nz,$77E8"},{"a":30686,"t":"code","b":[58,108,93],"m":"ld","oa":23916,"o":"a,($5D6C)"},{"a":30689,"t":"code","b":[188],"m":"cp","o":"h"},{"a":30690,"t":"code","b":[32,4],"m":"jr","oa":30696,"o":"nz,$77E8"},{"a":30692,"t":"code","b":[205,19,110],"m":"call","oa":28179,"o":"centreAt"},{"a":30695,"t":"code","b":[201],"m":"ret"},{"a":30696,"t":"code","b":[205,19,110],"m":"call","oa":28179,"o":"centreAt","x":[30684,30690]},{"a":30699,"t":"code","b":[24,224],"m":"jr","oa":30669,"o":"$77CD"},{"a":30701,"l":"hideUnits","c":"Take every unit off the map.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[30254,30282,30475]},{"a":30703,"t":"code","b":[205,168,113],"m":"call","oa":29096,"o":"hideSide"},{"a":30706,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30707,"t":"code","b":[205,168,113],"m":"call","oa":29096,"o":"hideSide"},{"a":30710,"t":"code","b":[201],"m":"ret"},{"a":30711,"l":"waitFire","c":"In a player's turn, wait for fire, each turn adding one to $5D9C; then sound effect 0. BC is kept.","t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)","x":[24564,30311,30506,34930,42292]},{"a":30714,"t":"code","b":[183],"m":"or","o":"a"},{"a":30715,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":30716,"t":"code","b":[197],"m":"push","o":"bc"},{"a":30717,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls","x":[30729]},{"a":30720,"t":"code","b":[33,156,93],"m":"ld","o":"hl,$5D9C"},{"a":30723,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":30724,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":30727,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":30729,"t":"code","b":[32,242],"m":"jr","oa":30717,"o":"nz,$77FD"},{"a":30731,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30732,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":30735,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":30736,"t":"code","b":[201],"m":"ret"},{"a":30737,"l":"afterAction","c":"After a turn or a step: sound effect 4 in a player's turn, the panel, and the unit's place kept (keepPlace) unless another unit of its side shares its square (shared). With no action points left on a shared square, it goes back where it was kept (undoMove). NZ while it has points left.","t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)","x":[28117,28164]},{"a":30740,"t":"code","b":[183],"m":"or","o":"a"},{"a":30741,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":30743,"t":"code","b":[204,190,181],"m":"call","oa":46526,"o":"z,sound"},{"a":30746,"t":"code","b":[205,188,107],"m":"call","oa":27580,"o":"unitPanel"},{"a":30749,"t":"code","b":[205,22,154],"m":"call","oa":39446,"o":"shared"},{"a":30752,"t":"code","b":[204,47,112],"m":"call","oa":28719,"o":"z,keepPlace"},{"a":30755,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":30758,"t":"code","b":[183],"m":"or","o":"a"},{"a":30759,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":30760,"t":"code","b":[205,22,154],"m":"call","oa":39446,"o":"shared"},{"a":30763,"t":"code","b":[194,66,112],"m":"jp","oa":28738,"o":"nz,undoMove"},{"a":30766,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30767,"t":"code","b":[201],"m":"ret"},{"a":30768,"l":"revealBehind","c":"A step back onto a square where a unit stands unseen: the unit is put on the map, which blocks the step, and the view drawn again.","t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50","x":[28369]},{"a":30771,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":30774,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":30776,"t":"code","b":[229],"m":"push","o":"hl","x":[30810]},{"a":30777,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":30778,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":30780,"t":"code","b":[40,26],"m":"jr","oa":30808,"o":"z,$7858"},{"a":30782,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30783,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":30786,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30787,"t":"code","b":[32,19],"m":"jr","oa":30808,"o":"nz,$7858"},{"a":30789,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":30792,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30793,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":30794,"t":"code","b":[32,12],"m":"jr","oa":30808,"o":"nz,$7858"},{"a":30796,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":30798,"t":"code","b":[144],"m":"sub","o":"b"},{"a":30799,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":30802,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30803,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":30804,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":30807,"t":"code","b":[201],"m":"ret"},{"a":30808,"t":"code","b":[225],"m":"pop","o":"hl","x":[30780,30787,30794]},{"a":30809,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30810,"t":"code","b":[16,220],"m":"djnz","oa":30776,"o":"$7838"},{"a":30812,"t":"code","b":[201],"m":"ret"},{"a":30813,"l":"listCarried","c":"List from $5B79 the objects unit ($5D26) carries, three bytes each: the object's number in the scenario's list (from 1), its kind and its ammunition; $5D8F counts them. The scenario's objects are listed from the address in $B72A, ($B639) of them, six bytes each: the kind (an object of the map, $6E on, or 0 for none), the row and column, the floor under it, its ammunition or charge, and the unit carrying it (0 for none). A unit's $17 is the object in its hands, $23 its kind and $24 its ammunition. IX is kept.","t":"code","b":[221,229],"m":"push","o":"ix","x":[30937,31308,39828,41951]},{"a":30815,"t":"code","b":[33,121,91],"m":"ld","o":"hl,$5B79"},{"a":30818,"t":"code","b":[17,122,91],"m":"ld","o":"de,$5B7A"},{"a":30821,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":30823,"t":"code","b":[1,29,0],"m":"ld","o":"bc,$001D"},{"a":30826,"t":"code","b":[237,176],"m":"ldir"},{"a":30828,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30829,"t":"code","b":[50,143,93],"m":"ld","oa":23951,"o":"($5D8F),a"},{"a":30832,"t":"code","b":[33,121,91],"m":"ld","o":"hl,$5B79"},{"a":30835,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":30838,"t":"code","b":[221,42,42,183],"m":"ld","oa":46890,"o":"ix,($B72A)"},{"a":30842,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":30845,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":30846,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":30849,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)","x":[30886]},{"a":30852,"t":"code","b":[221,190,5],"m":"cp","o":"(ix+$05)"},{"a":30855,"t":"code","b":[32,27],"m":"jr","oa":30884,"o":"nz,$78A4"},{"a":30857,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":30860,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":30863,"t":"code","b":[60],"m":"inc","o":"a"},{"a":30864,"t":"code","b":[144],"m":"sub","o":"b"},{"a":30865,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30866,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30867,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":30870,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30871,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30872,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":30875,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":30876,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":30877,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":30880,"t":"code","b":[33,143,93],"m":"ld","o":"hl,$5D8F"},{"a":30883,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":30884,"t":"code","b":[221,25],"m":"add","o":"ix,de","x":[30855]},{"a":30886,"t":"code","b":[16,217],"m":"djnz","oa":30849,"o":"$7881"},{"a":30888,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":30890,"t":"code","b":[201],"m":"ret"},{"a":30891,"l":"findCarried","c":"Z if an object of kind A is in the list from $5B79, $5D6F then its entry; NZ if not.","t":"code","b":[6,10],"m":"ld","o":"b,$0A","x":[31036]},{"a":30893,"t":"code","b":[33,122,91],"m":"ld","o":"hl,$5B7A"},{"a":30896,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":30899,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[30903]},{"a":30900,"t":"code","b":[40,7],"m":"jr","oa":30909,"o":"z,$78BD"},{"a":30902,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":30903,"t":"code","b":[16,250],"m":"djnz","oa":30899,"o":"$78B3"},{"a":30905,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30907,"t":"code","b":[183],"m":"or","o":"a"},{"a":30908,"t":"code","b":[201],"m":"ret"},{"a":30909,"t":"code","b":[43],"m":"dec","o":"hl","x":[30900]},{"a":30910,"t":"code","b":[34,111,93],"m":"ld","oa":23919,"o":"($5D6F),hl"},{"a":30913,"t":"code","b":[201],"m":"ret"},{"a":30914,"l":"addLine","c":"A line of the unit's menu: option A, and its words, message A + $1C.","t":"code","b":[245],"m":"push","o":"af","x":[30955,30972,30987,31002,31011,31041,31061,31095,31106,31116,31134,31139,31144]},{"a":30915,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":30918,"t":"code","b":[241],"m":"pop","o":"af"},{"a":30919,"t":"code","b":[198,28],"m":"add","o":"a,$1C"},{"a":30921,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":30924,"t":"code","b":[201],"m":"ret"},{"a":30925,"l":"unitMenu","c":"The unit's menu, fire held with a unit selected. Line 0, done, is always there; unless the unit stands on a unit, 1 fire (with an object in its hands), 2 change what it holds (when it carries any), 3 pick up (with objects on its square) and 4 drop (holding one), which bits 2 and 1 of its $25 can take away; 5 and 6 by the kind of what it holds (its $00 bit 1 with ammunition for it carried; bit 3 not yet primed); 7 to 10 by the terrain in front of it (its $08: 1 a door that opens, 7, and locks with the key it holds, 8; 2 one that closes, 9; 3 one that unlocks with the key, 10); and 11. Then 12, cancel, and the scenario's hook at $B633. The choice runs its routine from the table at $79D1. NZ while the unit can go on.","t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)","x":[27892]},{"a":30928,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":30931,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":30934,"t":"code","b":[50,113,93],"m":"ld","oa":23921,"o":"($5D71),a"},{"a":30937,"t":"code","b":[205,93,120],"m":"call","oa":30813,"o":"listCarried"},{"a":30940,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":30943,"t":"code","b":[205,116,110],"m":"call","oa":28276,"o":"stepTarget"},{"a":30946,"t":"code","b":[205,238,105],"m":"call","oa":27118,"o":"menuOpen"},{"a":30949,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":30951,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":30954,"t":"code","b":[175],"m":"xor","o":"a"},{"a":30955,"t":"code","b":[205,194,120],"m":"call","oa":30914,"o":"addLine"},{"a":30958,"t":"code","b":[221,126,22],"m":"ld","o":"a,(ix+$16)"},{"a":30961,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":30963,"t":"code","b":[210,166,121],"m":"jp","oa":31142,"o":"nc,$79A6"},{"a":30966,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":30969,"t":"code","b":[183],"m":"or","o":"a"},{"a":30970,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":30972,"t":"code","b":[196,194,120],"m":"call","oa":30914,"o":"nz,addLine"},{"a":30975,"t":"code","b":[221,203,37,86],"m":"bit","o":"2,(ix+$25)"},{"a":30979,"t":"code","b":[32,33],"m":"jr","oa":31014,"o":"nz,$7926"},{"a":30981,"t":"code","b":[58,121,91],"m":"ld","oa":23417,"o":"a,($5B79)"},{"a":30984,"t":"code","b":[183],"m":"or","o":"a"},{"a":30985,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":30987,"t":"code","b":[196,194,120],"m":"call","oa":30914,"o":"nz,addLine"},{"a":30990,"t":"code","b":[221,203,37,78],"m":"bit","o":"1,(ix+$25)"},{"a":30994,"t":"code","b":[32,18],"m":"jr","oa":31014,"o":"nz,$7926"},{"a":30996,"t":"code","b":[58,113,93],"m":"ld","oa":23921,"o":"a,($5D71)"},{"a":30999,"t":"code","b":[183],"m":"or","o":"a"},{"a":31000,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":31002,"t":"code","b":[196,194,120],"m":"call","oa":30914,"o":"nz,addLine"},{"a":31005,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":31008,"t":"code","b":[183],"m":"or","o":"a"},{"a":31009,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":31011,"t":"code","b":[196,194,120],"m":"call","oa":30914,"o":"nz,addLine"},{"a":31014,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)","x":[30979,30994]},{"a":31017,"t":"code","b":[183],"m":"or","o":"a"},{"a":31018,"t":"code","b":[40,44],"m":"jr","oa":31064,"o":"z,$7958"},{"a":31020,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":31023,"t":"code","b":[221,34,194,93],"m":"ld","oa":24002,"o":"($5DC2),ix"},{"a":31027,"t":"code","b":[221,203,0,78],"m":"bit","o":"1,(ix+$00)"},{"a":31031,"t":"code","b":[40,11],"m":"jr","oa":31044,"o":"z,$7944"},{"a":31033,"t":"code","b":[221,126,16],"m":"ld","o":"a,(ix+$10)"},{"a":31036,"t":"code","b":[205,171,120],"m":"call","oa":30891,"o":"findCarried"},{"a":31039,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":31041,"t":"code","b":[204,194,120],"m":"call","oa":30914,"o":"z,addLine"},{"a":31044,"t":"code","b":[221,203,0,94],"m":"bit","o":"3,(ix+$00)","x":[31031]},{"a":31048,"t":"code","b":[40,14],"m":"jr","oa":31064,"o":"z,$7958"},{"a":31050,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":31054,"t":"code","b":[221,126,36],"m":"ld","o":"a,(ix+$24)"},{"a":31057,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":31059,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":31061,"t":"code","b":[204,194,120],"m":"call","oa":30914,"o":"z,addLine"},{"a":31064,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[31018,31048]},{"a":31068,"t":"code","b":[237,91,58,93],"m":"ld","oa":23866,"o":"de,($5D3A)"},{"a":31072,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":31075,"t":"code","b":[34,62,93],"m":"ld","oa":23870,"o":"($5D3E),hl"},{"a":31078,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31079,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":31081,"t":"code","b":[48,54],"m":"jr","oa":31137,"o":"nc,$79A1"},{"a":31083,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":31086,"t":"code","b":[253,126,8],"m":"ld","o":"a,(iy+$08)"},{"a":31089,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":31091,"t":"code","b":[32,16],"m":"jr","oa":31109,"o":"nz,$7985"},{"a":31093,"t":"code","b":[62,7],"m":"ld","o":"a,$07"},{"a":31095,"t":"code","b":[205,194,120],"m":"call","oa":30914,"o":"addLine"},{"a":31098,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":31101,"t":"code","b":[253,190,10],"m":"cp","o":"(iy+$0A)"},{"a":31104,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":31106,"t":"code","b":[204,194,120],"m":"call","oa":30914,"o":"z,addLine"},{"a":31109,"t":"code","b":[253,126,8],"m":"ld","o":"a,(iy+$08)","x":[31091]},{"a":31112,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":31114,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":31116,"t":"code","b":[204,194,120],"m":"call","oa":30914,"o":"z,addLine"},{"a":31119,"t":"code","b":[253,126,8],"m":"ld","o":"a,(iy+$08)"},{"a":31122,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":31124,"t":"code","b":[32,11],"m":"jr","oa":31137,"o":"nz,$79A1"},{"a":31126,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":31129,"t":"code","b":[253,190,9],"m":"cp","o":"(iy+$09)"},{"a":31132,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":31134,"t":"code","b":[204,194,120],"m":"call","oa":30914,"o":"z,addLine"},{"a":31137,"t":"code","b":[62,11],"m":"ld","o":"a,$0B","x":[31081,31124]},{"a":31139,"t":"code","b":[205,194,120],"m":"call","oa":30914,"o":"addLine"},{"a":31142,"t":"code","b":[62,12],"m":"ld","o":"a,$0C","x":[30963]},{"a":31144,"t":"code","b":[205,194,120],"m":"call","oa":30914,"o":"addLine"},{"a":31147,"t":"code","b":[205,51,182],"m":"call","oa":46643,"o":"$B633"},{"a":31150,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":31153,"t":"code","b":[205,196,104],"m":"call","oa":26820,"o":"menuSelect"},{"a":31156,"t":"code","b":[33,209,121],"m":"ld","o":"hl,$79D1"},{"a":31159,"t":"code","b":[205,31,106],"m":"call","oa":27167,"o":"dispatch"},{"a":31162,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":31165,"t":"code","b":[183],"m":"or","o":"a"},{"a":31166,"t":"code","b":[200],"m":"ret","o":"z"},{"a":31167,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":31170,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":31173,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":31176,"t":"code","b":[183],"m":"or","o":"a"},{"a":31177,"t":"code","b":[200],"m":"ret","o":"z"},{"a":31178,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":31181,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":31184,"t":"code","b":[201],"m":"ret"},{"a":31185,"l":"unitOptions","c":"The routines of the unit's menu, by option, and the scenario's hook at $B636 for option 13.","t":"word","b":[237,121,9,142,55,122,172,124],"d":[31213,36361,31287,31916]},{"a":31193,"t":"word","b":[10,124,1,157,66,156,247,121],"d":[31754,40193,40002,31223]},{"a":31201,"t":"word","b":[25,122,247,121,25,122,149,132],"d":[31257,31223,31257,33941]},{"a":31209,"t":"word","b":[246,121,54,182],"d":[31222,46646]},{"a":31213,"l":"doneOption","c":"Option 0, done: the unit is let go, with Z and past the menu's own return (a return address dropped), unless it shares a square with no points left, when it goes back (undoMove).","t":"code","b":[205,22,154],"m":"call","oa":39446,"o":"shared"},{"a":31216,"t":"code","b":[194,66,112],"m":"jp","oa":28738,"o":"nz,undoMove"},{"a":31219,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":31220,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31221,"t":"code","b":[201],"m":"ret"},{"a":31222,"l":"cancelOption","c":"Option 12, cancel: nothing.","t":"code","b":[201],"m":"ret"},{"a":31223,"l":"openDoor","c":"Options 7 and 9, open or close the door in front (IY its terrain's record, $5D3E its square), for a fifth of the unit's most action points ($05): the square becomes the terrain's $09.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":31226,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":31228,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":31231,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":31232,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":31235,"t":"code","b":[216],"m":"ret","o":"c"},{"a":31236,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":31239,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":31242,"t":"code","b":[253,126,9],"m":"ld","o":"a,(iy+$09)"},{"a":31245,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":31248,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31249,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":31252,"t":"code","b":[183],"m":"or","o":"a"},{"a":31253,"t":"code","b":[204,42,97],"m":"call","oa":24874,"o":"z,drawView"},{"a":31256,"t":"code","b":[201],"m":"ret"},{"a":31257,"l":"lockDoor","c":"Options 8 and 10, lock or unlock it with the key held, for a quarter: the square becomes the terrain's $0B.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":31260,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":31262,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":31265,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":31266,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":31269,"t":"code","b":[216],"m":"ret","o":"c"},{"a":31270,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":31273,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":31276,"t":"code","b":[253,126,11],"m":"ld","o":"a,(iy+$0B)"},{"a":31279,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":31282,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31283,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":31286,"t":"code","b":[201],"m":"ret"},{"a":31287,"l":"changeItem","c":"Option 2, change what the unit holds, for a quarter of its most action points: the screen cleared, the list of what it carries, and the one chosen into its hands. Choosing none empties its hands, and the points spent are added to its $22.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":31290,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":31292,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":31295,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":31296,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":31299,"t":"code","b":[216],"m":"ret","o":"c"},{"a":31300,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen"},{"a":31303,"t":"code","b":[62,41],"m":"ld","o":"a,$29"},{"a":31305,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":31308,"t":"code","b":[205,93,120],"m":"call","oa":30813,"o":"listCarried"},{"a":31311,"t":"code","b":[205,201,122],"m":"call","oa":31433,"o":"showCarried"},{"a":31314,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":31317,"t":"code","b":[183],"m":"or","o":"a"},{"a":31318,"t":"code","b":[40,14],"m":"jr","oa":31334,"o":"z,$7A66"},{"a":31320,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":31322,"t":"code","b":[33,118,91],"m":"ld","o":"hl,$5B76"},{"a":31325,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":31328,"t":"code","b":[4],"m":"inc","o":"b","x":[31331]},{"a":31329,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31330,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":31331,"t":"code","b":[32,251],"m":"jr","oa":31328,"o":"nz,$7A60"},{"a":31333,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":31334,"t":"code","b":[33,114,93],"m":"ld","o":"hl,$5D72","x":[31318]},{"a":31337,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":31338,"t":"code","b":[205,231,123],"m":"call","oa":31719,"o":"drawMark"},{"a":31341,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":31344,"t":"code","b":[205,149,123],"m":"call","oa":31637,"o":"chooseLoop"},{"a":31347,"t":"code","b":[58,114,93],"m":"ld","oa":23922,"o":"a,($5D72)"},{"a":31350,"t":"code","b":[183],"m":"or","o":"a"},{"a":31351,"t":"code","b":[32,32],"m":"jr","oa":31385,"o":"nz,$7A99"},{"a":31353,"t":"code","b":[221,190,23],"m":"cp","o":"(ix+$17)"},{"a":31356,"t":"code","b":[40,62],"m":"jr","oa":31420,"o":"z,$7ABC"},{"a":31358,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":31361,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":31364,"t":"code","b":[58,77,109],"m":"ld","oa":27981,"o":"a,(apCost)"},{"a":31367,"t":"code","b":[221,134,34],"m":"add","o":"a,(ix+$22)"},{"a":31370,"t":"code","b":[221,119,34],"m":"ld","o":"(ix+$22),a"},{"a":31373,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31374,"t":"code","b":[221,119,23],"m":"ld","o":"(ix+$17),a"},{"a":31377,"t":"code","b":[221,119,35],"m":"ld","o":"(ix+$23),a"},{"a":31380,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":31383,"t":"code","b":[24,35],"m":"jr","oa":31420,"o":"$7ABC"},{"a":31385,"t":"code","b":[61],"m":"dec","o":"a","x":[31351]},{"a":31386,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":31387,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":31389,"t":"code","b":[33,121,91],"m":"ld","o":"hl,$5B79"},{"a":31392,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31393,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31394,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31395,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31396,"t":"code","b":[221,190,23],"m":"cp","o":"(ix+$17)"},{"a":31399,"t":"code","b":[40,19],"m":"jr","oa":31420,"o":"z,$7ABC"},{"a":31401,"t":"code","b":[221,119,23],"m":"ld","o":"(ix+$17),a"},{"a":31404,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31405,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31406,"t":"code","b":[221,119,35],"m":"ld","o":"(ix+$23),a"},{"a":31409,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31410,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31411,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":31414,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":31417,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":31420,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[31356,31383,31399]},{"a":31423,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":31426,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":31429,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":31432,"t":"code","b":[201],"m":"ret"},{"a":31433,"l":"showCarried","c":"The list from $5B7A on the screen, a line every two rows from row 4: each object's tile and its name, its ammunition (when its kind's $00 has bit 1 or 5 set) or its fuse (bit 3; $FF shows message $66), its weight ($01 of the kind) and its size ($02). IX is kept.","t":"code","b":[221,229],"m":"push","o":"ix","x":[31311,31951]},{"a":31435,"t":"code","b":[33,4,3],"m":"ld","o":"hl,$0304"},{"a":31438,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":31441,"t":"code","b":[33,122,91],"m":"ld","o":"hl,$5B7A"},{"a":31444,"t":"code","b":[34,141,93],"m":"ld","oa":23949,"o":"($5D8D),hl"},{"a":31447,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":31450,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":31451,"t":"code","b":[197],"m":"push","o":"bc","x":[31631]},{"a":31452,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":31454,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":31457,"t":"code","b":[42,34,183],"m":"ld","oa":46882,"o":"hl,($B722)"},{"a":31460,"t":"code","b":[34,31,93],"m":"ld","oa":23839,"o":"($5D1F),hl"},{"a":31463,"t":"code","b":[42,36,183],"m":"ld","oa":46884,"o":"hl,($B724)"},{"a":31466,"t":"code","b":[34,7,93],"m":"ld","oa":23815,"o":"($5D07),hl"},{"a":31469,"t":"code","b":[42,141,93],"m":"ld","oa":23949,"o":"hl,($5D8D)"},{"a":31472,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31473,"t":"code","b":[42,5,93],"m":"ld","oa":23813,"o":"hl,($5D05)"},{"a":31476,"t":"code","b":[37],"m":"dec","o":"h"},{"a":31477,"t":"code","b":[37],"m":"dec","o":"h"},{"a":31478,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":31481,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":31484,"t":"code","b":[33,6,70],"m":"ld","o":"hl,$4606"},{"a":31487,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":31490,"t":"code","b":[42,141,93],"m":"ld","oa":23949,"o":"hl,($5D8D)"},{"a":31493,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31494,"t":"code","b":[60],"m":"inc","o":"a"},{"a":31495,"t":"code","b":[205,87,101],"m":"call","oa":25943,"o":"printMessage"},{"a":31498,"t":"code","b":[33,5,69],"m":"ld","o":"hl,$4505"},{"a":31501,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":31504,"t":"code","b":[42,5,93],"m":"ld","oa":23813,"o":"hl,($5D05)"},{"a":31507,"t":"code","b":[17,0,18],"m":"ld","o":"de,$1200"},{"a":31510,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31511,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":31514,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":31517,"t":"code","b":[42,141,93],"m":"ld","oa":23949,"o":"hl,($5D8D)"},{"a":31520,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31521,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":31524,"t":"code","b":[221,203,0,78],"m":"bit","o":"1,(ix+$00)"},{"a":31528,"t":"code","b":[32,34],"m":"jr","oa":31564,"o":"nz,$7B4C"},{"a":31530,"t":"code","b":[221,203,0,110],"m":"bit","o":"5,(ix+$00)"},{"a":31534,"t":"code","b":[32,28],"m":"jr","oa":31564,"o":"nz,$7B4C"},{"a":31536,"t":"code","b":[221,203,0,94],"m":"bit","o":"3,(ix+$00)"},{"a":31540,"t":"code","b":[40,30],"m":"jr","oa":31572,"o":"z,$7B54"},{"a":31542,"t":"code","b":[33,7,71],"m":"ld","o":"hl,$4707"},{"a":31545,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":31548,"t":"code","b":[42,141,93],"m":"ld","oa":23949,"o":"hl,($5D8D)"},{"a":31551,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31552,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31553,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":31555,"t":"code","b":[32,12],"m":"jr","oa":31569,"o":"nz,$7B51"},{"a":31557,"t":"code","b":[62,102],"m":"ld","o":"a,$66"},{"a":31559,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":31562,"t":"code","b":[24,8],"m":"jr","oa":31572,"o":"$7B54"},{"a":31564,"t":"code","b":[42,141,93],"m":"ld","oa":23949,"o":"hl,($5D8D)","x":[31528,31534]},{"a":31567,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":31568,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31569,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber","x":[31555]},{"a":31572,"t":"code","b":[33,67,67],"m":"ld","o":"hl,$4343","x":[31540,31562]},{"a":31575,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":31578,"t":"code","b":[62,25],"m":"ld","o":"a,$19"},{"a":31580,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":31583,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":31586,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":31589,"t":"code","b":[33,66,66],"m":"ld","o":"hl,$4242"},{"a":31592,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":31595,"t":"code","b":[62,29],"m":"ld","o":"a,$1D"},{"a":31597,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":31600,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":31603,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":31606,"t":"code","b":[58,5,93],"m":"ld","oa":23813,"o":"a,($5D05)"},{"a":31609,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":31611,"t":"code","b":[50,5,93],"m":"ld","oa":23813,"o":"($5D05),a"},{"a":31614,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":31616,"t":"code","b":[50,6,93],"m":"ld","oa":23814,"o":"($5D06),a"},{"a":31619,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":31622,"t":"code","b":[42,141,93],"m":"ld","oa":23949,"o":"hl,($5D8D)"},{"a":31625,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31626,"t":"code","b":[34,141,93],"m":"ld","oa":23949,"o":"($5D8D),hl"},{"a":31629,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":31630,"t":"code","b":[5],"m":"dec","o":"b"},{"a":31631,"t":"code","b":[194,219,122],"m":"jp","oa":31451,"o":"nz,$7ADB"},{"a":31634,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":31636,"t":"code","b":[201],"m":"ret"},{"a":31637,"l":"chooseLoop","c":"Choose from the list on show: down and up move the mark ($5D72, 0 for none at the top, round from the end), with sound effect 1; fire takes it, with sound effect 2.","t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls","x":[31344,31708,31967]},{"a":31640,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":31643,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":31645,"t":"code","b":[32,5],"m":"jr","oa":31652,"o":"nz,$7BA4"},{"a":31647,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":31649,"t":"code","b":[195,190,181],"m":"jp","oa":46526,"o":"sound"},{"a":31652,"t":"code","b":[203,87],"m":"bit","o":"2,a","x":[31645]},{"a":31654,"t":"code","b":[32,17],"m":"jr","oa":31673,"o":"nz,$7BB9"},{"a":31656,"t":"code","b":[205,222,123],"m":"call","oa":31710,"o":"eraseMark"},{"a":31659,"t":"code","b":[33,114,93],"m":"ld","o":"hl,$5D72"},{"a":31662,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":31663,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":31666,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":31667,"t":"code","b":[48,28],"m":"jr","oa":31697,"o":"nc,$7BD1"},{"a":31669,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":31671,"t":"code","b":[24,24],"m":"jr","oa":31697,"o":"$7BD1"},{"a":31673,"t":"code","b":[203,79],"m":"bit","o":"1,a","x":[31654]},{"a":31675,"t":"code","b":[32,28],"m":"jr","oa":31705,"o":"nz,$7BD9"},{"a":31677,"t":"code","b":[205,222,123],"m":"call","oa":31710,"o":"eraseMark"},{"a":31680,"t":"code","b":[58,114,93],"m":"ld","oa":23922,"o":"a,($5D72)"},{"a":31683,"t":"code","b":[61],"m":"dec","o":"a"},{"a":31684,"t":"code","b":[50,114,93],"m":"ld","oa":23922,"o":"($5D72),a"},{"a":31687,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":31689,"t":"code","b":[32,6],"m":"jr","oa":31697,"o":"nz,$7BD1"},{"a":31691,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":31694,"t":"code","b":[50,114,93],"m":"ld","oa":23922,"o":"($5D72),a"},{"a":31697,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[31667,31671,31689]},{"a":31699,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":31702,"t":"code","b":[205,231,123],"m":"call","oa":31719,"o":"drawMark"},{"a":31705,"t":"code","b":[205,209,102],"m":"call","oa":26321,"o":"repeatDelay","x":[31675]},{"a":31708,"t":"code","b":[24,183],"m":"jr","oa":31637,"o":"chooseLoop"},{"a":31710,"l":"eraseMark","c":"Take the mark off: a space in double height.","t":"code","b":[205,246,123],"m":"call","oa":31734,"o":"markPos","x":[31656,31677]},{"a":31713,"t":"code","b":[62,32],"m":"ld","o":"a,$20"},{"a":31715,"t":"code","b":[205,247,100],"m":"call","oa":25847,"o":"printCharDouble"},{"a":31718,"t":"code","b":[201],"m":"ret"},{"a":31719,"l":"drawMark","c":"Draw the mark, a ':' in double height in white.","t":"code","b":[205,246,123],"m":"call","oa":31734,"o":"markPos","x":[31338,31702,31961]},{"a":31722,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":31725,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":31728,"t":"code","b":[62,58],"m":"ld","o":"a,$3A"},{"a":31730,"t":"code","b":[205,247,100],"m":"call","oa":25847,"o":"printCharDouble"},{"a":31733,"t":"code","b":[201],"m":"ret"},{"a":31734,"l":"markPos","c":"The mark's place: column 0, row 2 x ($5D72) + 2.","t":"code","b":[58,114,93],"m":"ld","oa":23922,"o":"a,($5D72)","x":[31710,31719]},{"a":31737,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":31739,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":31741,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":31744,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31745,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":31748,"t":"code","b":[201],"m":"ret"},{"a":31749,"l":"dropForced","c":"Drop what the unit holds without asking ($5D90 set).","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[27779]},{"a":31751,"t":"code","b":[50,144,93],"m":"ld","oa":23952,"o":"($5D90),a"},{"a":31754,"l":"dropItem","c":"Option 4, drop what the unit holds, for a tenth of its most action points: the object left on its square with the floor under it. On terrain whose $08 is 9, which takes objects smaller than its $09, the player is asked first. Then the largest object on the square (objectAt) is what the unit stands on, and its load is worked out again.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":31757,"t":"code","b":[6,10],"m":"ld","o":"b,$0A"},{"a":31759,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":31762,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":31763,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":31766,"t":"code","b":[216],"m":"ret","o":"c"},{"a":31767,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":31770,"t":"code","b":[34,58,93],"m":"ld","oa":23866,"o":"($5D3A),hl"},{"a":31773,"t":"code","b":[205,74,107],"m":"call","oa":27466,"o":"floorAt"},{"a":31776,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":31779,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":31782,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":31785,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":31788,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":31791,"t":"code","b":[50,231,93],"m":"ld","oa":24039,"o":"($5DE7),a"},{"a":31794,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31795,"t":"code","b":[221,119,23],"m":"ld","o":"(ix+$17),a"},{"a":31798,"t":"code","b":[221,119,35],"m":"ld","o":"(ix+$23),a"},{"a":31801,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":31804,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":31807,"t":"code","b":[253,117,1],"m":"ld","o":"(iy+$01),l"},{"a":31810,"t":"code","b":[253,116,2],"m":"ld","o":"(iy+$02),h"},{"a":31813,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31814,"t":"code","b":[253,119,5],"m":"ld","o":"(iy+$05),a"},{"a":31817,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":31820,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":31823,"t":"code","b":[253,126,8],"m":"ld","o":"a,(iy+$08)"},{"a":31826,"t":"code","b":[254,9],"m":"cp","o":"$09"},{"a":31828,"t":"code","b":[32,49],"m":"jr","oa":31879,"o":"nz,$7C87"},{"a":31830,"t":"code","b":[58,144,93],"m":"ld","oa":23952,"o":"a,($5D90)"},{"a":31833,"t":"code","b":[183],"m":"or","o":"a"},{"a":31834,"t":"code","b":[32,43],"m":"jr","oa":31879,"o":"nz,$7C87"},{"a":31836,"t":"code","b":[58,231,93],"m":"ld","oa":24039,"o":"a,($5DE7)"},{"a":31839,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":31842,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":31845,"t":"code","b":[253,190,9],"m":"cp","o":"(iy+$09)"},{"a":31848,"t":"code","b":[48,29],"m":"jr","oa":31879,"o":"nc,$7C87"},{"a":31850,"t":"code","b":[205,238,105],"m":"call","oa":27118,"o":"menuOpen"},{"a":31853,"t":"code","b":[62,87],"m":"ld","o":"a,$57"},{"a":31855,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":31858,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31859,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":31862,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":31864,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":31867,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":31870,"t":"code","b":[205,196,104],"m":"call","oa":26820,"o":"menuSelect"},{"a":31873,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)"},{"a":31876,"t":"code","b":[183],"m":"or","o":"a"},{"a":31877,"t":"code","b":[32,17],"m":"jr","oa":31896,"o":"nz,$7C98"},{"a":31879,"t":"code","b":[175],"m":"xor","o":"a","x":[31828,31834,31848]},{"a":31880,"t":"code","b":[50,144,93],"m":"ld","oa":23952,"o":"($5D90),a"},{"a":31883,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":31886,"t":"code","b":[205,72,126],"m":"call","oa":32328,"o":"objectAt"},{"a":31889,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":31893,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":31896,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[31877]},{"a":31900,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":31903,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":31906,"t":"code","b":[205,146,126],"m":"call","oa":32402,"o":"updateLoad"},{"a":31909,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":31912,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":31915,"t":"code","b":[201],"m":"ret"},{"a":31916,"l":"pickUp","c":"Option 3, pick up, for a quarter of the unit's most action points (a half when its hands are full): the objects on its square listed, and the one chosen into its hands, if its weight ($01) and size ($02) with the rest of what it carries stay under the unit's strength ($14, against half the weight) and its own size ($26); messages $2B and $2C if not. Again while it has the points for another.","t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":31919,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":31921,"t":"code","b":[183],"m":"or","o":"a"},{"a":31922,"t":"code","b":[40,2],"m":"jr","oa":31926,"o":"z,$7CB6"},{"a":31924,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":31926,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)","x":[31922]},{"a":31929,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":31932,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":31933,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":31936,"t":"code","b":[216],"m":"ret","o":"c"},{"a":31937,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[32113]},{"a":31940,"t":"code","b":[62,42],"m":"ld","o":"a,$2A"},{"a":31942,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":31945,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":31948,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":31951,"t":"code","b":[205,201,122],"m":"call","oa":31433,"o":"showCarried"},{"a":31954,"t":"code","b":[205,11,126],"m":"call","oa":32267,"o":"carriedLoad"},{"a":31957,"t":"code","b":[175],"m":"xor","o":"a"},{"a":31958,"t":"code","b":[50,114,93],"m":"ld","oa":23922,"o":"($5D72),a"},{"a":31961,"t":"code","b":[205,231,123],"m":"call","oa":31719,"o":"drawMark"},{"a":31964,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":31967,"t":"code","b":[205,149,123],"m":"call","oa":31637,"o":"chooseLoop"},{"a":31970,"t":"code","b":[58,114,93],"m":"ld","oa":23922,"o":"a,($5D72)"},{"a":31973,"t":"code","b":[183],"m":"or","o":"a"},{"a":31974,"t":"code","b":[202,116,125],"m":"jp","oa":32116,"o":"z,$7D74"},{"a":31977,"t":"code","b":[61],"m":"dec","o":"a"},{"a":31978,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":31979,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":31981,"t":"code","b":[33,121,91],"m":"ld","o":"hl,$5B79"},{"a":31984,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31985,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31986,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":31987,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":31988,"t":"code","b":[50,114,93],"m":"ld","oa":23922,"o":"($5D72),a"},{"a":31991,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":31994,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":31997,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":32000,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":32003,"t":"code","b":[221,70,2],"m":"ld","o":"b,(ix+$02)"},{"a":32006,"t":"code","b":[33,145,93],"m":"ld","o":"hl,$5D91"},{"a":32009,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32010,"t":"code","b":[56,117],"m":"jr","oa":32129,"o":"c,$7D81"},{"a":32012,"t":"code","b":[61],"m":"dec","o":"a"},{"a":32013,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":32015,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":32019,"t":"code","b":[221,190,20],"m":"cp","o":"(ix+$14)"},{"a":32022,"t":"code","b":[48,105],"m":"jr","oa":32129,"o":"nc,$7D81"},{"a":32024,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":32025,"t":"code","b":[33,146,93],"m":"ld","o":"hl,$5D92"},{"a":32028,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32029,"t":"code","b":[56,113],"m":"jr","oa":32144,"o":"c,$7D90"},{"a":32031,"t":"code","b":[61],"m":"dec","o":"a"},{"a":32032,"t":"code","b":[221,190,38],"m":"cp","o":"(ix+$26)"},{"a":32035,"t":"code","b":[48,107],"m":"jr","oa":32144,"o":"nc,$7D90"},{"a":32037,"t":"code","b":[58,114,93],"m":"ld","oa":23922,"o":"a,($5D72)"},{"a":32040,"t":"code","b":[221,119,23],"m":"ld","o":"(ix+$17),a"},{"a":32043,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":32046,"t":"code","b":[253,119,5],"m":"ld","o":"(iy+$05),a"},{"a":32049,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":32052,"t":"code","b":[221,119,35],"m":"ld","o":"(ix+$23),a"},{"a":32055,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":32058,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":32061,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":32064,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":32067,"t":"code","b":[58,77,109],"m":"ld","oa":27981,"o":"a,(apCost)"},{"a":32070,"t":"code","b":[221,134,34],"m":"add","o":"a,(ix+$22)"},{"a":32073,"t":"code","b":[221,119,34],"m":"ld","o":"(ix+$22),a"},{"a":32076,"t":"code","b":[205,146,126],"m":"call","oa":32402,"o":"updateLoad"},{"a":32079,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":32082,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":32085,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":32088,"t":"code","b":[205,72,126],"m":"call","oa":32328,"o":"objectAt"},{"a":32091,"t":"code","b":[40,23],"m":"jr","oa":32116,"o":"z,$7D74"},{"a":32093,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":32096,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":32098,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":32101,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":32104,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":32107,"t":"code","b":[145],"m":"sub","o":"c"},{"a":32108,"t":"code","b":[56,6],"m":"jr","oa":32116,"o":"c,$7D74"},{"a":32110,"t":"code","b":[50,53,93],"m":"ld","oa":23861,"o":"($5D35),a"},{"a":32113,"t":"code","b":[195,193,124],"m":"jp","oa":31937,"o":"$7CC1"},{"a":32116,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[31974,32091,32108]},{"a":32119,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":32122,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":32125,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":32128,"t":"code","b":[201],"m":"ret"},{"a":32129,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[32010,32022]},{"a":32132,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":32135,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":32138,"t":"code","b":[62,43],"m":"ld","o":"a,$2B"},{"a":32140,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":32143,"t":"code","b":[201],"m":"ret"},{"a":32144,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[32029,32035]},{"a":32147,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":32150,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":32153,"t":"code","b":[62,44],"m":"ld","o":"a,$2C"},{"a":32155,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":32158,"t":"code","b":[201],"m":"ret"},{"a":32159,"l":"floorUnder","c":"List from $5B79 the objects lying on the square in HL (L the row, H the column), at most ten, the way listCarried does, and $5D23 the floor under them. IX is kept.","t":"code","b":[221,229],"m":"push","o":"ix","x":[26725,26741,27507,27657,28471,30928,31948,32330]},{"a":32161,"t":"code","b":[34,147,93],"m":"ld","oa":23955,"o":"($5D93),hl"},{"a":32164,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32165,"t":"code","b":[50,143,93],"m":"ld","oa":23951,"o":"($5D8F),a"},{"a":32168,"t":"code","b":[33,121,91],"m":"ld","o":"hl,$5B79"},{"a":32171,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":32174,"t":"code","b":[17,122,91],"m":"ld","o":"de,$5B7A"},{"a":32177,"t":"code","b":[1,29,0],"m":"ld","o":"bc,$001D"},{"a":32180,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":32182,"t":"code","b":[237,176],"m":"ldir"},{"a":32184,"t":"code","b":[221,42,42,183],"m":"ld","oa":46890,"o":"ix,($B72A)"},{"a":32188,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":32191,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32192,"t":"code","b":[33,121,91],"m":"ld","o":"hl,$5B79"},{"a":32195,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)","x":[32262]},{"a":32198,"t":"code","b":[183],"m":"or","o":"a"},{"a":32199,"t":"code","b":[32,56],"m":"jr","oa":32257,"o":"nz,$7E01"},{"a":32201,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":32204,"t":"code","b":[183],"m":"or","o":"a"},{"a":32205,"t":"code","b":[40,50],"m":"jr","oa":32257,"o":"z,$7E01"},{"a":32207,"t":"code","b":[58,147,93],"m":"ld","oa":23955,"o":"a,($5D93)"},{"a":32210,"t":"code","b":[221,190,1],"m":"cp","o":"(ix+$01)"},{"a":32213,"t":"code","b":[32,42],"m":"jr","oa":32257,"o":"nz,$7E01"},{"a":32215,"t":"code","b":[58,148,93],"m":"ld","oa":23956,"o":"a,($5D94)"},{"a":32218,"t":"code","b":[221,190,2],"m":"cp","o":"(ix+$02)"},{"a":32221,"t":"code","b":[32,34],"m":"jr","oa":32257,"o":"nz,$7E01"},{"a":32223,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":32226,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32227,"t":"code","b":[144],"m":"sub","o":"b"},{"a":32228,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32229,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32230,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":32233,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32234,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32235,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":32238,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32239,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32240,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":32243,"t":"code","b":[50,35,93],"m":"ld","oa":23843,"o":"($5D23),a"},{"a":32246,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":32249,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32250,"t":"code","b":[50,143,93],"m":"ld","oa":23951,"o":"($5D8F),a"},{"a":32253,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":32255,"t":"code","b":[40,7],"m":"jr","oa":32264,"o":"z,$7E08"},{"a":32257,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006","x":[32199,32205,32213,32221]},{"a":32260,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":32262,"t":"code","b":[16,187],"m":"djnz","oa":32195,"o":"$7DC3"},{"a":32264,"t":"code","b":[221,225],"m":"pop","o":"ix","x":[32255]},{"a":32266,"t":"code","b":[201],"m":"ret"},{"a":32267,"l":"carriedLoad","c":"The weight ($5D91) and size ($5D92) of everything unit ($5D26) carries. IX is kept.","t":"code","b":[221,229],"m":"push","o":"ix","x":[31954,32402,41220]},{"a":32269,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32270,"t":"code","b":[50,145,93],"m":"ld","oa":23953,"o":"($5D91),a"},{"a":32273,"t":"code","b":[50,146,93],"m":"ld","oa":23954,"o":"($5D92),a"},{"a":32276,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":32279,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32280,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":32284,"t":"code","b":[197],"m":"push","o":"bc","x":[32323]},{"a":32285,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":32288,"t":"code","b":[253,190,5],"m":"cp","o":"(iy+$05)"},{"a":32291,"t":"code","b":[32,24],"m":"jr","oa":32317,"o":"nz,$7E3D"},{"a":32293,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":32296,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":32299,"t":"code","b":[58,145,93],"m":"ld","oa":23953,"o":"a,($5D91)"},{"a":32302,"t":"code","b":[221,134,1],"m":"add","o":"a,(ix+$01)"},{"a":32305,"t":"code","b":[50,145,93],"m":"ld","oa":23953,"o":"($5D91),a"},{"a":32308,"t":"code","b":[58,146,93],"m":"ld","oa":23954,"o":"a,($5D92)"},{"a":32311,"t":"code","b":[221,134,2],"m":"add","o":"a,(ix+$02)"},{"a":32314,"t":"code","b":[50,146,93],"m":"ld","oa":23954,"o":"($5D92),a"},{"a":32317,"t":"code","b":[193],"m":"pop","o":"bc","x":[32291]},{"a":32318,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":32321,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":32323,"t":"code","b":[16,215],"m":"djnz","oa":32284,"o":"$7E1C"},{"a":32325,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":32327,"t":"code","b":[201],"m":"ret"},{"a":32328,"l":"objectAt","c":"A = the kind of the largest object (its $02) lying on the square in HL, which is the one the map shows; 0, and Z, for none.","t":"code","b":[221,229],"m":"push","o":"ix","x":[31886,32088,39322]},{"a":32330,"t":"code","b":[205,159,125],"m":"call","oa":32159,"o":"floorUnder"},{"a":32333,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":32336,"t":"code","b":[183],"m":"or","o":"a"},{"a":32337,"t":"code","b":[40,60],"m":"jr","oa":32399,"o":"z,$7E8F"},{"a":32339,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32340,"t":"code","b":[50,149,93],"m":"ld","oa":23957,"o":"($5D95),a"},{"a":32343,"t":"code","b":[33,122,91],"m":"ld","o":"hl,$5B7A"},{"a":32346,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":32349,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":32352,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":32353,"t":"code","b":[197],"m":"push","o":"bc","x":[32393]},{"a":32354,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":32357,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32358,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":32361,"t":"code","b":[58,149,93],"m":"ld","oa":23957,"o":"a,($5D95)"},{"a":32364,"t":"code","b":[221,190,2],"m":"cp","o":"(ix+$02)"},{"a":32367,"t":"code","b":[48,13],"m":"jr","oa":32382,"o":"nc,$7E7E"},{"a":32369,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":32372,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32373,"t":"code","b":[50,150,93],"m":"ld","oa":23958,"o":"($5D96),a"},{"a":32376,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":32379,"t":"code","b":[50,149,93],"m":"ld","oa":23957,"o":"($5D95),a"},{"a":32382,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)","x":[32367]},{"a":32385,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":32388,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":32389,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":32392,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":32393,"t":"code","b":[16,214],"m":"djnz","oa":32353,"o":"$7E61"},{"a":32395,"t":"code","b":[58,150,93],"m":"ld","oa":23958,"o":"a,($5D96)"},{"a":32398,"t":"code","b":[183],"m":"or","o":"a"},{"a":32399,"t":"code","b":[221,225],"m":"pop","o":"ix","x":[32337]},{"a":32401,"t":"code","b":[201],"m":"ret"},{"a":32402,"l":"updateLoad","c":"The unit's load slows it: $19 is half of its own most action points ($1B) times the weight it carries over its strength ($14), each step rounded (div32, div32Round); its most action points ($05) are $1B less that, and its points are cut to them.","t":"code","b":[205,11,126],"m":"call","oa":32267,"o":"carriedLoad","x":[24281,31906,32076]},{"a":32405,"t":"code","b":[58,145,93],"m":"ld","oa":23953,"o":"a,($5D91)"},{"a":32408,"t":"code","b":[183],"m":"or","o":"a"},{"a":32409,"t":"code","b":[32,4],"m":"jr","oa":32415,"o":"nz,$7E9F"},{"a":32411,"t":"code","b":[221,119,25],"m":"ld","o":"(ix+$19),a"},{"a":32414,"t":"code","b":[201],"m":"ret"},{"a":32415,"t":"code","b":[221,126,20],"m":"ld","o":"a,(ix+$14)","x":[32409]},{"a":32418,"t":"code","b":[33,145,93],"m":"ld","o":"hl,$5D91"},{"a":32421,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":32422,"t":"code","b":[205,59,148],"m":"call","oa":37947,"o":"div32"},{"a":32425,"t":"code","b":[221,126,27],"m":"ld","o":"a,(ix+$1B)"},{"a":32428,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":32429,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":32431,"t":"code","b":[205,82,148],"m":"call","oa":37970,"o":"div32Round"},{"a":32434,"t":"code","b":[167],"m":"and","o":"a"},{"a":32435,"t":"code","b":[203,26],"m":"rr","o":"d"},{"a":32437,"t":"code","b":[203,27],"m":"rr","o":"e"},{"a":32439,"t":"code","b":[221,115,25],"m":"ld","o":"(ix+$19),e"},{"a":32442,"t":"code","b":[221,126,27],"m":"ld","o":"a,(ix+$1B)"},{"a":32445,"t":"code","b":[221,150,25],"m":"sub","o":"(ix+$19)"},{"a":32448,"t":"code","b":[221,119,5],"m":"ld","o":"(ix+$05),a"},{"a":32451,"t":"code","b":[221,190,6],"m":"cp","o":"(ix+$06)"},{"a":32454,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":32455,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":32458,"t":"code","b":[201],"m":"ret"},{"a":32459,"l":"moveDir","c":"A step the way A. Off the map: Z. Then by what stepCost found in $5D29: stepping back onto a unit, or 3, nothing; 0, an enemy ahead, close combat ($80CD); 1, $7F0B; 5, the step (makeStep) and the panel; anything else, message $14 and the unit's numbers. NZ while the unit can go on.","t":"code","b":[205,116,110],"m":"call","oa":28276,"o":"stepTarget","x":[28252,28272]},{"a":32462,"t":"code","b":[200],"m":"ret","o":"z"},{"a":32463,"t":"code","b":[205,191,110],"m":"call","oa":28351,"o":"stepCost"},{"a":32466,"t":"code","b":[58,56,93],"m":"ld","oa":23864,"o":"a,($5D38)"},{"a":32469,"t":"code","b":[183],"m":"or","o":"a"},{"a":32470,"t":"code","b":[40,7],"m":"jr","oa":32479,"o":"z,$7EDF"},{"a":32472,"t":"code","b":[58,41,93],"m":"ld","oa":23849,"o":"a,($5D29)"},{"a":32475,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":32477,"t":"code","b":[56,40],"m":"jr","oa":32519,"o":"c,$7F07"},{"a":32479,"t":"code","b":[58,41,93],"m":"ld","oa":23849,"o":"a,($5D29)","x":[32470]},{"a":32482,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":32484,"t":"code","b":[40,33],"m":"jr","oa":32519,"o":"z,$7F07"},{"a":32486,"t":"code","b":[183],"m":"or","o":"a"},{"a":32487,"t":"code","b":[202,205,128],"m":"jp","oa":32973,"o":"z,closeCombat"},{"a":32490,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":32492,"t":"code","b":[202,11,127],"m":"jp","oa":32523,"o":"z,attackTerrain"},{"a":32495,"t":"code","b":[254,5],"m":"cp","o":"$05"},{"a":32497,"t":"code","b":[32,9],"m":"jr","oa":32508,"o":"nz,$7EFC"},{"a":32499,"t":"code","b":[205,137,111],"m":"call","oa":28553,"o":"makeStep"},{"a":32502,"t":"code","b":[245],"m":"push","o":"af"},{"a":32503,"t":"code","b":[205,188,107],"m":"call","oa":27580,"o":"unitPanel"},{"a":32506,"t":"code","b":[241],"m":"pop","o":"af"},{"a":32507,"t":"code","b":[201],"m":"ret"},{"a":32508,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView","x":[32497]},{"a":32511,"t":"code","b":[62,20],"m":"ld","o":"a,$14"},{"a":32513,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":32516,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":32519,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[32477,32484]},{"a":32521,"t":"code","b":[183],"m":"or","o":"a"},{"a":32522,"t":"code","b":[201],"m":"ret"},{"a":32523,"l":"attackTerrain","c":"Close combat against the terrain in front ($5D29 is 1): the attack's strength and price (attackStats; too few points, message $2D), the damage rolled, the terrain broken by it and the square drawn again, victory points for the damage, the fires it starts ($99E8), then the view centred on the unit, the enemies it sees, the reactions to it and whether the game is over. NZ while the unit can go on.","t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)","x":[32492]},{"a":32526,"t":"code","b":[183],"m":"or","o":"a"},{"a":32527,"t":"code","b":[204,74,100],"m":"call","oa":25674,"o":"z,eraseCursor"},{"a":32530,"t":"code","b":[205,193,127],"m":"call","oa":32705,"o":"attackStats"},{"a":32533,"t":"code","b":[56,94],"m":"jr","oa":32629,"o":"c,noPoints"},{"a":32535,"t":"code","b":[205,149,128],"m":"call","oa":32917,"o":"attackRoll"},{"a":32538,"t":"code","b":[205,207,153],"m":"call","oa":39375,"o":"clearFires"},{"a":32541,"t":"code","b":[205,48,128],"m":"call","oa":32816,"o":"breakTerrain"},{"a":32544,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":32547,"t":"code","b":[183],"m":"or","o":"a"},{"a":32548,"t":"code","b":[204,152,127],"m":"call","oa":32664,"o":"z,blowShow"},{"a":32551,"t":"code","b":[237,91,58,93],"m":"ld","oa":23866,"o":"de,($5D3A)"},{"a":32555,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":32558,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":32561,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32562,"t":"code","b":[205,1,146],"m":"call","oa":37377,"o":"scoreDamage"},{"a":32565,"t":"code","b":[58,54,93],"m":"ld","oa":23862,"o":"a,($5D36)"},{"a":32568,"t":"code","b":[183],"m":"or","o":"a"},{"a":32569,"t":"code","b":[204,42,97],"m":"call","oa":24874,"o":"z,drawView"},{"a":32572,"t":"code","b":[205,232,153],"m":"call","oa":39400,"o":"spreadFires"},{"a":32575,"c":"The view's corner put on the unit's square and the cursor at 0, so that centreOnUnit centres the view on it.","t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":32578,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":32581,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":32584,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":32587,"t":"code","b":[205,13,110],"m":"call","oa":28173,"o":"centreOnUnit"},{"a":32590,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":32594,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":32597,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":32600,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":32603,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":32606,"t":"code","b":[205,188,107],"m":"call","oa":27580,"o":"unitPanel"},{"a":32609,"t":"code","b":[205,93,117],"m":"call","oa":30045,"o":"startReaction"},{"a":32612,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":32615,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":32618,"t":"code","b":[183],"m":"or","o":"a"},{"a":32619,"t":"code","b":[200],"m":"ret","o":"z"},{"a":32620,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":32623,"t":"code","b":[183],"m":"or","o":"a"},{"a":32624,"t":"code","b":[200],"m":"ret","o":"z"},{"a":32625,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":32627,"t":"code","b":[183],"m":"or","o":"a"},{"a":32628,"t":"code","b":[201],"m":"ret"},{"a":32629,"l":"noPoints","c":"Too few action points for the attack: message $2D, the unit's numbers again, and $5D37 set. NZ.","t":"code","b":[62,45],"m":"ld","o":"a,$2D","x":[32533,32979]},{"a":32631,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":32634,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":32637,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":32639,"t":"code","b":[50,55,93],"m":"ld","oa":23863,"o":"($5D37),a"},{"a":32642,"t":"code","b":[183],"m":"or","o":"a"},{"a":32643,"t":"code","b":[201],"m":"ret"},{"a":32644,"l":"targetPos","c":"PRINT_ROW and PRINT_COL = the place on the screen of the map's square ($5D3A) in the view: twice its row and column in the view, plus one.","t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)","x":[32669,33649,33707]},{"a":32647,"t":"code","b":[237,91,252,92],"m":"ld","oa":23804,"o":"de,($5CFC)"},{"a":32651,"t":"code","b":[183],"m":"or","o":"a"},{"a":32652,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":32654,"t":"code","b":[203,36],"m":"sla","o":"h"},{"a":32656,"t":"code","b":[36],"m":"inc","o":"h"},{"a":32657,"t":"code","b":[203,37],"m":"sla","o":"l"},{"a":32659,"t":"code","b":[44],"m":"inc","o":"l"},{"a":32660,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":32663,"t":"code","b":[201],"m":"ret"},{"a":32664,"l":"blowShow","c":"The blow on the screen: sound effect 9, and over the square in front the scenario's tiles listed from $B64E to an $FF, in white, each with the sound played; then the square drawn again.","t":"code","b":[62,9],"m":"ld","o":"a,$09","x":[32548,32985,39772,39922]},{"a":32666,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":32669,"t":"code","b":[205,132,127],"m":"call","oa":32644,"o":"targetPos"},{"a":32672,"t":"code","b":[33,78,182],"m":"ld","o":"hl,$B64E"},{"a":32675,"t":"code","b":[62,71],"m":"ld","o":"a,$47"},{"a":32677,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":32680,"t":"code","b":[229],"m":"push","o":"hl","x":[32694]},{"a":32681,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32682,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":32684,"t":"code","b":[40,10],"m":"jr","oa":32696,"o":"z,$7FB8"},{"a":32686,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":32689,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":32692,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":32693,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32694,"t":"code","b":[24,240],"m":"jr","oa":32680,"o":"$7FA8"},{"a":32696,"t":"code","b":[225],"m":"pop","o":"hl","x":[32684]},{"a":32697,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":32700,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32701,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":32704,"t":"code","b":[201],"m":"ret"},{"a":32705,"l":"attackStats","c":"The attack's strength in $5D98, its skill in $5D97 and its price in $5D9A: the unit's most action points ($05) over a divisor, rounded. $5D35 = the points left after, and C if they would run out. Armed: an object in its hands whose kind ($23) has bit 0 of its $00 set. The divisor is the kind's $04; the strength is the kind's $06 plus the unit's strength ($14) over the kind's $07; the skill the kind's $05 plus the unit's $15 over the kind's $08.","t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)","x":[32530,32976]},{"a":32708,"t":"code","b":[183],"m":"or","o":"a"},{"a":32709,"t":"code","b":[40,60],"m":"jr","oa":32771,"o":"z,$8003"},{"a":32711,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":32714,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":32717,"t":"code","b":[221,203,0,70],"m":"bit","o":"0,(ix+$00)"},{"a":32721,"t":"code","b":[40,48],"m":"jr","oa":32771,"o":"z,$8003"},{"a":32723,"t":"code","b":[221,126,4],"m":"ld","o":"a,(ix+$04)"},{"a":32726,"t":"code","b":[50,154,93],"m":"ld","oa":23962,"o":"($5D9A),a"},{"a":32729,"t":"code","b":[253,42,51,93],"m":"ld","oa":23859,"o":"iy,($5D33)"},{"a":32733,"t":"code","b":[253,126,20],"m":"ld","o":"a,(iy+$14)"},{"a":32736,"t":"code","b":[221,70,7],"m":"ld","o":"b,(ix+$07)"},{"a":32739,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":32742,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":32745,"t":"code","b":[129],"m":"add","o":"a,c"},{"a":32746,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":32749,"t":"code","b":[253,126,21],"m":"ld","o":"a,(iy+$15)"},{"a":32752,"t":"code","b":[221,70,8],"m":"ld","o":"b,(ix+$08)"},{"a":32755,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":32758,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":32761,"t":"code","b":[129],"m":"add","o":"a,c"},{"a":32762,"t":"code","b":[50,151,93],"m":"ld","oa":23959,"o":"($5D97),a"},{"a":32765,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":32769,"t":"code","b":[24,23],"m":"jr","oa":32794,"o":"$801A"},{"a":32771,"c":"Bare-handed: the divisor 5, the strength the unit's $13, the skill twice its $15.","t":"code","b":[62,5],"m":"ld","o":"a,$05","x":[32709,32721]},{"a":32773,"t":"code","b":[50,154,93],"m":"ld","oa":23962,"o":"($5D9A),a"},{"a":32776,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":32780,"t":"code","b":[221,126,19],"m":"ld","o":"a,(ix+$13)"},{"a":32783,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":32786,"t":"code","b":[221,126,21],"m":"ld","o":"a,(ix+$15)"},{"a":32789,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":32791,"t":"code","b":[50,151,93],"m":"ld","oa":23959,"o":"($5D97),a"},{"a":32794,"t":"code","b":[33,154,93],"m":"ld","o":"hl,$5D9A","x":[32769]},{"a":32797,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":32800,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":32801,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":32804,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":32805,"t":"code","b":[50,154,93],"m":"ld","oa":23962,"o":"($5D9A),a"},{"a":32808,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":32811,"t":"code","b":[145],"m":"sub","o":"c"},{"a":32812,"t":"code","b":[50,53,93],"m":"ld","oa":23861,"o":"($5D35),a"},{"a":32815,"t":"code","b":[201],"m":"ret"},{"a":32816,"l":"breakTerrain","c":"The terrain at ($5D3A) broken by a blow of strength $5D98. While the blow left ($5D99) is at least the terrain's $03, the square becomes the terrain's $04, the terrain's $07 is added to the damage done ($5D8C), and the blow loses the terrain's $05. $5D27 is the terrain left.","t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)","x":[32541,37183,39097]},{"a":32819,"t":"code","b":[50,153,93],"m":"ld","oa":23961,"o":"($5D99),a"},{"a":32822,"t":"code","b":[175],"m":"xor","o":"a"},{"a":32823,"t":"code","b":[50,140,93],"m":"ld","oa":23948,"o":"($5D8C),a"},{"a":32826,"t":"code","b":[205,74,107],"m":"call","oa":27466,"o":"floorAt"},{"a":32829,"t":"code","b":[50,39,93],"m":"ld","oa":23847,"o":"($5D27),a"},{"a":32832,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)","x":[32915]},{"a":32835,"t":"code","b":[183],"m":"or","o":"a"},{"a":32836,"t":"code","b":[200],"m":"ret","o":"z"},{"a":32837,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":32840,"t":"code","b":[58,153,93],"m":"ld","oa":23961,"o":"a,($5D99)"},{"a":32843,"t":"code","b":[253,190,3],"m":"cp","o":"(iy+$03)"},{"a":32846,"t":"code","b":[216],"m":"ret","o":"c"},{"a":32847,"t":"code","b":[58,140,93],"m":"ld","oa":23948,"o":"a,($5D8C)"},{"a":32850,"t":"code","b":[253,134,7],"m":"add","o":"a,(iy+$07)"},{"a":32853,"t":"code","b":[50,140,93],"m":"ld","oa":23948,"o":"($5D8C),a"},{"a":32856,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":32859,"t":"code","b":[50,39,93],"m":"ld","oa":23847,"o":"($5D27),a"},{"a":32862,"c":"Terrain whose $08 is 7 catches fire: its $09 and the square go in the entry of the list of fires at ($5DF3) when that is free, and ($5DF3) moves on, round to $5CB3 at the $FF that ends the list.","t":"code","b":[253,126,8],"m":"ld","o":"a,(iy+$08)"},{"a":32865,"t":"code","b":[254,7],"m":"cp","o":"$07"},{"a":32867,"t":"code","b":[32,36],"m":"jr","oa":32905,"o":"nz,$8089"},{"a":32869,"t":"code","b":[42,243,93],"m":"ld","oa":24051,"o":"hl,($5DF3)"},{"a":32872,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32873,"t":"code","b":[183],"m":"or","o":"a"},{"a":32874,"t":"code","b":[32,29],"m":"jr","oa":32905,"o":"nz,$8089"},{"a":32876,"t":"code","b":[253,126,9],"m":"ld","o":"a,(iy+$09)"},{"a":32879,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32880,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":32883,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32884,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32885,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":32888,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32889,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":32890,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32891,"t":"code","b":[34,243,93],"m":"ld","oa":24051,"o":"($5DF3),hl"},{"a":32894,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":32895,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":32897,"t":"code","b":[32,6],"m":"jr","oa":32905,"o":"nz,$8089"},{"a":32899,"t":"code","b":[33,179,92],"m":"ld","o":"hl,$5CB3"},{"a":32902,"t":"code","b":[34,243,93],"m":"ld","oa":24051,"o":"($5DF3),hl"},{"a":32905,"t":"code","b":[58,153,93],"m":"ld","oa":23961,"o":"a,($5D99)","x":[32867,32874,32897]},{"a":32908,"t":"code","b":[253,150,5],"m":"sub","o":"(iy+$05)"},{"a":32911,"t":"code","b":[216],"m":"ret","o":"c"},{"a":32912,"t":"code","b":[50,153,93],"m":"ld","oa":23961,"o":"($5D99),a"},{"a":32915,"t":"code","b":[24,171],"m":"jr","oa":32832,"o":"$8040"},{"a":32917,"l":"attackRoll","c":"The damage of the blow, in $5D98: a random number from 0 to the strength, plus half the strength; at most $FF.","t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)","x":[32535,32982,37163]},{"a":32920,"t":"code","b":[60],"m":"inc","o":"a"},{"a":32921,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":32924,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":32927,"t":"code","b":[33,152,93],"m":"ld","o":"hl,$5D98"},{"a":32930,"t":"code","b":[203,62],"m":"srl","o":"(hl)"},{"a":32932,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32933,"t":"code","b":[56,4],"m":"jr","oa":32939,"o":"c,$80AB"},{"a":32935,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":32938,"t":"code","b":[201],"m":"ret"},{"a":32939,"t":"code","b":[62,255],"m":"ld","o":"a,$FF","x":[32933]},{"a":32941,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":32944,"t":"code","b":[201],"m":"ret"},{"a":32945,"l":"random","c":"A = a random number below ($5D9B): the refresh register R, plus the byte at ($5D9D), which moves on a byte each try, plus $5D9C, the count of the turns of the waits for a key. Tried again until it is below. HL is kept. With ($5D9B) 0 the RET Z returns to the address in HL, still on the stack. The limits the game gives are never 0.","t":"code","b":[229],"m":"push","o":"hl","x":[27746,32924,33117,35805,35860,36936,41742,41757]},{"a":32946,"t":"code","b":[58,155,93],"m":"ld","oa":23963,"o":"a,($5D9B)"},{"a":32949,"t":"code","b":[183],"m":"or","o":"a"},{"a":32950,"t":"code","b":[200],"m":"ret","o":"z"},{"a":32951,"t":"code","b":[237,95],"m":"ld","o":"a,r","x":[32969]},{"a":32953,"t":"code","b":[42,157,93],"m":"ld","oa":23965,"o":"hl,($5D9D)"},{"a":32956,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":32957,"t":"code","b":[34,157,93],"m":"ld","oa":23965,"o":"($5D9D),hl"},{"a":32960,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32961,"t":"code","b":[33,156,93],"m":"ld","o":"hl,$5D9C"},{"a":32964,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":32965,"t":"code","b":[33,155,93],"m":"ld","o":"hl,$5D9B"},{"a":32968,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":32969,"t":"code","b":[48,236],"m":"jr","oa":32951,"o":"nc,$80B7"},{"a":32971,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":32972,"t":"code","b":[201],"m":"ret"},{"a":32973,"l":"closeCombat","c":"Close combat against the enemy in front ($5D29 is 0, its record at $5D3C): the attack's strength and price (too few points, message $2D), the damage rolled and the blow drawn; then the readout: message $3E, the weapon's name (message $3F bare-handed), the chance, the points it costs, and the side it lands on (message $40 plus $5D9F).","t":"code","b":[205,74,100],"m":"call","oa":25674,"o":"eraseCursor","x":[32487]},{"a":32976,"t":"code","b":[205,193,127],"m":"call","oa":32705,"o":"attackStats"},{"a":32979,"t":"code","b":[218,117,127],"m":"jp","oa":32629,"o":"c,noPoints"},{"a":32982,"t":"code","b":[205,149,128],"m":"call","oa":32917,"o":"attackRoll"},{"a":32985,"t":"code","b":[205,152,127],"m":"call","oa":32664,"o":"blowShow"},{"a":32988,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":32991,"t":"code","b":[62,62],"m":"ld","o":"a,$3E"},{"a":32993,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":32996,"t":"code","b":[33,1,24],"m":"ld","o":"hl,$1801"},{"a":32999,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":33002,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":33005,"t":"code","b":[183],"m":"or","o":"a"},{"a":33006,"t":"code","b":[40,9],"m":"jr","oa":33017,"o":"z,$80F9"},{"a":33008,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":33011,"t":"code","b":[221,203,0,70],"m":"bit","o":"0,(ix+$00)"},{"a":33015,"t":"code","b":[32,7],"m":"jr","oa":33024,"o":"nz,$8100"},{"a":33017,"t":"code","b":[62,63],"m":"ld","o":"a,$3F","x":[33006]},{"a":33019,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":33022,"t":"code","b":[24,13],"m":"jr","oa":33037,"o":"$810D"},{"a":33024,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[33015]},{"a":33028,"t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)"},{"a":33031,"t":"code","b":[33,1,24],"m":"ld","o":"hl,$1801"},{"a":33034,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":33037,"c":"The chance is the skill less the defender's $15, all of it from in front, half from the side and a quarter from behind (armourHit finds the side). It is shown with a '%'.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[33022]},{"a":33041,"t":"code","b":[205,162,129],"m":"call","oa":33186,"o":"armourHit"},{"a":33044,"t":"code","b":[58,159,93],"m":"ld","oa":23967,"o":"a,($5D9F)"},{"a":33047,"t":"code","b":[221,70,21],"m":"ld","o":"b,(ix+$15)"},{"a":33050,"t":"code","b":[183],"m":"or","o":"a"},{"a":33051,"t":"code","b":[40,8],"m":"jr","oa":33061,"o":"z,$8125"},{"a":33053,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":33055,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":33057,"t":"code","b":[32,2],"m":"jr","oa":33061,"o":"nz,$8125"},{"a":33059,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":33061,"t":"code","b":[58,151,93],"m":"ld","oa":23959,"o":"a,($5D97)","x":[33051,33057]},{"a":33064,"t":"code","b":[144],"m":"sub","o":"b"},{"a":33065,"t":"code","b":[48,1],"m":"jr","oa":33068,"o":"nc,$812C"},{"a":33067,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33068,"t":"code","b":[50,151,93],"m":"ld","oa":23959,"o":"($5D97),a","x":[33065]},{"a":33071,"t":"code","b":[33,7,24],"m":"ld","o":"hl,$1807"},{"a":33074,"t":"code","b":[205,55,131],"m":"call","oa":33591,"o":"printPercent"},{"a":33077,"t":"code","b":[33,11,24],"m":"ld","o":"hl,$180B"},{"a":33080,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":33083,"t":"code","b":[58,154,93],"m":"ld","oa":23962,"o":"a,($5D9A)"},{"a":33086,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":33089,"t":"code","b":[33,20,24],"m":"ld","o":"hl,$1814"},{"a":33092,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":33095,"t":"code","b":[58,159,93],"m":"ld","oa":23967,"o":"a,($5D9F)"},{"a":33098,"t":"code","b":[198,64],"m":"add","o":"a,$40"},{"a":33100,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":33103,"t":"code","b":[33,15,24],"m":"ld","o":"hl,$180F"},{"a":33106,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":33109,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":33112,"c":"A random number from 0 to 99 below the chance is a hit: the damage shown and taken off, the views and the bottom line drawn again, the death of a defender left with no health, sound effect 3. Otherwise message $44, a miss.","t":"code","b":[62,100],"m":"ld","o":"a,$64"},{"a":33114,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":33117,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":33120,"t":"code","b":[33,151,93],"m":"ld","o":"hl,$5D97"},{"a":33123,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":33124,"t":"code","b":[56,7],"m":"jr","oa":33133,"o":"c,$816D"},{"a":33126,"t":"code","b":[62,68],"m":"ld","o":"a,$44"},{"a":33128,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":33131,"t":"code","b":[24,33],"m":"jr","oa":33166,"o":"$818E"},{"a":33133,"t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)","x":[33124]},{"a":33136,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":33139,"t":"code","b":[205,113,131],"m":"call","oa":33649,"o":"hitShow"},{"a":33142,"t":"code","b":[205,251,129],"m":"call","oa":33275,"o":"takeDamage"},{"a":33145,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":33148,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":33151,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":33154,"t":"code","b":[183],"m":"or","o":"a"},{"a":33155,"t":"code","b":[204,166,131],"m":"call","oa":33702,"o":"z,deathShow"},{"a":33158,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":33161,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":33163,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":33166,"c":"A pause, the points paid, and whether the game is over, whose flags are returned.","t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause","x":[33131]},{"a":33169,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":33173,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":33176,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":33179,"t":"code","b":[205,96,131],"m":"call","oa":33632,"o":"stillAble"},{"a":33182,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":33185,"t":"code","b":[201],"m":"ret"},{"a":33186,"l":"armourHit","c":"The blow against the defender ($5D3C). The floor it stands on takes its $06 off the strength: below nothing, no damage, and IX stays the attacker. Then the side of the defender it lands on, $5D9F (inView from the attacker's square $5D24: 0 the front, 1 the right, 2 behind, 3 the left); the defender's armour on that side ($0D, $0E, $0F or $10) takes its value off the damage, and loses half of what is left. The damage is at most the defender's health ($08). IX = the defender.","t":"code","b":[205,74,107],"m":"call","oa":27466,"o":"floorAt","x":[33041,37251,39201]},{"a":33189,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":33192,"t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)"},{"a":33195,"t":"code","b":[253,150,6],"m":"sub","o":"(iy+$06)"},{"a":33198,"t":"code","b":[56,70],"m":"jr","oa":33270,"o":"c,$81F6"},{"a":33200,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":33203,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":33206,"t":"code","b":[34,73,93],"m":"ld","oa":23881,"o":"($5D49),hl"},{"a":33209,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":33212,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":33215,"t":"code","b":[221,42,60,93],"m":"ld","oa":23868,"o":"ix,($5D3C)"},{"a":33219,"t":"code","b":[205,38,115],"m":"call","oa":29478,"o":"inView"},{"a":33222,"t":"code","b":[50,159,93],"m":"ld","oa":23967,"o":"($5D9F),a"},{"a":33225,"t":"code","b":[42,60,93],"m":"ld","oa":23868,"o":"hl,($5D3C)"},{"a":33228,"t":"code","b":[17,13,0],"m":"ld","o":"de,$000D"},{"a":33231,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33232,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33234,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":33235,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33236,"t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)"},{"a":33239,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":33240,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":33243,"t":"code","b":[56,25],"m":"jr","oa":33270,"o":"c,$81F6"},{"a":33245,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33246,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":33248,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33249,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33250,"t":"code","b":[144],"m":"sub","o":"b"},{"a":33251,"t":"code","b":[48,1],"m":"jr","oa":33254,"o":"nc,$81E6"},{"a":33253,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33254,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[33251]},{"a":33255,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":33258,"t":"code","b":[33,152,93],"m":"ld","o":"hl,$5D98"},{"a":33261,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":33262,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":33263,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":33266,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":33269,"t":"code","b":[201],"m":"ret"},{"a":33270,"c":"No damage: $5D98 = 0.","t":"code","b":[175],"m":"xor","o":"a","x":[33198,33243]},{"a":33271,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":33274,"t":"code","b":[201],"m":"ret"},{"a":33275,"l":"takeDamage","c":"The damage ($5D98) off the health ($08) of the unit at IX. Left with none it dies ($8229).","t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)","x":[33142,37257,39204]},{"a":33278,"t":"code","b":[33,152,93],"m":"ld","o":"hl,$5D98"},{"a":33281,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":33282,"t":"code","b":[221,119,8],"m":"ld","o":"(ix+$08),a"},{"a":33285,"t":"code","b":[183],"m":"or","o":"a"},{"a":33286,"t":"code","b":[40,33],"m":"jr","oa":33321,"o":"z,unitDies"},{"a":33288,"t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)"},{"a":33291,"t":"code","b":[183],"m":"or","o":"a"},{"a":33292,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33293,"c":"BIT 4,(IX+$25) then OR A: the OR sets the flags again by the damage, which is not 0 here, so the RET NZ is always taken.","t":"code","b":[221,203,37,102],"m":"bit","o":"4,(ix+$25)"},{"a":33297,"t":"code","b":[183],"m":"or","o":"a"},{"a":33298,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":33299,"c":"Never reached: a unit hurt and in play was to lose morale ($0C), its morale over its most health ($07) over the damage, rounded.","t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33300,"t":"code","b":[221,126,7],"m":"ld","o":"a,(ix+$07)"},{"a":33303,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":33306,"t":"code","b":[221,126,12],"m":"ld","o":"a,(ix+$0C)"},{"a":33309,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":33310,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":33313,"t":"code","b":[221,126,12],"m":"ld","o":"a,(ix+$0C)"},{"a":33316,"t":"code","b":[145],"m":"sub","o":"c"},{"a":33317,"t":"code","b":[221,119,12],"m":"ld","o":"(ix+$0C),a"},{"a":33320,"t":"code","b":[201],"m":"ret"},{"a":33321,"l":"unitDies","c":"The unit at IX ($5D39 its number on the map) dies. It leaves the table of units; what it carries is left on its square ($5D3A, on the floor in $5D23), and destroyed when its $25 has bit 3 set. Its square becomes its body ($03), which is added to the scenario's objects. The other side scores its $27 in victory points, morale moves on both sides by its $01 ($829E), and $98AE = $6E.","t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)","x":[33286]},{"a":33324,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":33326,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":33328,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":33329,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":33330,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":33331,"t":"code","b":[17,80,92],"m":"ld","o":"de,$5C50"},{"a":33334,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33335,"t":"code","b":[54,3],"m":"ld","o":"(hl),$03"},{"a":33337,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":33341,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":33344,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33345,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":33348,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)","x":[33390]},{"a":33351,"t":"code","b":[253,190,5],"m":"cp","o":"(iy+$05)"},{"a":33354,"t":"code","b":[32,32],"m":"jr","oa":33388,"o":"nz,$826C"},{"a":33356,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":33359,"t":"code","b":[253,119,1],"m":"ld","o":"(iy+$01),a"},{"a":33362,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":33365,"t":"code","b":[253,119,2],"m":"ld","o":"(iy+$02),a"},{"a":33368,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":33371,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":33374,"t":"code","b":[253,54,5,0],"m":"ld","o":"(iy+$05),$00"},{"a":33378,"t":"code","b":[221,203,37,94],"m":"bit","o":"3,(ix+$25)"},{"a":33382,"t":"code","b":[40,4],"m":"jr","oa":33388,"o":"z,$826C"},{"a":33384,"t":"code","b":[253,54,0,0],"m":"ld","o":"(iy+$00),$00"},{"a":33388,"t":"code","b":[253,25],"m":"add","o":"iy,de","x":[33354,33382]},{"a":33390,"t":"code","b":[16,212],"m":"djnz","oa":33348,"o":"$8244"},{"a":33392,"t":"code","b":[221,126,3],"m":"ld","o":"a,(ix+$03)"},{"a":33395,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":33398,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33399,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":33401,"t":"code","b":[205,11,131],"m":"call","oa":33547,"o":"addObject"},{"a":33404,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)"},{"a":33407,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":33409,"t":"code","b":[238,1],"m":"xor","o":"$01"},{"a":33411,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33413,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":33414,"t":"code","b":[50,160,93],"m":"ld","oa":23968,"o":"($5DA0),a"},{"a":33417,"t":"code","b":[33,15,183],"m":"ld","o":"hl,$B70F"},{"a":33420,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33421,"t":"code","b":[221,126,39],"m":"ld","o":"a,(ix+$27)"},{"a":33424,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":33425,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33426,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":33429,"t":"code","b":[205,158,130],"m":"call","oa":33438,"o":"moraleShock"},{"a":33432,"t":"code","b":[62,110],"m":"ld","o":"a,$6E"},{"a":33434,"t":"code","b":[50,174,152],"m":"ld","oa":39086,"o":"(lastSquare),a"},{"a":33437,"t":"code","b":[201],"m":"ret"},{"a":33438,"l":"moraleShock","c":"Morale after a loss: every unit in play ($25 bit 4 clear) of side $5DA0 gains A ($5DA1) of morale ($0C), up to its most ($0B); every unit of the other side loses as much. IX is kept.","t":"code","b":[221,229],"m":"push","o":"ix","x":[33429,37398,37422]},{"a":33440,"t":"code","b":[50,161,93],"m":"ld","oa":23969,"o":"($5DA1),a"},{"a":33443,"t":"code","b":[33,159,211],"m":"ld","o":"hl,$D39F"},{"a":33446,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":33449,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":33451,"t":"code","b":[197],"m":"push","o":"bc","x":[33508]},{"a":33452,"t":"code","b":[221,42,109,93],"m":"ld","oa":23917,"o":"ix,($5D6D)"},{"a":33456,"t":"code","b":[221,203,37,102],"m":"bit","o":"4,(ix+$25)"},{"a":33460,"t":"code","b":[32,35],"m":"jr","oa":33497,"o":"nz,$82D9"},{"a":33462,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)"},{"a":33465,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":33467,"t":"code","b":[33,160,93],"m":"ld","o":"hl,$5DA0"},{"a":33470,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":33471,"t":"code","b":[32,13],"m":"jr","oa":33486,"o":"nz,$82CE"},{"a":33473,"t":"code","b":[6,12],"m":"ld","o":"b,$0C"},{"a":33475,"t":"code","b":[58,161,93],"m":"ld","oa":23969,"o":"a,($5DA1)"},{"a":33478,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":33481,"t":"code","b":[205,233,130],"m":"call","oa":33513,"o":"moraleUp"},{"a":33484,"t":"code","b":[24,11],"m":"jr","oa":33497,"o":"$82D9"},{"a":33486,"t":"code","b":[6,12],"m":"ld","o":"b,$0C","x":[33471]},{"a":33488,"t":"code","b":[58,161,93],"m":"ld","oa":23969,"o":"a,($5DA1)"},{"a":33491,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":33494,"t":"code","b":[205,253,130],"m":"call","oa":33533,"o":"moraleDown"},{"a":33497,"t":"code","b":[193],"m":"pop","o":"bc","x":[33460,33484]},{"a":33498,"t":"code","b":[17,40,0],"m":"ld","o":"de,$0028"},{"a":33501,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":33504,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33505,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":33508,"t":"code","b":[16,197],"m":"djnz","oa":33451,"o":"$82AB"},{"a":33510,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":33512,"t":"code","b":[201],"m":"ret"},{"a":33513,"l":"moraleUp","c":"Byte B of the record at HL gains A, up to $FF and up to the byte before it. HL is kept.","t":"code","b":[229],"m":"push","o":"hl","x":[33481]},{"a":33514,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":33515,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33517,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33518,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":33519,"t":"code","b":[48,2],"m":"jr","oa":33523,"o":"nc,$82F3"},{"a":33521,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":33523,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[33519]},{"a":33524,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":33525,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33526,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33527,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":33528,"t":"code","b":[48,1],"m":"jr","oa":33531,"o":"nc,$82FB"},{"a":33530,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33531,"t":"code","b":[225],"m":"pop","o":"hl","x":[33528]},{"a":33532,"t":"code","b":[201],"m":"ret"},{"a":33533,"l":"moraleDown","c":"Byte B of the record at HL loses A, down to 0. HL is kept.","t":"code","b":[229],"m":"push","o":"hl","x":[33494]},{"a":33534,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":33535,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":33537,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33538,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33539,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33540,"t":"code","b":[144],"m":"sub","o":"b"},{"a":33541,"t":"code","b":[48,1],"m":"jr","oa":33544,"o":"nc,$8308"},{"a":33543,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33544,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[33541]},{"a":33545,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":33546,"t":"code","b":[201],"m":"ret"},{"a":33547,"l":"addObject","c":"Add an object of kind A at ($5D3A), on floor $5D23 and carried by unit C, in the first free entry of the scenario's objects. None free: A = 0, with Z.","t":"code","b":[245],"m":"push","o":"af","x":[33401]},{"a":33548,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":33551,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33552,"t":"code","b":[42,42,183],"m":"ld","oa":46890,"o":"hl,($B72A)"},{"a":33555,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":33558,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[33563]},{"a":33559,"t":"code","b":[183],"m":"or","o":"a"},{"a":33560,"t":"code","b":[40,6],"m":"jr","oa":33568,"o":"z,$8320"},{"a":33562,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33563,"t":"code","b":[16,249],"m":"djnz","oa":33558,"o":"$8316"},{"a":33565,"t":"code","b":[241],"m":"pop","o":"af"},{"a":33566,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33567,"t":"code","b":[201],"m":"ret"},{"a":33568,"t":"code","b":[241],"m":"pop","o":"af","x":[33560]},{"a":33569,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33570,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33571,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":33574,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33575,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33576,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":33579,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33580,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33581,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":33584,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33585,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33586,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":33588,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33589,"t":"code","b":[113],"m":"ld","o":"(hl),c"},{"a":33590,"t":"code","b":[201],"m":"ret"},{"a":33591,"l":"printPercent","c":"Number A at the place in HL with a '%' after it, in double height when $5D09 has bit 3 set.","t":"code","b":[245],"m":"push","o":"af","x":[33074,36278]},{"a":33592,"t":"code","b":[229],"m":"push","o":"hl"},{"a":33593,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":33596,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":33599,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":33600,"t":"code","b":[241],"m":"pop","o":"af"},{"a":33601,"t":"code","b":[36],"m":"inc","o":"h"},{"a":33602,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":33604,"t":"code","b":[56,6],"m":"jr","oa":33612,"o":"c,$834C"},{"a":33606,"t":"code","b":[36],"m":"inc","o":"h"},{"a":33607,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":33609,"t":"code","b":[56,1],"m":"jr","oa":33612,"o":"c,$834C"},{"a":33611,"t":"code","b":[36],"m":"inc","o":"h"},{"a":33612,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl","x":[33604,33609]},{"a":33615,"t":"code","b":[62,37],"m":"ld","o":"a,$25"},{"a":33617,"t":"code","b":[33,9,93],"m":"ld","o":"hl,$5D09"},{"a":33620,"t":"code","b":[203,94],"m":"bit","o":"3,(hl)"},{"a":33622,"t":"code","b":[40,4],"m":"jr","oa":33628,"o":"z,$835C"},{"a":33624,"t":"code","b":[205,247,100],"m":"call","oa":25847,"o":"printCharDouble"},{"a":33627,"t":"code","b":[201],"m":"ret"},{"a":33628,"t":"code","b":[205,114,96],"m":"call","oa":24690,"o":"printChar","x":[33622]},{"a":33631,"t":"code","b":[201],"m":"ret"},{"a":33632,"l":"stillAble","c":"NZ, and the unit's numbers shown, when the unit at IX has action points and health left.","t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)","x":[33179]},{"a":33635,"t":"code","b":[183],"m":"or","o":"a"},{"a":33636,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33637,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":33640,"t":"code","b":[183],"m":"or","o":"a"},{"a":33641,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33642,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":33645,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":33647,"t":"code","b":[183],"m":"or","o":"a"},{"a":33648,"t":"code","b":[201],"m":"ret"},{"a":33649,"l":"hitShow","c":"The hit on the screen: for every four points of damage, the scenario's tiles $B653 and $B654 over the square in front in yellow, with sound effect 9, and the square drawn again.","t":"code","b":[205,132,127],"m":"call","oa":32644,"o":"targetPos","x":[33139,37254]},{"a":33652,"t":"code","b":[58,152,93],"m":"ld","oa":23960,"o":"a,($5D98)"},{"a":33655,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":33657,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":33659,"t":"code","b":[183],"m":"or","o":"a"},{"a":33660,"t":"code","b":[200],"m":"ret","o":"z"},{"a":33661,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33662,"t":"code","b":[197],"m":"push","o":"bc","x":[33699]},{"a":33663,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":33665,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":33668,"t":"code","b":[58,83,182],"m":"ld","oa":46675,"o":"a,($B653)"},{"a":33671,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":33674,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":33676,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":33679,"t":"code","b":[58,84,182],"m":"ld","oa":46676,"o":"a,($B654)"},{"a":33682,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":33685,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":33688,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":33691,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33692,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":33695,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":33698,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33699,"t":"code","b":[16,217],"m":"djnz","oa":33662,"o":"$837E"},{"a":33701,"t":"code","b":[201],"m":"ret"},{"a":33702,"l":"deathShow","c":"The death on the screen: sound effect 12; the unit in front ($5D3C) spun round twice until it faces down, with sound effect 10 at each turn; then the three tiles of the falling body, from the scenario's table at ($B720), four bytes for each kind of unit ($00): the colours and the three tiles.","t":"code","b":[62,12],"m":"ld","o":"a,$0C","x":[33155,37267]},{"a":33704,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":33707,"t":"code","b":[205,132,127],"m":"call","oa":32644,"o":"targetPos"},{"a":33710,"t":"code","b":[221,42,60,93],"m":"ld","oa":23868,"o":"ix,($5D3C)"},{"a":33714,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":33717,"t":"code","b":[245],"m":"push","o":"af"},{"a":33718,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)"},{"a":33721,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":33724,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":33726,"t":"code","b":[197],"m":"push","o":"bc","x":[33758]},{"a":33727,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile","x":[33755]},{"a":33730,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)"},{"a":33733,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":33736,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":33738,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":33741,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":33744,"t":"code","b":[60],"m":"inc","o":"a"},{"a":33745,"t":"code","b":[254,8],"m":"cp","o":"$08"},{"a":33747,"t":"code","b":[32,1],"m":"jr","oa":33750,"o":"nz,$83D6"},{"a":33749,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33750,"t":"code","b":[221,119,33],"m":"ld","o":"(ix+$21),a","x":[33747]},{"a":33753,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":33755,"t":"code","b":[32,226],"m":"jr","oa":33727,"o":"nz,$83BF"},{"a":33757,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33758,"t":"code","b":[16,222],"m":"djnz","oa":33726,"o":"$83BE"},{"a":33760,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":33762,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":33765,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":33768,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":33769,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":33771,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":33772,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":33773,"t":"code","b":[237,91,32,183],"m":"ld","oa":46880,"o":"de,($B720)"},{"a":33777,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33778,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33779,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":33782,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33783,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":33785,"t":"code","b":[197],"m":"push","o":"bc","x":[33797]},{"a":33786,"t":"code","b":[229],"m":"push","o":"hl"},{"a":33787,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33788,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":33791,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":33794,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":33795,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33796,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33797,"t":"code","b":[16,242],"m":"djnz","oa":33785,"o":"$83F9"},{"a":33799,"t":"code","b":[241],"m":"pop","o":"af"},{"a":33800,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":33803,"t":"code","b":[201],"m":"ret"},{"a":33804,"l":"nextUnit","c":"The view moved along to the next unit of the side whose turn it is after unit $5DA2, round from 19 to 0. NZ for none.","t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":33806,"t":"code","b":[58,162,93],"m":"ld","oa":23970,"o":"a,($5DA2)","x":[33833]},{"a":33809,"t":"code","b":[60],"m":"inc","o":"a"},{"a":33810,"t":"code","b":[254,20],"m":"cp","o":"$14"},{"a":33812,"t":"code","b":[56,1],"m":"jr","oa":33815,"o":"c,$8417"},{"a":33814,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33815,"t":"code","b":[50,162,93],"m":"ld","oa":23970,"o":"($5DA2),a","x":[33812]},{"a":33818,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":33819,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":33821,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":33822,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":33823,"t":"code","b":[17,80,92],"m":"ld","o":"de,$5C50"},{"a":33826,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33827,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":33830,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":33831,"t":"code","b":[40,3],"m":"jr","oa":33836,"o":"z,$842C"},{"a":33833,"t":"code","b":[16,227],"m":"djnz","oa":33806,"o":"$840E"},{"a":33835,"t":"code","b":[201],"m":"ret"},{"a":33836,"t":"code","b":[35],"m":"inc","o":"hl","x":[33831]},{"a":33837,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33838,"t":"code","b":[50,107,93],"m":"ld","oa":23915,"o":"($5D6B),a"},{"a":33841,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":33842,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":33843,"t":"code","b":[50,108,93],"m":"ld","oa":23916,"o":"($5D6C),a"},{"a":33846,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":33849,"t":"code","b":[17,5,5],"m":"ld","o":"de,$0505"},{"a":33852,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33853,"t":"code","b":[34,105,93],"m":"ld","oa":23913,"o":"($5D69),hl"},{"a":33856,"t":"code","b":[205,138,119],"m":"call","oa":30602,"o":"panView"},{"a":33859,"t":"code","b":[201],"m":"ret"},{"a":33860,"l":"unused8444","c":"Eight bytes nothing reads.","t":"byte","b":[33,64,33,65,33,66,33,67]},{"a":33868,"l":"plot","c":"The scanner's dot at pixel row ($5DA3) plus 8 and column ($5DA4) plus 8: set ($5DA6 0, and $5DA5 = what was there), cleared (1) or flipped (2).","t":"code","b":[237,91,163,93],"m":"ld","oa":23971,"o":"de,($5DA3)","x":[33982,33990,34009,34017,34287,34567,34578,34604,34615,35015,35026,35156,35222,35245,35395,35744,38185,38192,38199,38210,38218]},{"a":33872,"t":"code","b":[33,8,8],"m":"ld","o":"hl,$0808"},{"a":33875,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":33876,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":33877,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":33878,"t":"code","b":[230,192],"m":"and","o":"$C0"},{"a":33880,"t":"code","b":[31],"m":"rra"},{"a":33881,"t":"code","b":[55],"m":"scf"},{"a":33882,"t":"code","b":[31],"m":"rra"},{"a":33883,"t":"code","b":[15],"m":"rrca"},{"a":33884,"t":"code","b":[171],"m":"xor","o":"e"},{"a":33885,"t":"code","b":[230,248],"m":"and","o":"$F8"},{"a":33887,"t":"code","b":[171],"m":"xor","o":"e"},{"a":33888,"t":"code","b":[103],"m":"ld","o":"h,a"},{"a":33889,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":33890,"t":"code","b":[7],"m":"rlca"},{"a":33891,"t":"code","b":[7],"m":"rlca"},{"a":33892,"t":"code","b":[7],"m":"rlca"},{"a":33893,"t":"code","b":[171],"m":"xor","o":"e"},{"a":33894,"t":"code","b":[230,199],"m":"and","o":"$C7"},{"a":33896,"t":"code","b":[171],"m":"xor","o":"e"},{"a":33897,"t":"code","b":[7],"m":"rlca"},{"a":33898,"t":"code","b":[7],"m":"rlca"},{"a":33899,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":33900,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":33901,"t":"code","b":[230,7],"m":"and","o":"$07"},{"a":33903,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33904,"t":"code","b":[4],"m":"inc","o":"b"},{"a":33905,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33906,"t":"code","b":[55],"m":"scf"},{"a":33907,"t":"code","b":[31],"m":"rra","x":[33908]},{"a":33908,"t":"code","b":[16,253],"m":"djnz","oa":33907,"o":"$8473"},{"a":33910,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":33911,"t":"code","b":[58,166,93],"m":"ld","oa":23974,"o":"a,($5DA6)"},{"a":33914,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":33916,"t":"code","b":[40,13],"m":"jr","oa":33931,"o":"z,$848B"},{"a":33918,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":33920,"t":"code","b":[40,15],"m":"jr","oa":33937,"o":"z,$8491"},{"a":33922,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":33923,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":33924,"t":"code","b":[50,165,93],"m":"ld","oa":23973,"o":"($5DA5),a"},{"a":33927,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":33928,"t":"code","b":[182],"m":"or","o":"(hl)"},{"a":33929,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33930,"t":"code","b":[201],"m":"ret"},{"a":33931,"t":"code","b":[120],"m":"ld","o":"a,b","x":[33916]},{"a":33932,"t":"code","b":[238,255],"m":"xor","o":"$FF"},{"a":33934,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":33935,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33936,"t":"code","b":[201],"m":"ret"},{"a":33937,"t":"code","b":[120],"m":"ld","o":"a,b","x":[33920]},{"a":33938,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":33939,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":33940,"t":"code","b":[201],"m":"ret"},{"a":33941,"l":"scanner","c":"Option 3 of cursor mode, the strategic scanner: the screen cleared to blue with message $45 and the scenario's messages $A0 and $A1 at the bottom right; a frame round the map; every square of the 80 by 50 drawn as the pattern its byte names in the table at $D2FF (bits 3 to 7, 0 for none), three pixels apart from pixel row 9 and column 1; the two keys of the colours.","t":"code","b":[62,69],"m":"ld","o":"a,$45"},{"a":33943,"t":"code","b":[205,45,96],"m":"call","oa":24621,"o":"clearScreenA"},{"a":33946,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":33949,"t":"code","b":[33,21,3],"m":"ld","o":"hl,$0315"},{"a":33952,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":33954,"t":"code","b":[205,147,107],"m":"call","oa":27539,"o":"panelLine"},{"a":33957,"t":"code","b":[33,22,3],"m":"ld","o":"hl,$0316"},{"a":33960,"t":"code","b":[62,161],"m":"ld","o":"a,$A1"},{"a":33962,"t":"code","b":[205,147,107],"m":"call","oa":27539,"o":"panelLine"},{"a":33965,"t":"code","b":[175],"m":"xor","o":"a"},{"a":33966,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":33969,"t":"code","b":[6,242],"m":"ld","o":"b,$F2"},{"a":33971,"t":"code","b":[197],"m":"push","o":"bc","x":[33994]},{"a":33972,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":33973,"t":"code","b":[61],"m":"dec","o":"a"},{"a":33974,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":33977,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":33979,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":33982,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":33985,"t":"code","b":[62,159],"m":"ld","o":"a,$9F"},{"a":33987,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":33990,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":33993,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":33994,"t":"code","b":[16,231],"m":"djnz","oa":33971,"o":"$84B3"},{"a":33996,"t":"code","b":[6,150],"m":"ld","o":"b,$96"},{"a":33998,"t":"code","b":[197],"m":"push","o":"bc","x":[34021]},{"a":33999,"t":"code","b":[62,159],"m":"ld","o":"a,$9F"},{"a":34001,"t":"code","b":[144],"m":"sub","o":"b"},{"a":34002,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":34005,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34006,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":34009,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34012,"t":"code","b":[62,241],"m":"ld","o":"a,$F1"},{"a":34014,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":34017,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34020,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":34021,"t":"code","b":[16,231],"m":"djnz","oa":33998,"o":"$84CE"},{"a":34023,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":34025,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34028,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34030,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34033,"t":"code","b":[33,191,214],"m":"ld","o":"hl,$D6BF"},{"a":34036,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":34039,"t":"code","b":[6,50],"m":"ld","o":"b,$32"},{"a":34041,"t":"code","b":[197],"m":"push","o":"bc","x":[34098]},{"a":34042,"t":"code","b":[6,80],"m":"ld","o":"b,$50"},{"a":34044,"t":"code","b":[197],"m":"push","o":"bc","x":[34082]},{"a":34045,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":34048,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":34049,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":34051,"t":"code","b":[33,255,210],"m":"ld","o":"hl,$D2FF"},{"a":34054,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":34055,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34056,"t":"code","b":[230,248],"m":"and","o":"$F8"},{"a":34058,"t":"code","b":[40,6],"m":"jr","oa":34066,"o":"z,$8512"},{"a":34060,"t":"code","b":[15],"m":"rrca"},{"a":34061,"t":"code","b":[15],"m":"rrca"},{"a":34062,"t":"code","b":[15],"m":"rrca"},{"a":34063,"t":"code","b":[205,205,133],"m":"call","oa":34253,"o":"patternAt"},{"a":34066,"t":"code","b":[193],"m":"pop","o":"bc","x":[34058]},{"a":34067,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":34070,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34071,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":34074,"t":"code","b":[58,168,93],"m":"ld","oa":23976,"o":"a,($5DA8)"},{"a":34077,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":34079,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34082,"t":"code","b":[16,216],"m":"djnz","oa":34044,"o":"$84FC"},{"a":34084,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":34085,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34087,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34090,"t":"code","b":[58,167,93],"m":"ld","oa":23975,"o":"a,($5DA7)"},{"a":34093,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":34095,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34098,"t":"code","b":[16,197],"m":"djnz","oa":34041,"o":"$84F9"},{"a":34100,"t":"code","b":[33,162,3],"m":"ld","o":"hl,$03A2"},{"a":34103,"t":"code","b":[34,167,93],"m":"ld","oa":23975,"o":"($5DA7),hl"},{"a":34106,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34108,"t":"code","b":[205,205,133],"m":"call","oa":34253,"o":"patternAt"},{"a":34111,"t":"code","b":[62,170],"m":"ld","o":"a,$AA"},{"a":34113,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34116,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":34118,"t":"code","b":[205,205,133],"m":"call","oa":34253,"o":"patternAt"},{"a":34121,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":34123,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":34126,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":34129,"c":"Then until fire: every 100 reads of the controls, the units' squares and the view's frame are flipped on or off. Fire goes back to the view.","t":"code","b":[6,100],"m":"ld","o":"b,$64","x":[34241]},{"a":34131,"t":"code","b":[197],"m":"push","o":"bc","x":[34146]},{"a":34132,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":34135,"t":"code","b":[205,223,98],"m":"call","oa":25311,"o":"delay1"},{"a":34138,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":34141,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":34142,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":34144,"t":"code","b":[40,97],"m":"jr","oa":34243,"o":"z,$85C3"},{"a":34146,"t":"code","b":[16,239],"m":"djnz","oa":34131,"o":"$8553"},{"a":34148,"t":"code","b":[33,191,214],"m":"ld","o":"hl,$D6BF"},{"a":34151,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":34154,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":34156,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34159,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34161,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34164,"t":"code","b":[6,50],"m":"ld","o":"b,$32"},{"a":34166,"t":"code","b":[197],"m":"push","o":"bc","x":[34215]},{"a":34167,"t":"code","b":[6,80],"m":"ld","o":"b,$50"},{"a":34169,"t":"code","b":[197],"m":"push","o":"bc","x":[34199]},{"a":34170,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":34173,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34174,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":34176,"t":"code","b":[56,5],"m":"jr","oa":34183,"o":"c,$8587"},{"a":34178,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":34180,"t":"code","b":[205,205,133],"m":"call","oa":34253,"o":"patternAt"},{"a":34183,"t":"code","b":[193],"m":"pop","o":"bc","x":[34176]},{"a":34184,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":34187,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34188,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":34191,"t":"code","b":[58,168,93],"m":"ld","oa":23976,"o":"a,($5DA8)"},{"a":34194,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":34196,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34199,"t":"code","b":[16,224],"m":"djnz","oa":34169,"o":"$8579"},{"a":34201,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":34202,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34204,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34207,"t":"code","b":[58,167,93],"m":"ld","oa":23975,"o":"a,($5DA7)"},{"a":34210,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":34212,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34215,"t":"code","b":[16,205],"m":"djnz","oa":34166,"o":"$8576"},{"a":34217,"t":"code","b":[33,162,3],"m":"ld","o":"hl,$03A2"},{"a":34220,"t":"code","b":[34,167,93],"m":"ld","oa":23975,"o":"($5DA7),hl"},{"a":34223,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":34225,"t":"code","b":[205,205,133],"m":"call","oa":34253,"o":"patternAt"},{"a":34228,"t":"code","b":[62,170],"m":"ld","o":"a,$AA"},{"a":34230,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34233,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":34235,"t":"code","b":[205,205,133],"m":"call","oa":34253,"o":"patternAt"},{"a":34238,"t":"code","b":[205,228,134],"m":"call","oa":34532,"o":"viewFrame"},{"a":34241,"t":"code","b":[24,142],"m":"jr","oa":34129,"o":"$8551"},{"a":34243,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[34144]},{"a":34246,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":34249,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":34252,"t":"code","b":[201],"m":"ret"},{"a":34253,"l":"patternAt","c":"Pattern A (from 1) at pixel row ($5DA7) and column ($5DA8): its dots, a row and a column from there each, listed to an $FF from the address at $85F9 + 2 x (A - 1).","t":"code","b":[61],"m":"dec","o":"a","x":[34063,34108,34118,34180,34225,34235]},{"a":34254,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":34255,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":34257,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":34258,"t":"code","b":[17,249,133],"m":"ld","o":"de,$85F9"},{"a":34261,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":34262,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":34263,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34264,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":34265,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":34266,"t":"code","b":[229],"m":"push","o":"hl","x":[34293]},{"a":34267,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34268,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":34270,"t":"code","b":[40,23],"m":"jr","oa":34295,"o":"z,$85F7"},{"a":34272,"t":"code","b":[58,167,93],"m":"ld","oa":23975,"o":"a,($5DA7)"},{"a":34275,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34276,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":34279,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34280,"t":"code","b":[58,168,93],"m":"ld","oa":23976,"o":"a,($5DA8)"},{"a":34283,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34284,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":34287,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34290,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":34291,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34292,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34293,"t":"code","b":[24,227],"m":"jr","oa":34266,"o":"$85DA"},{"a":34295,"t":"code","b":[225],"m":"pop","o":"hl","x":[34270]},{"a":34296,"t":"code","b":[201],"m":"ret"},{"a":34297,"l":"patterns","c":"The scanner's 21 patterns: where each one's dots are listed.","t":"word","b":[35,134,52,134,63,134,70,134],"d":[34339,34356,34367,34374]},{"a":34305,"t":"word","b":[77,134,84,134,91,134,98,134],"d":[34381,34388,34395,34402]},{"a":34313,"t":"word","b":[105,134,114,134,123,134,132,134],"d":[34409,34418,34427,34436]},{"a":34321,"t":"word","b":[141,134,152,134,155,134,174,134],"d":[34445,34456,34459,34478]},{"a":34329,"t":"word","b":[181,134,188,134,195,134,202,134],"d":[34485,34492,34499,34506]},{"a":34337,"t":"word","b":[215,134],"d":[34519]},{"a":34339,"l":"patternDots","c":"The patterns' dots: a row and a column for each, from 0 to 2, and $FF at each pattern's end.","t":"byte","b":[0,0,0,1,0,2,1,0]},{"a":34347,"t":"byte","b":[1,2,2,0,2,1,2,2]},{"a":34355,"t":"byte","b":[255,0,0,0,2,1,1,2]},{"a":34363,"t":"byte","b":[0,2,2,255,1,0,1,1]},{"a":34371,"t":"byte","b":[1,2,255,0,1,1,1,2]},{"a":34379,"t":"byte","b":[1,255,1,0,1,1,0,1]},{"a":34387,"t":"byte","b":[255,0,1,1,1,1,2,255]},{"a":34395,"t":"byte","b":[1,1,1,2,2,1,255,1]},{"a":34403,"t":"byte","b":[0,1,1,2,1,255,0,1]},{"a":34411,"t":"byte","b":[1,0,1,1,1,2,255,0]},{"a":34419,"t":"byte","b":[1,1,1,2,1,1,2,255]},{"a":34427,"t":"byte","b":[1,0,1,1,1,2,2,1]},{"a":34435,"t":"byte","b":[255,0,1,1,1,2,1,1]},{"a":34443,"t":"byte","b":[0,255,0,1,1,1,2,1]},{"a":34451,"t":"byte","b":[1,0,1,2,255,1,1,255]},{"a":34459,"t":"byte","b":[0,0,0,1,0,2,1,0]},{"a":34467,"t":"byte","b":[1,1,1,2,2,0,2,1]},{"a":34475,"t":"byte","b":[2,2,255,0,1,0,2,1]},{"a":34483,"t":"byte","b":[2,255,2,1,1,2,2,2]},{"a":34491,"t":"byte","b":[255,1,0,2,0,2,1,255]},{"a":34499,"t":"byte","b":[0,0,1,0,0,1,255,0]},{"a":34507,"t":"byte","b":[0,1,0,2,0,0,2,1]},{"a":34515,"t":"byte","b":[2,2,2,255,0,0,0,1]},{"a":34523,"t":"byte","b":[0,2,2,0,2,1,2,2]},{"a":34531,"t":"byte","b":[255]},{"a":34532,"l":"viewFrame","c":"The view's frame on the scanner, flipped: a square of 33 dots a side round its eleven squares.","t":"code","b":[33,252,92],"m":"ld","o":"hl,$5CFC","x":[34238]},{"a":34535,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":34537,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34538,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34539,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34540,"t":"code","b":[50,167,93],"m":"ld","oa":23975,"o":"($5DA7),a"},{"a":34543,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34544,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":34546,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34547,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34548,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":34549,"t":"code","b":[50,168,93],"m":"ld","oa":23976,"o":"($5DA8),a"},{"a":34552,"t":"code","b":[58,167,93],"m":"ld","oa":23975,"o":"a,($5DA7)"},{"a":34555,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":34558,"t":"code","b":[6,33],"m":"ld","o":"b,$21"},{"a":34560,"t":"code","b":[197],"m":"push","o":"bc","x":[34586]},{"a":34561,"t":"code","b":[58,168,93],"m":"ld","oa":23976,"o":"a,($5DA8)"},{"a":34564,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":34567,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34570,"t":"code","b":[58,168,93],"m":"ld","oa":23976,"o":"a,($5DA8)"},{"a":34573,"t":"code","b":[198,32],"m":"add","o":"a,$20"},{"a":34575,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":34578,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34581,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":34582,"t":"code","b":[33,163,93],"m":"ld","o":"hl,$5DA3"},{"a":34585,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":34586,"t":"code","b":[16,228],"m":"djnz","oa":34560,"o":"$8700"},{"a":34588,"t":"code","b":[58,168,93],"m":"ld","oa":23976,"o":"a,($5DA8)"},{"a":34591,"t":"code","b":[60],"m":"inc","o":"a"},{"a":34592,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":34595,"t":"code","b":[6,31],"m":"ld","o":"b,$1F"},{"a":34597,"t":"code","b":[197],"m":"push","o":"bc","x":[34623]},{"a":34598,"t":"code","b":[58,167,93],"m":"ld","oa":23975,"o":"a,($5DA7)"},{"a":34601,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":34604,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34607,"t":"code","b":[58,167,93],"m":"ld","oa":23975,"o":"a,($5DA7)"},{"a":34610,"t":"code","b":[198,32],"m":"add","o":"a,$20"},{"a":34612,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":34615,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":34618,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":34619,"t":"code","b":[33,164,93],"m":"ld","o":"hl,$5DA4"},{"a":34622,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":34623,"t":"code","b":[16,228],"m":"djnz","oa":34597,"o":"$8725"},{"a":34625,"t":"code","b":[201],"m":"ret"},{"a":34626,"l":"unitInfo","c":"Option 1 of cursor mode: the record of the unit under the cursor ($5D2F its square).","t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":34629,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34630,"t":"code","b":[50,169,93],"m":"ld","oa":23977,"o":"($5DA9),a"},{"a":34633,"t":"code","b":[205,77,135],"m":"call","oa":34637,"o":"unitInfoOf"},{"a":34636,"t":"code","b":[201],"m":"ret"},{"a":34637,"l":"unitInfoOf","c":"The record of unit $5DA9 on a screen of its own: its tile, turned to face down, and its name; its armour on each side round it ($0D front, $0E right, $0F rear, $10 left) and its $11; then eight bars from $5B00, two bytes each, the most and the value, each with its value: weapon skill ($12), close combat ($13), agility ($15), strength ($14), constitution ($07 and $08), action points ($1B and $06), morale ($0B and $0C), stamina ($09 and $0A). Fire goes back to the view. IX is kept.","t":"code","b":[221,229],"m":"push","o":"ix","x":[34633,36641]},{"a":34639,"t":"code","b":[205,74,100],"m":"call","oa":25674,"o":"eraseCursor"},{"a":34642,"t":"code","b":[58,169,93],"m":"ld","oa":23977,"o":"a,($5DA9)"},{"a":34645,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":34648,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":34650,"t":"code","b":[205,45,96],"m":"call","oa":24621,"o":"clearScreenA"},{"a":34653,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":34656,"t":"code","b":[33,3,21],"m":"ld","o":"hl,$1503"},{"a":34659,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34662,"c":"The tile is drawn through the table of squares at $E65F, a byte before the usual one.","t":"code","b":[42,22,183],"m":"ld","oa":46870,"o":"hl,($B716)"},{"a":34665,"t":"code","b":[229],"m":"push","o":"hl"},{"a":34666,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":34669,"t":"code","b":[245],"m":"push","o":"af"},{"a":34670,"t":"code","b":[221,126,33],"m":"ld","o":"a,(ix+$21)"},{"a":34673,"t":"code","b":[221,54,33,4],"m":"ld","o":"(ix+$21),$04"},{"a":34677,"t":"code","b":[245],"m":"push","o":"af"},{"a":34678,"t":"code","b":[58,169,93],"m":"ld","oa":23977,"o":"a,($5DA9)"},{"a":34681,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":34684,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":34687,"t":"code","b":[33,95,230],"m":"ld","o":"hl,$E65F"},{"a":34690,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":34693,"t":"code","b":[58,169,93],"m":"ld","oa":23977,"o":"a,($5DA9)"},{"a":34696,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":34699,"t":"code","b":[241],"m":"pop","o":"af"},{"a":34700,"t":"code","b":[221,119,33],"m":"ld","o":"(ix+$21),a"},{"a":34703,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":34706,"t":"code","b":[241],"m":"pop","o":"af"},{"a":34707,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":34710,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":34711,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":34714,"t":"code","b":[33,2,0],"m":"ld","o":"hl,$0002"},{"a":34717,"t":"code","b":[58,169,93],"m":"ld","oa":23977,"o":"a,($5DA9)"},{"a":34720,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":34723,"t":"code","b":[33,6,21],"m":"ld","o":"hl,$1506"},{"a":34726,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34729,"t":"code","b":[221,126,13],"m":"ld","o":"a,(ix+$0D)"},{"a":34732,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":34735,"t":"code","b":[33,3,17],"m":"ld","o":"hl,$1103"},{"a":34738,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34741,"t":"code","b":[221,126,14],"m":"ld","o":"a,(ix+$0E)"},{"a":34744,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":34747,"t":"code","b":[33,0,21],"m":"ld","o":"hl,$1500"},{"a":34750,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34753,"t":"code","b":[221,126,15],"m":"ld","o":"a,(ix+$0F)"},{"a":34756,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":34759,"t":"code","b":[33,3,24],"m":"ld","o":"hl,$1803"},{"a":34762,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34765,"t":"code","b":[221,126,16],"m":"ld","o":"a,(ix+$10)"},{"a":34768,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":34771,"t":"code","b":[175],"m":"xor","o":"a"},{"a":34772,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":34775,"t":"code","b":[33,6,14],"m":"ld","o":"hl,$0E06"},{"a":34778,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34781,"t":"code","b":[221,126,17],"m":"ld","o":"a,(ix+$11)"},{"a":34784,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":34787,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":34789,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":34792,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":34794,"t":"code","b":[50,176,93],"m":"ld","oa":23984,"o":"($5DB0),a"},{"a":34797,"t":"code","b":[33,8,13],"m":"ld","o":"hl,$0D08"},{"a":34800,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":34803,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":34806,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":34809,"t":"code","b":[221,126,18],"m":"ld","o":"a,(ix+$12)"},{"a":34812,"t":"code","b":[50,0,91],"m":"ld","oa":23296,"o":"($5B00),a"},{"a":34815,"t":"code","b":[50,1,91],"m":"ld","oa":23297,"o":"($5B01),a"},{"a":34818,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34821,"t":"code","b":[221,126,19],"m":"ld","o":"a,(ix+$13)"},{"a":34824,"t":"code","b":[50,2,91],"m":"ld","oa":23298,"o":"($5B02),a"},{"a":34827,"t":"code","b":[50,3,91],"m":"ld","oa":23299,"o":"($5B03),a"},{"a":34830,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34833,"t":"code","b":[221,126,21],"m":"ld","o":"a,(ix+$15)"},{"a":34836,"t":"code","b":[50,4,91],"m":"ld","oa":23300,"o":"($5B04),a"},{"a":34839,"t":"code","b":[50,5,91],"m":"ld","oa":23301,"o":"($5B05),a"},{"a":34842,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34845,"t":"code","b":[221,126,20],"m":"ld","o":"a,(ix+$14)"},{"a":34848,"t":"code","b":[50,6,91],"m":"ld","oa":23302,"o":"($5B06),a"},{"a":34851,"t":"code","b":[50,7,91],"m":"ld","oa":23303,"o":"($5B07),a"},{"a":34854,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34857,"t":"code","b":[221,126,7],"m":"ld","o":"a,(ix+$07)"},{"a":34860,"t":"code","b":[50,8,91],"m":"ld","oa":23304,"o":"($5B08),a"},{"a":34863,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":34866,"t":"code","b":[50,9,91],"m":"ld","oa":23305,"o":"($5B09),a"},{"a":34869,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34872,"t":"code","b":[221,126,27],"m":"ld","o":"a,(ix+$1B)"},{"a":34875,"t":"code","b":[50,10,91],"m":"ld","oa":23306,"o":"($5B0A),a"},{"a":34878,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":34881,"t":"code","b":[50,11,91],"m":"ld","oa":23307,"o":"($5B0B),a"},{"a":34884,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34887,"t":"code","b":[221,126,11],"m":"ld","o":"a,(ix+$0B)"},{"a":34890,"t":"code","b":[50,12,91],"m":"ld","oa":23308,"o":"($5B0C),a"},{"a":34893,"t":"code","b":[221,126,12],"m":"ld","o":"a,(ix+$0C)"},{"a":34896,"t":"code","b":[50,13,91],"m":"ld","oa":23309,"o":"($5B0D),a"},{"a":34899,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34902,"t":"code","b":[221,126,9],"m":"ld","o":"a,(ix+$09)"},{"a":34905,"t":"code","b":[50,14,91],"m":"ld","oa":23310,"o":"($5B0E),a"},{"a":34908,"t":"code","b":[221,126,10],"m":"ld","o":"a,(ix+$0A)"},{"a":34911,"t":"code","b":[50,15,91],"m":"ld","oa":23311,"o":"($5B0F),a"},{"a":34914,"t":"code","b":[205,129,136],"m":"call","oa":34945,"o":"statLine"},{"a":34917,"t":"code","b":[62,58],"m":"ld","o":"a,$3A"},{"a":34919,"t":"code","b":[50,170,93],"m":"ld","oa":23978,"o":"($5DAA),a"},{"a":34922,"t":"code","b":[62,120],"m":"ld","o":"a,$78"},{"a":34924,"t":"code","b":[50,171,93],"m":"ld","oa":23979,"o":"($5DAB),a"},{"a":34927,"t":"code","b":[205,144,136],"m":"call","oa":34960,"o":"bars"},{"a":34930,"t":"code","b":[205,247,119],"m":"call","oa":30711,"o":"waitFire"},{"a":34933,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen"},{"a":34936,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":34939,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":34942,"t":"code","b":[221,225],"m":"pop","o":"ix"},{"a":34944,"t":"code","b":[201],"m":"ret"},{"a":34945,"l":"statLine","c":"Number A at ($5D6D), and ($5D6D) two rows down.","t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)","x":[34818,34830,34842,34854,34869,34884,34899,34914]},{"a":34948,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":34951,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":34954,"t":"code","b":[33,109,93],"m":"ld","o":"hl,$5D6D"},{"a":34957,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":34958,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":34959,"t":"code","b":[201],"m":"ret"},{"a":34960,"l":"bars","c":"The eight bars of the record. For each, from $5B00, its outline as long as its most plus two, from pixel column $78 and rows $3A on, $10 apart; from $7F up, the most and the value are halved first. Then the bars are filled a column at a time, $80 steps with a short wait each, each as far as its value.","t":"code","b":[175],"m":"xor","o":"a","x":[34927]},{"a":34961,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":34964,"t":"code","b":[33,176,93],"m":"ld","o":"hl,$5DB0"},{"a":34967,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":34968,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":34971,"t":"code","b":[34,174,93],"m":"ld","oa":23982,"o":"($5DAE),hl"},{"a":34974,"t":"code","b":[42,170,93],"m":"ld","oa":23978,"o":"hl,($5DAA)"},{"a":34977,"t":"code","b":[34,172,93],"m":"ld","oa":23980,"o":"($5DAC),hl"},{"a":34980,"t":"code","b":[197],"m":"push","o":"bc","x":[35062]},{"a":34981,"t":"code","b":[42,174,93],"m":"ld","oa":23982,"o":"hl,($5DAE)"},{"a":34984,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":34985,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":34986,"t":"code","b":[183],"m":"or","o":"a"},{"a":34987,"t":"code","b":[40,50],"m":"jr","oa":35039,"o":"z,$88DF"},{"a":34989,"t":"code","b":[254,127],"m":"cp","o":"$7F"},{"a":34991,"t":"code","b":[56,7],"m":"jr","oa":35000,"o":"c,$88B8"},{"a":34993,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":34995,"t":"code","b":[203,62],"m":"srl","o":"(hl)"},{"a":34997,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":34998,"t":"code","b":[203,62],"m":"srl","o":"(hl)"},{"a":35000,"t":"code","b":[4],"m":"inc","o":"b","x":[34991]},{"a":35001,"t":"code","b":[4],"m":"inc","o":"b"},{"a":35002,"t":"code","b":[197],"m":"push","o":"bc","x":[35034]},{"a":35003,"t":"code","b":[58,173,93],"m":"ld","oa":23981,"o":"a,($5DAD)"},{"a":35006,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":35009,"t":"code","b":[58,172,93],"m":"ld","oa":23980,"o":"a,($5DAC)"},{"a":35012,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35015,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35018,"t":"code","b":[58,172,93],"m":"ld","oa":23980,"o":"a,($5DAC)"},{"a":35021,"t":"code","b":[198,11],"m":"add","o":"a,$0B"},{"a":35023,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35026,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35029,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35030,"t":"code","b":[33,173,93],"m":"ld","o":"hl,$5DAD"},{"a":35033,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":35034,"t":"code","b":[16,222],"m":"djnz","oa":35002,"o":"$88BA"},{"a":35036,"t":"code","b":[205,75,137],"m":"call","oa":35147,"o":"barEnd"},{"a":35039,"t":"code","b":[193],"m":"pop","o":"bc","x":[34987]},{"a":35040,"t":"code","b":[42,174,93],"m":"ld","oa":23982,"o":"hl,($5DAE)"},{"a":35043,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35044,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35045,"t":"code","b":[34,174,93],"m":"ld","oa":23982,"o":"($5DAE),hl"},{"a":35048,"t":"code","b":[58,172,93],"m":"ld","oa":23980,"o":"a,($5DAC)"},{"a":35051,"t":"code","b":[198,16],"m":"add","o":"a,$10"},{"a":35053,"t":"code","b":[50,172,93],"m":"ld","oa":23980,"o":"($5DAC),a"},{"a":35056,"t":"code","b":[58,171,93],"m":"ld","oa":23979,"o":"a,($5DAB)"},{"a":35059,"t":"code","b":[50,173,93],"m":"ld","oa":23981,"o":"($5DAD),a"},{"a":35062,"t":"code","b":[16,172],"m":"djnz","oa":34980,"o":"$88A4"},{"a":35064,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35065,"t":"code","b":[50,177,93],"m":"ld","oa":23985,"o":"($5DB1),a"},{"a":35068,"t":"code","b":[42,170,93],"m":"ld","oa":23978,"o":"hl,($5DAA)"},{"a":35071,"t":"code","b":[34,172,93],"m":"ld","oa":23980,"o":"($5DAC),hl"},{"a":35074,"t":"code","b":[6,128],"m":"ld","o":"b,$80"},{"a":35076,"t":"code","b":[197],"m":"push","o":"bc","x":[35144]},{"a":35077,"t":"code","b":[33,1,91],"m":"ld","o":"hl,$5B01"},{"a":35080,"t":"code","b":[34,174,93],"m":"ld","oa":23982,"o":"($5DAE),hl"},{"a":35083,"t":"code","b":[33,176,93],"m":"ld","o":"hl,$5DB0"},{"a":35086,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":35087,"t":"code","b":[197],"m":"push","o":"bc","x":[35124]},{"a":35088,"t":"code","b":[42,174,93],"m":"ld","oa":23982,"o":"hl,($5DAE)"},{"a":35091,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35092,"t":"code","b":[33,177,93],"m":"ld","o":"hl,$5DB1"},{"a":35095,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":35096,"t":"code","b":[56,9],"m":"jr","oa":35107,"o":"c,$8923"},{"a":35098,"t":"code","b":[58,173,93],"m":"ld","oa":23981,"o":"a,($5DAD)"},{"a":35101,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":35104,"t":"code","b":[205,75,137],"m":"call","oa":35147,"o":"barEnd"},{"a":35107,"t":"code","b":[193],"m":"pop","o":"bc","x":[35096]},{"a":35108,"t":"code","b":[42,174,93],"m":"ld","oa":23982,"o":"hl,($5DAE)"},{"a":35111,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35112,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35113,"t":"code","b":[34,174,93],"m":"ld","oa":23982,"o":"($5DAE),hl"},{"a":35116,"t":"code","b":[58,172,93],"m":"ld","oa":23980,"o":"a,($5DAC)"},{"a":35119,"t":"code","b":[198,16],"m":"add","o":"a,$10"},{"a":35121,"t":"code","b":[50,172,93],"m":"ld","oa":23980,"o":"($5DAC),a"},{"a":35124,"t":"code","b":[16,217],"m":"djnz","oa":35087,"o":"$890F"},{"a":35126,"t":"code","b":[205,218,98],"m":"call","oa":25306,"o":"delay3"},{"a":35129,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35130,"t":"code","b":[33,177,93],"m":"ld","o":"hl,$5DB1"},{"a":35133,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":35134,"t":"code","b":[33,173,93],"m":"ld","o":"hl,$5DAD"},{"a":35137,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":35138,"t":"code","b":[58,170,93],"m":"ld","oa":23978,"o":"a,($5DAA)"},{"a":35141,"t":"code","b":[50,172,93],"m":"ld","oa":23980,"o":"($5DAC),a"},{"a":35144,"t":"code","b":[16,186],"m":"djnz","oa":35076,"o":"$8904"},{"a":35146,"t":"code","b":[201],"m":"ret"},{"a":35147,"l":"barEnd","c":"A line of twelve dots down from pixel row ($5DAC).","t":"code","b":[6,12],"m":"ld","o":"b,$0C","x":[35036,35104]},{"a":35149,"t":"code","b":[58,172,93],"m":"ld","oa":23980,"o":"a,($5DAC)"},{"a":35152,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35155,"t":"code","b":[197],"m":"push","o":"bc","x":[35164]},{"a":35156,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35159,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35160,"t":"code","b":[33,163,93],"m":"ld","o":"hl,$5DA3"},{"a":35163,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":35164,"t":"code","b":[16,245],"m":"djnz","oa":35155,"o":"$8953"},{"a":35166,"t":"code","b":[201],"m":"ret"},{"a":35167,"l":"div8","c":"C = 8 x A over B, rounded down; 0, with Z, for B = 0.","t":"code","b":[38,0],"m":"ld","o":"h,$00","x":[36150,36168,36181]},{"a":35169,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":35170,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35171,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35172,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35173,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":35175,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":35177,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":35178,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":35179,"t":"code","b":[183],"m":"or","o":"a"},{"a":35180,"t":"code","b":[200],"m":"ret","o":"z"},{"a":35181,"t":"code","b":[183],"m":"or","o":"a"},{"a":35182,"t":"code","b":[237,82],"m":"sbc","o":"hl,de","x":[35186]},{"a":35184,"t":"code","b":[216],"m":"ret","o":"c"},{"a":35185,"t":"code","b":[12],"m":"inc","o":"c"},{"a":35186,"t":"code","b":[24,250],"m":"jr","oa":35182,"o":"$896E"},{"a":35188,"l":"trailAdd","c":"The shot's dot at ($5DA3, $5DA4) added to its trail, a ring of 44 places from $5B00 to the $FE at $5B58 ($5DB2 the next): the dot is set, $5DA5 then saying whether something was drawn there already, which stops the shot; the oldest dot of the trail is taken off.","t":"code","b":[42,178,93],"m":"ld","oa":23986,"o":"hl,($5DB2)","x":[35325]},{"a":35191,"t":"code","b":[34,180,93],"m":"ld","oa":23988,"o":"($5DB4),hl"},{"a":35194,"t":"code","b":[58,164,93],"m":"ld","oa":23972,"o":"a,($5DA4)"},{"a":35197,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35198,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35199,"t":"code","b":[58,163,93],"m":"ld","oa":23971,"o":"a,($5DA3)"},{"a":35202,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35203,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35204,"t":"code","b":[34,178,93],"m":"ld","oa":23986,"o":"($5DB2),hl"},{"a":35207,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35208,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":35210,"t":"code","b":[32,6],"m":"jr","oa":35218,"o":"nz,$8992"},{"a":35212,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":35215,"t":"code","b":[34,178,93],"m":"ld","oa":23986,"o":"($5DB2),hl"},{"a":35218,"t":"code","b":[175],"m":"xor","o":"a","x":[35210]},{"a":35219,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":35222,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35225,"t":"code","b":[42,178,93],"m":"ld","oa":23986,"o":"hl,($5DB2)"},{"a":35228,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35229,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":35232,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35233,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35234,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35237,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":35239,"t":"code","b":[200],"m":"ret","o":"z"},{"a":35240,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35242,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":35245,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35248,"t":"code","b":[201],"m":"ret"},{"a":35249,"l":"shotFlight","c":"The shot's flight along the line from ($7091, $7093) to ($7095, $7097), in pixels of the map, a dot at a time with its sound. The view scrolls when the dot reaches one of its edges. The flight stops at the map's edge ($5DB7), at a dot already drawn on the screen ($5DA5) or at the weapon's range ($70AF, the dots so far in $70B1). Then the trail is taken off, a dot at a time. What a shot hits is found from the screen: the first dot of its line that something has drawn already.","t":"code","b":[205,202,112],"m":"call","oa":28874,"o":"lineSetup","x":[37092,39695]},{"a":35252,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35254,"t":"code","b":[50,123,93],"m":"ld","oa":23931,"o":"($5D7B),a"},{"a":35257,"t":"code","b":[62,11],"m":"ld","o":"a,$0B","x":[35346]},{"a":35259,"t":"code","b":[50,182,93],"m":"ld","oa":23990,"o":"($5DB6),a"},{"a":35262,"t":"code","b":[175],"m":"xor","o":"a"},{"a":35263,"t":"code","b":[50,183,93],"m":"ld","oa":23991,"o":"($5DB7),a"},{"a":35266,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":35269,"t":"code","b":[254,176],"m":"cp","o":"$B0"},{"a":35271,"t":"code","b":[204,99,138],"m":"call","oa":35427,"o":"z,edgeRight"},{"a":35274,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":35277,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":35279,"t":"code","b":[204,161,138],"m":"call","oa":35489,"o":"z,edgeLeft"},{"a":35282,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":35285,"t":"code","b":[254,176],"m":"cp","o":"$B0"},{"a":35287,"t":"code","b":[204,215,138],"m":"call","oa":35543,"o":"z,edgeDown"},{"a":35290,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":35293,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":35295,"t":"code","b":[204,26,139],"m":"call","oa":35610,"o":"z,edgeUp"},{"a":35298,"t":"code","b":[58,183,93],"m":"ld","oa":23991,"o":"a,($5DB7)"},{"a":35301,"t":"code","b":[183],"m":"or","o":"a"},{"a":35302,"t":"code","b":[194,32,138],"m":"jp","oa":35360,"o":"nz,$8A20"},{"a":35305,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":35308,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":35311,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":35314,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35317,"t":"code","b":[62,254],"m":"ld","o":"a,$FE"},{"a":35319,"t":"code","b":[50,88,91],"m":"ld","oa":23384,"o":"($5B58),a"},{"a":35322,"t":"code","b":[50,89,91],"m":"ld","oa":23385,"o":"($5B59),a"},{"a":35325,"t":"code","b":[205,116,137],"m":"call","oa":35188,"o":"trailAdd"},{"a":35328,"t":"code","b":[58,165,93],"m":"ld","oa":23973,"o":"a,($5DA5)"},{"a":35331,"t":"code","b":[183],"m":"or","o":"a"},{"a":35332,"t":"code","b":[194,32,138],"m":"jp","oa":35360,"o":"nz,$8A20"},{"a":35335,"t":"code","b":[205,44,143],"m":"call","oa":36652,"o":"shotSound"},{"a":35338,"t":"code","b":[205,104,113],"m":"call","oa":29032,"o":"lineStep"},{"a":35341,"t":"code","b":[205,21,138],"m":"call","oa":35349,"o":"inRange"},{"a":35344,"t":"code","b":[48,14],"m":"jr","oa":35360,"o":"nc,$8A20"},{"a":35346,"t":"code","b":[195,185,137],"m":"jp","oa":35257,"o":"$89B9"},{"a":35349,"l":"inRange","c":"C while the dots so far ($70B1) are fewer than the range ($70AF).","t":"code","b":[42,177,112],"m":"ld","oa":28849,"o":"hl,($70B1)","x":[35341]},{"a":35352,"t":"code","b":[237,91,175,112],"m":"ld","oa":28847,"o":"de,($70AF)"},{"a":35356,"t":"code","b":[183],"m":"or","o":"a"},{"a":35357,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":35359,"t":"code","b":[201],"m":"ret"},{"a":35360,"c":"The trail taken off, a dot at a time with the shot's sound.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[35302,35332,35344]},{"a":35362,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":35365,"t":"code","b":[6,44],"m":"ld","o":"b,$2C"},{"a":35367,"t":"code","b":[197],"m":"push","o":"bc","x":[35410]},{"a":35368,"t":"code","b":[42,178,93],"m":"ld","oa":23986,"o":"hl,($5DB2)"},{"a":35371,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35372,"t":"code","b":[254,254],"m":"cp","o":"$FE"},{"a":35374,"t":"code","b":[32,6],"m":"jr","oa":35382,"o":"nz,$8A36"},{"a":35376,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":35379,"t":"code","b":[34,178,93],"m":"ld","oa":23986,"o":"($5DB2),hl"},{"a":35382,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[35374]},{"a":35383,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":35385,"t":"code","b":[40,14],"m":"jr","oa":35401,"o":"z,$8A49"},{"a":35387,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":35390,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35391,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":35392,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35395,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35398,"t":"code","b":[205,44,143],"m":"call","oa":36652,"o":"shotSound"},{"a":35401,"t":"code","b":[42,178,93],"m":"ld","oa":23986,"o":"hl,($5DB2)","x":[35385]},{"a":35404,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35405,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35406,"t":"code","b":[34,178,93],"m":"ld","oa":23986,"o":"($5DB2),hl"},{"a":35409,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35410,"t":"code","b":[16,211],"m":"djnz","oa":35367,"o":"$8A27"},{"a":35412,"t":"code","b":[201],"m":"ret"},{"a":35413,"l":"trailClear","c":"The trail emptied: $FF from $5B00 to $5B57.","t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00","x":[35482,35536,35603,35657,36915]},{"a":35416,"t":"code","b":[17,1,91],"m":"ld","o":"de,$5B01"},{"a":35419,"t":"code","b":[1,87,0],"m":"ld","o":"bc,$0057"},{"a":35422,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":35424,"t":"code","b":[237,176],"m":"ldir"},{"a":35426,"t":"code","b":[201],"m":"ret"},{"a":35427,"l":"edgeRight","c":"The shot at the right-hand edge of the view: the view moved eleven squares right ($5DB6), or as far as the map goes, the dot with it, the trail emptied and the view drawn again. At the map's edge $5DB7 is set and the shot stops.","t":"code","b":[58,253,92],"m":"ld","oa":23805,"o":"a,($5CFD)","x":[35271]},{"a":35430,"t":"code","b":[254,69],"m":"cp","o":"$45"},{"a":35432,"t":"code","b":[32,6],"m":"jr","oa":35440,"o":"nz,$8A70"},{"a":35434,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35436,"t":"code","b":[50,183,93],"m":"ld","oa":23991,"o":"($5DB7),a"},{"a":35439,"t":"code","b":[201],"m":"ret"},{"a":35440,"t":"code","b":[198,11],"m":"add","o":"a,$0B","x":[35432]},{"a":35442,"t":"code","b":[254,69],"m":"cp","o":"$45"},{"a":35444,"t":"code","b":[56,9],"m":"jr","oa":35455,"o":"c,$8A7F"},{"a":35446,"t":"code","b":[62,69],"m":"ld","o":"a,$45"},{"a":35448,"t":"code","b":[33,253,92],"m":"ld","o":"hl,$5CFD"},{"a":35451,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":35452,"t":"code","b":[50,182,93],"m":"ld","oa":23990,"o":"($5DB6),a"},{"a":35455,"t":"code","b":[58,182,93],"m":"ld","oa":23990,"o":"a,($5DB6)","x":[35444]},{"a":35458,"t":"code","b":[33,253,92],"m":"ld","o":"hl,$5CFD"},{"a":35461,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":35462,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35463,"t":"code","b":[58,182,93],"m":"ld","oa":23990,"o":"a,($5DB6)"},{"a":35466,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35468,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35470,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35472,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35474,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":35475,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":35478,"t":"code","b":[144],"m":"sub","o":"b"},{"a":35479,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":35482,"t":"code","b":[205,85,138],"m":"call","oa":35413,"o":"trailClear"},{"a":35485,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":35488,"t":"code","b":[201],"m":"ret"},{"a":35489,"l":"edgeLeft","c":"The same at the left-hand edge.","t":"code","b":[58,253,92],"m":"ld","oa":23805,"o":"a,($5CFD)","x":[35279]},{"a":35492,"t":"code","b":[183],"m":"or","o":"a"},{"a":35493,"t":"code","b":[32,5],"m":"jr","oa":35500,"o":"nz,$8AAC"},{"a":35495,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35496,"t":"code","b":[50,183,93],"m":"ld","oa":23991,"o":"($5DB7),a"},{"a":35499,"t":"code","b":[201],"m":"ret"},{"a":35500,"t":"code","b":[214,11],"m":"sub","o":"$0B","x":[35493]},{"a":35502,"t":"code","b":[48,6],"m":"jr","oa":35510,"o":"nc,$8AB6"},{"a":35504,"t":"code","b":[58,253,92],"m":"ld","oa":23805,"o":"a,($5CFD)"},{"a":35507,"t":"code","b":[50,182,93],"m":"ld","oa":23990,"o":"($5DB6),a"},{"a":35510,"t":"code","b":[58,253,92],"m":"ld","oa":23805,"o":"a,($5CFD)","x":[35502]},{"a":35513,"t":"code","b":[33,182,93],"m":"ld","o":"hl,$5DB6"},{"a":35516,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":35517,"t":"code","b":[50,253,92],"m":"ld","oa":23805,"o":"($5CFD),a"},{"a":35520,"t":"code","b":[58,182,93],"m":"ld","oa":23990,"o":"a,($5DB6)"},{"a":35523,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35525,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35527,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35529,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35531,"t":"code","b":[33,153,112],"m":"ld","o":"hl,$7099"},{"a":35534,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":35535,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35536,"t":"code","b":[205,85,138],"m":"call","oa":35413,"o":"trailClear"},{"a":35539,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":35542,"t":"code","b":[201],"m":"ret"},{"a":35543,"l":"edgeDown","c":"The same at the bottom.","t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)","x":[35287]},{"a":35546,"t":"code","b":[254,39],"m":"cp","o":"$27"},{"a":35548,"t":"code","b":[32,6],"m":"jr","oa":35556,"o":"nz,$8AE4"},{"a":35550,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35552,"t":"code","b":[50,183,93],"m":"ld","oa":23991,"o":"($5DB7),a"},{"a":35555,"t":"code","b":[201],"m":"ret"},{"a":35556,"t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)","x":[35548]},{"a":35559,"t":"code","b":[198,11],"m":"add","o":"a,$0B"},{"a":35561,"t":"code","b":[254,39],"m":"cp","o":"$27"},{"a":35563,"t":"code","b":[56,9],"m":"jr","oa":35574,"o":"c,$8AF6"},{"a":35565,"t":"code","b":[62,39],"m":"ld","o":"a,$27"},{"a":35567,"t":"code","b":[33,252,92],"m":"ld","o":"hl,$5CFC"},{"a":35570,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":35571,"t":"code","b":[50,182,93],"m":"ld","oa":23990,"o":"($5DB6),a"},{"a":35574,"t":"code","b":[58,182,93],"m":"ld","oa":23990,"o":"a,($5DB6)","x":[35563]},{"a":35577,"t":"code","b":[33,252,92],"m":"ld","o":"hl,$5CFC"},{"a":35580,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":35581,"t":"code","b":[50,252,92],"m":"ld","oa":23804,"o":"($5CFC),a"},{"a":35584,"t":"code","b":[58,182,93],"m":"ld","oa":23990,"o":"a,($5DB6)"},{"a":35587,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35589,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35591,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35593,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35595,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":35596,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":35599,"t":"code","b":[144],"m":"sub","o":"b"},{"a":35600,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":35603,"t":"code","b":[205,85,138],"m":"call","oa":35413,"o":"trailClear"},{"a":35606,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":35609,"t":"code","b":[201],"m":"ret"},{"a":35610,"l":"edgeUp","c":"The same at the top.","t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)","x":[35295]},{"a":35613,"t":"code","b":[183],"m":"or","o":"a"},{"a":35614,"t":"code","b":[32,5],"m":"jr","oa":35621,"o":"nz,$8B25"},{"a":35616,"t":"code","b":[60],"m":"inc","o":"a"},{"a":35617,"t":"code","b":[50,183,93],"m":"ld","oa":23991,"o":"($5DB7),a"},{"a":35620,"t":"code","b":[201],"m":"ret"},{"a":35621,"t":"code","b":[214,11],"m":"sub","o":"$0B","x":[35614]},{"a":35623,"t":"code","b":[48,6],"m":"jr","oa":35631,"o":"nc,$8B2F"},{"a":35625,"t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)"},{"a":35628,"t":"code","b":[50,182,93],"m":"ld","oa":23990,"o":"($5DB6),a"},{"a":35631,"t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)","x":[35623]},{"a":35634,"t":"code","b":[33,182,93],"m":"ld","o":"hl,$5DB6"},{"a":35637,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":35638,"t":"code","b":[50,252,92],"m":"ld","oa":23804,"o":"($5CFC),a"},{"a":35641,"t":"code","b":[58,182,93],"m":"ld","oa":23990,"o":"a,($5DB6)"},{"a":35644,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35646,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35648,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35650,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35652,"t":"code","b":[33,155,112],"m":"ld","o":"hl,$709B"},{"a":35655,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":35656,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":35657,"t":"code","b":[205,85,138],"m":"call","oa":35413,"o":"trailClear"},{"a":35660,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":35663,"t":"code","b":[201],"m":"ret"},{"a":35664,"l":"crosshairDots","c":"The crosshair's 21 dots: a row and a column from the cursor's pixel each.","t":"byte","b":[0,0,1,0,255,0,0,1]},{"a":35672,"t":"byte","b":[0,255,2,0,254,0,0,2]},{"a":35680,"t":"byte","b":[0,254,3,0,253,0,0,3]},{"a":35688,"t":"byte","b":[0,253,4,0,252,0,0,4]},{"a":35696,"t":"byte","b":[0,252,5,0,251,0,0,5]},{"a":35704,"t":"byte","b":[0,251]},{"a":35706,"l":"drawCrosshair","c":"The crosshair flipped on or off, its dots from $8B50 round the cursor's pixel ($5D11 down, $5D12 across).","t":"code","b":[62,2],"m":"ld","o":"a,$02","x":[25163,25171,25194,37467]},{"a":35708,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":35711,"t":"code","b":[33,80,139],"m":"ld","o":"hl,$8B50"},{"a":35714,"t":"code","b":[34,184,93],"m":"ld","oa":23992,"o":"($5DB8),hl"},{"a":35717,"t":"code","b":[6,21],"m":"ld","o":"b,$15"},{"a":35719,"t":"code","b":[197],"m":"push","o":"bc","x":[35748]},{"a":35720,"t":"code","b":[42,184,93],"m":"ld","oa":23992,"o":"hl,($5DB8)"},{"a":35723,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":35724,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35725,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":35726,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":35727,"t":"code","b":[34,184,93],"m":"ld","oa":23992,"o":"($5DB8),hl"},{"a":35730,"t":"code","b":[58,18,93],"m":"ld","oa":23826,"o":"a,($5D12)"},{"a":35733,"t":"code","b":[130],"m":"add","o":"a,d"},{"a":35734,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":35737,"t":"code","b":[58,17,93],"m":"ld","oa":23825,"o":"a,($5D11)"},{"a":35740,"t":"code","b":[131],"m":"add","o":"a,e"},{"a":35741,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":35744,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":35747,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":35748,"t":"code","b":[16,225],"m":"djnz","oa":35719,"o":"$8B87"},{"a":35750,"t":"code","b":[201],"m":"ret"},{"a":35751,"l":"crossPos","c":"The crosshair's place on the map in pixels, sixteen to a square: $5DC9 across, $5DCB down.","t":"code","b":[58,253,92],"m":"ld","oa":23805,"o":"a,($5CFD)","x":[36028,36865]},{"a":35754,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":35756,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":35757,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35758,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35759,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35760,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35761,"t":"code","b":[58,18,93],"m":"ld","oa":23826,"o":"a,($5D12)"},{"a":35764,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":35766,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":35767,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35768,"t":"code","b":[34,201,93],"m":"ld","oa":24009,"o":"($5DC9),hl"},{"a":35771,"t":"code","b":[58,252,92],"m":"ld","oa":23804,"o":"a,($5CFC)"},{"a":35774,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":35776,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":35777,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35778,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35779,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35780,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":35781,"t":"code","b":[58,17,93],"m":"ld","oa":23825,"o":"a,($5D11)"},{"a":35784,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":35786,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":35787,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35788,"t":"code","b":[34,203,93],"m":"ld","oa":24011,"o":"($5DCB),hl"},{"a":35791,"t":"code","b":[201],"m":"ret"},{"a":35792,"l":"scatter","c":"A missed shot's end moved off the coordinate in $5DD2 by $5DD0 over eight over a random number (from $14, the range of it larger for a shot with a better chance, $5DCD), rounded; one way or the other, and not below 0. HL is the coordinate.","t":"code","b":[33,205,93],"m":"ld","o":"hl,$5DCD","x":[37073,37085]},{"a":35795,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":35796,"t":"code","b":[62,85],"m":"ld","o":"a,$55"},{"a":35798,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":35799,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":35801,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":35802,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":35805,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":35808,"t":"code","b":[198,20],"m":"add","o":"a,$14"},{"a":35810,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":35812,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":35813,"t":"code","b":[42,208,93],"m":"ld","oa":24016,"o":"hl,($5DD0)"},{"a":35816,"t":"code","b":[203,60],"m":"srl","o":"h"},{"a":35818,"t":"code","b":[203,29],"m":"rr","o":"l"},{"a":35820,"t":"code","b":[203,60],"m":"srl","o":"h"},{"a":35822,"t":"code","b":[203,29],"m":"rr","o":"l"},{"a":35824,"t":"code","b":[203,60],"m":"srl","o":"h"},{"a":35826,"t":"code","b":[203,29],"m":"rr","o":"l"},{"a":35828,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":35830,"t":"code","b":[183],"m":"or","o":"a","x":[35836]},{"a":35831,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":35833,"t":"code","b":[56,3],"m":"jr","oa":35838,"o":"c,$8BFE"},{"a":35835,"t":"code","b":[12],"m":"inc","o":"c"},{"a":35836,"t":"code","b":[24,248],"m":"jr","oa":35830,"o":"$8BF6"},{"a":35838,"t":"code","b":[25],"m":"add","o":"hl,de","x":[35833]},{"a":35839,"t":"code","b":[203,58],"m":"srl","o":"d"},{"a":35841,"t":"code","b":[203,27],"m":"rr","o":"e"},{"a":35843,"t":"code","b":[183],"m":"or","o":"a"},{"a":35844,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":35846,"t":"code","b":[48,1],"m":"jr","oa":35849,"o":"nc,$8C09"},{"a":35848,"t":"code","b":[12],"m":"inc","o":"c"},{"a":35849,"t":"code","b":[22,0],"m":"ld","o":"d,$00","x":[35846]},{"a":35851,"t":"code","b":[89],"m":"ld","o":"e,c"},{"a":35852,"t":"code","b":[42,210,93],"m":"ld","oa":24018,"o":"hl,($5DD2)"},{"a":35855,"t":"code","b":[62,100],"m":"ld","o":"a,$64"},{"a":35857,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":35860,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":35863,"t":"code","b":[254,50],"m":"cp","o":"$32"},{"a":35865,"t":"code","b":[56,2],"m":"jr","oa":35869,"o":"c,$8C1D"},{"a":35867,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35868,"t":"code","b":[201],"m":"ret"},{"a":35869,"t":"code","b":[183],"m":"or","o":"a","x":[35865]},{"a":35870,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":35872,"t":"code","b":[208],"m":"ret","o":"nc"},{"a":35873,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":35876,"t":"code","b":[201],"m":"ret"},{"a":35877,"l":"shotSquare","c":"The map's square of the shot's dot ($7099 across, $709B down, in the view): its square in the view in $5D11 and $5D12, on the map in $5D3A, its address in $5D3E.","t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)","x":[37150,37282,39644,39723]},{"a":35880,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35882,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35884,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35886,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35888,"t":"code","b":[50,17,93],"m":"ld","oa":23825,"o":"($5D11),a"},{"a":35891,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":35894,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35896,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35898,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35900,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35902,"t":"code","b":[50,18,93],"m":"ld","oa":23826,"o":"($5D12),a"},{"a":35905,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":35908,"t":"code","b":[237,91,17,93],"m":"ld","oa":23825,"o":"de,($5D11)"},{"a":35912,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35913,"t":"code","b":[34,58,93],"m":"ld","oa":23866,"o":"($5D3A),hl"},{"a":35916,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":35917,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":35920,"t":"code","b":[34,62,93],"m":"ld","oa":23870,"o":"($5D3E),hl"},{"a":35923,"t":"code","b":[201],"m":"ret"},{"a":35924,"l":"crossSquare","c":"The map's square under the crosshair ($5D49) and what is there (HL); Z if it is the unit firing ($5D26).","t":"code","b":[58,17,93],"m":"ld","oa":23825,"o":"a,($5D11)","x":[36401,36448,36516,37506]},{"a":35927,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35929,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35931,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35933,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35935,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":35936,"t":"code","b":[58,18,93],"m":"ld","oa":23826,"o":"a,($5D12)"},{"a":35939,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35941,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35943,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35945,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":35947,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":35948,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":35951,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":35952,"t":"code","b":[34,73,93],"m":"ld","oa":23881,"o":"($5D49),hl"},{"a":35955,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":35956,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":35959,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":35960,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":35963,"t":"code","b":[184],"m":"cp","o":"b"},{"a":35964,"t":"code","b":[201],"m":"ret"},{"a":35965,"l":"aimStart","c":"Into fire mode: the cursor kept off ($B71B), the view and the cursor saved ($5DBC, $5DC0), the cursor turned into pixels, sixteen to a square from the middle ($5DBE, $5DBF), and the line's start on the map ($7091, $7093, kept in $5DD8 and $5DD6).","t":"code","b":[175],"m":"xor","o":"a","x":[36374]},{"a":35966,"t":"code","b":[50,232,93],"m":"ld","oa":24040,"o":"($5DE8),a"},{"a":35969,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":35973,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":35975,"t":"code","b":[50,27,183],"m":"ld","oa":46875,"o":"($B71B),a"},{"a":35978,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":35981,"t":"code","b":[34,188,93],"m":"ld","oa":23996,"o":"($5DBC),hl"},{"a":35984,"t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)"},{"a":35987,"t":"code","b":[34,192,93],"m":"ld","oa":24000,"o":"($5DC0),hl"},{"a":35990,"t":"code","b":[58,18,93],"m":"ld","oa":23826,"o":"a,($5D12)"},{"a":35993,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35995,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35997,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":35999,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":36001,"t":"code","b":[198,8],"m":"add","o":"a,$08"},{"a":36003,"t":"code","b":[50,190,93],"m":"ld","oa":23998,"o":"($5DBE),a"},{"a":36006,"t":"code","b":[50,18,93],"m":"ld","oa":23826,"o":"($5D12),a"},{"a":36009,"t":"code","b":[58,17,93],"m":"ld","oa":23825,"o":"a,($5D11)"},{"a":36012,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":36014,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":36016,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":36018,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":36020,"t":"code","b":[198,8],"m":"add","o":"a,$08"},{"a":36022,"t":"code","b":[50,191,93],"m":"ld","oa":23999,"o":"($5DBF),a"},{"a":36025,"t":"code","b":[50,17,93],"m":"ld","oa":23825,"o":"($5D11),a"},{"a":36028,"t":"code","b":[205,167,139],"m":"call","oa":35751,"o":"crossPos"},{"a":36031,"t":"code","b":[42,201,93],"m":"ld","oa":24009,"o":"hl,($5DC9)"},{"a":36034,"t":"code","b":[34,145,112],"m":"ld","oa":28817,"o":"(lineVars),hl"},{"a":36037,"t":"code","b":[34,216,93],"m":"ld","oa":24024,"o":"($5DD8),hl"},{"a":36040,"t":"code","b":[42,203,93],"m":"ld","oa":24011,"o":"hl,($5DCB)"},{"a":36043,"t":"code","b":[34,147,112],"m":"ld","oa":28819,"o":"($7093),hl"},{"a":36046,"t":"code","b":[34,214,93],"m":"ld","oa":24022,"o":"($5DD6),hl"},{"a":36049,"t":"code","b":[62,167],"m":"ld","o":"a,$A7"},{"a":36051,"t":"code","b":[50,24,183],"m":"ld","oa":46872,"o":"($B718),a"},{"a":36054,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":36056,"t":"code","b":[50,25,183],"m":"ld","oa":46873,"o":"($B719),a"},{"a":36059,"t":"code","b":[33,159,231],"m":"ld","o":"hl,$E79F"},{"a":36062,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":36065,"c":"The shots of the weapon ($5DC2 its kind) for this unit: the chances of auto ($5DDF), snap ($5DE1) and aimed ($5DE3) fire are the kind's $0E, $0A and $0C plus a quarter, a half and all of the unit's weapon skill ($12) over the kind's $13 (when its $00 has bit 1 set), at most 100.","t":"code","b":[221,42,194,93],"m":"ld","oa":24002,"o":"ix,($5DC2)"},{"a":36069,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36070,"t":"code","b":[253,42,51,93],"m":"ld","oa":23859,"o":"iy,($5D33)"},{"a":36074,"t":"code","b":[221,203,0,78],"m":"bit","o":"1,(ix+$00)"},{"a":36078,"t":"code","b":[40,10],"m":"jr","oa":36090,"o":"z,$8CFA"},{"a":36080,"t":"code","b":[253,126,18],"m":"ld","o":"a,(iy+$12)"},{"a":36083,"t":"code","b":[221,70,19],"m":"ld","o":"b,(ix+$13)"},{"a":36086,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":36089,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":36090,"t":"code","b":[50,213,93],"m":"ld","oa":24021,"o":"($5DD5),a","x":[36078]},{"a":36093,"t":"code","b":[33,213,93],"m":"ld","o":"hl,$5DD5"},{"a":36096,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":36097,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":36099,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":36101,"t":"code","b":[221,126,14],"m":"ld","o":"a,(ix+$0E)"},{"a":36104,"t":"code","b":[205,120,141],"m":"call","oa":36216,"o":"upTo100"},{"a":36107,"t":"code","b":[50,223,93],"m":"ld","oa":24031,"o":"($5DDF),a"},{"a":36110,"t":"code","b":[33,213,93],"m":"ld","o":"hl,$5DD5"},{"a":36113,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":36114,"t":"code","b":[203,56],"m":"srl","o":"b"},{"a":36116,"t":"code","b":[221,126,10],"m":"ld","o":"a,(ix+$0A)"},{"a":36119,"t":"code","b":[205,120,141],"m":"call","oa":36216,"o":"upTo100"},{"a":36122,"t":"code","b":[50,225,93],"m":"ld","oa":24033,"o":"($5DE1),a"},{"a":36125,"t":"code","b":[33,213,93],"m":"ld","o":"hl,$5DD5"},{"a":36128,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":36129,"t":"code","b":[221,126,12],"m":"ld","o":"a,(ix+$0C)"},{"a":36132,"t":"code","b":[205,120,141],"m":"call","oa":36216,"o":"upTo100"},{"a":36135,"t":"code","b":[50,227,93],"m":"ld","oa":24035,"o":"($5DE3),a"},{"a":36138,"c":"Their prices in action points: eight times the unit's most ($05) over the kind's $0D, $09 and $0B, with no auto fire when $0D is 0. A throw's chance is the unit's agility ($15) and its price a fifth of its most points; none when its $25 has bit 1 set.","t":"code","b":[221,126,13],"m":"ld","o":"a,(ix+$0D)"},{"a":36141,"t":"code","b":[183],"m":"or","o":"a"},{"a":36142,"t":"code","b":[40,15],"m":"jr","oa":36159,"o":"z,$8D3F"},{"a":36144,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":36147,"t":"code","b":[221,70,13],"m":"ld","o":"b,(ix+$0D)"},{"a":36150,"t":"code","b":[205,95,137],"m":"call","oa":35167,"o":"div8"},{"a":36153,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":36154,"t":"code","b":[183],"m":"or","o":"a"},{"a":36155,"t":"code","b":[32,2],"m":"jr","oa":36159,"o":"nz,$8D3F"},{"a":36157,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36159,"t":"code","b":[50,224,93],"m":"ld","oa":24032,"o":"($5DE0),a","x":[36142,36155]},{"a":36162,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":36165,"t":"code","b":[221,70,9],"m":"ld","o":"b,(ix+$09)"},{"a":36168,"t":"code","b":[205,95,137],"m":"call","oa":35167,"o":"div8"},{"a":36171,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":36172,"t":"code","b":[50,226,93],"m":"ld","oa":24034,"o":"($5DE2),a"},{"a":36175,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":36178,"t":"code","b":[221,70,11],"m":"ld","o":"b,(ix+$0B)"},{"a":36181,"t":"code","b":[205,95,137],"m":"call","oa":35167,"o":"div8"},{"a":36184,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":36185,"t":"code","b":[50,228,93],"m":"ld","oa":24036,"o":"($5DE4),a"},{"a":36188,"t":"code","b":[253,126,21],"m":"ld","o":"a,(iy+$15)"},{"a":36191,"t":"code","b":[50,229,93],"m":"ld","oa":24037,"o":"($5DE5),a"},{"a":36194,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":36197,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":36199,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":36202,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":36203,"t":"code","b":[50,230,93],"m":"ld","oa":24038,"o":"($5DE6),a"},{"a":36206,"t":"code","b":[253,203,37,78],"m":"bit","o":"1,(iy+$25)"},{"a":36210,"t":"code","b":[200],"m":"ret","o":"z"},{"a":36211,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36212,"t":"code","b":[50,230,93],"m":"ld","oa":24038,"o":"($5DE6),a"},{"a":36215,"t":"code","b":[201],"m":"ret"},{"a":36216,"l":"upTo100","c":"A + B, at most 100.","t":"code","b":[128],"m":"add","o":"a,b","x":[36104,36119,36132]},{"a":36217,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":36219,"t":"code","b":[216],"m":"ret","o":"c"},{"a":36220,"t":"code","b":[62,100],"m":"ld","o":"a,$64"},{"a":36222,"t":"code","b":[201],"m":"ret"},{"a":36223,"l":"fireInfo","c":"The readout in fire mode: message $4C, the weapon's name ($5DE7), the unit's points and ammunition, and for each of the four shots from $5DDF its chance with a '%' and its price, or message $4D for a shot it has not.","t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo","x":[36380,36430,36575,37535]},{"a":36226,"t":"code","b":[62,76],"m":"ld","o":"a,$4C"},{"a":36228,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":36231,"t":"code","b":[33,0,24],"m":"ld","o":"hl,$1800"},{"a":36234,"t":"code","b":[58,231,93],"m":"ld","oa":24039,"o":"a,($5DE7)"},{"a":36237,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":36240,"t":"code","b":[205,225,141],"m":"call","oa":36321,"o":"fireAP"},{"a":36243,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":36245,"t":"code","b":[33,10,24],"m":"ld","o":"hl,$180A"},{"a":36248,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":36251,"t":"code","b":[33,223,93],"m":"ld","o":"hl,$5DDF"},{"a":36254,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":36257,"t":"code","b":[197],"m":"push","o":"bc","x":[36318]},{"a":36258,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":36261,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36262,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36263,"t":"code","b":[183],"m":"or","o":"a"},{"a":36264,"t":"code","b":[32,7],"m":"jr","oa":36273,"o":"nz,$8DB1"},{"a":36266,"t":"code","b":[62,77],"m":"ld","o":"a,$4D"},{"a":36268,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":36271,"t":"code","b":[24,26],"m":"jr","oa":36299,"o":"$8DCB"},{"a":36273,"t":"code","b":[43],"m":"dec","o":"hl","x":[36264]},{"a":36274,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36275,"t":"code","b":[42,5,93],"m":"ld","oa":23813,"o":"hl,($5D05)"},{"a":36278,"t":"code","b":[205,55,131],"m":"call","oa":33591,"o":"printPercent"},{"a":36281,"t":"code","b":[42,5,93],"m":"ld","oa":23813,"o":"hl,($5D05)"},{"a":36284,"t":"code","b":[17,0,5],"m":"ld","o":"de,$0500"},{"a":36287,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36288,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":36291,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":36294,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36295,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36296,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":36299,"t":"code","b":[193],"m":"pop","o":"bc","x":[36271]},{"a":36300,"t":"code","b":[42,109,93],"m":"ld","oa":23917,"o":"hl,($5D6D)"},{"a":36303,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36304,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":36305,"t":"code","b":[34,109,93],"m":"ld","oa":23917,"o":"($5D6D),hl"},{"a":36308,"t":"code","b":[42,5,93],"m":"ld","oa":23813,"o":"hl,($5D05)"},{"a":36311,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":36314,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36315,"t":"code","b":[34,5,93],"m":"ld","oa":23813,"o":"($5D05),hl"},{"a":36318,"t":"code","b":[16,193],"m":"djnz","oa":36257,"o":"$8DA1"},{"a":36320,"t":"code","b":[201],"m":"ret"},{"a":36321,"l":"fireAP","c":"The unit's action points ($06) and the ammunition in its weapon ($24) in the readout.","t":"code","b":[253,42,51,93],"m":"ld","oa":23859,"o":"iy,($5D33)","x":[36240]},{"a":36325,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":36327,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":36330,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":36333,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":36336,"t":"code","b":[33,4,28],"m":"ld","o":"hl,$1C04"},{"a":36339,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":36342,"t":"code","b":[253,126,6],"m":"ld","o":"a,(iy+$06)"},{"a":36345,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":36348,"t":"code","b":[33,6,28],"m":"ld","o":"hl,$1C06"},{"a":36351,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":36354,"t":"code","b":[253,126,36],"m":"ld","o":"a,(iy+$24)"},{"a":36357,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":36360,"t":"code","b":[201],"m":"ret"},{"a":36361,"l":"fireMode","c":"Option 1 of the unit's menu, fire, with the weapon in its hands ($23 its kind, kept in $5DE7, its record in $5DC2). The crosshair moves until fire. A square outside the unit's field of view (inView) gives message $67. Any other square but the unit's own gives the menu of the shots it has (0 auto, 1 snap, 2 aimed, 3 throw), the record of a unit under it (4, $5DA9), 5 end fire and 6 cancel, their routines in the table at $8EE5.","t":"code","b":[221,126,35],"m":"ld","o":"a,(ix+$23)","x":[30385]},{"a":36364,"t":"code","b":[50,231,93],"m":"ld","oa":24039,"o":"($5DE7),a"},{"a":36367,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":36370,"t":"code","b":[221,34,194,93],"m":"ld","oa":24002,"o":"($5DC2),ix"},{"a":36374,"t":"code","b":[205,125,140],"m":"call","oa":35965,"o":"aimStart"},{"a":36377,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":36380,"t":"code","b":[205,127,141],"m":"call","oa":36223,"o":"fireInfo"},{"a":36383,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36384,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":36387,"t":"code","b":[60],"m":"inc","o":"a"},{"a":36388,"t":"code","b":[50,23,93],"m":"ld","oa":23831,"o":"($5D17),a"},{"a":36391,"t":"code","b":[205,21,98],"m":"call","oa":25109,"o":"crosshairLoop","x":[36399,36437,36578]},{"a":36394,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":36397,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":36399,"t":"code","b":[32,246],"m":"jr","oa":36391,"o":"nz,$8E27"},{"a":36401,"t":"code","b":[205,84,140],"m":"call","oa":35924,"o":"crossSquare"},{"a":36404,"t":"code","b":[40,33],"m":"jr","oa":36439,"o":"z,$8E57"},{"a":36406,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":36409,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":36412,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":36416,"t":"code","b":[205,38,115],"m":"call","oa":29478,"o":"inView"},{"a":36419,"t":"code","b":[183],"m":"or","o":"a"},{"a":36420,"t":"code","b":[40,17],"m":"jr","oa":36439,"o":"z,$8E57"},{"a":36422,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":36425,"t":"code","b":[62,103],"m":"ld","o":"a,$67"},{"a":36427,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":36430,"t":"code","b":[205,127,141],"m":"call","oa":36223,"o":"fireInfo"},{"a":36433,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36434,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":36437,"t":"code","b":[24,208],"m":"jr","oa":36391,"o":"$8E27"},{"a":36439,"t":"code","b":[205,238,105],"m":"call","oa":27118,"o":"menuOpen","x":[36404,36420]},{"a":36442,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":36445,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":36448,"t":"code","b":[205,84,140],"m":"call","oa":35924,"o":"crossSquare"},{"a":36451,"t":"code","b":[40,63],"m":"jr","oa":36516,"o":"z,$8EA4"},{"a":36453,"t":"code","b":[58,224,93],"m":"ld","oa":24032,"o":"a,($5DE0)"},{"a":36456,"t":"code","b":[183],"m":"or","o":"a"},{"a":36457,"t":"code","b":[40,9],"m":"jr","oa":36468,"o":"z,$8E74"},{"a":36459,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36460,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36463,"t":"code","b":[62,71],"m":"ld","o":"a,$47"},{"a":36465,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":36468,"t":"code","b":[58,226,93],"m":"ld","oa":24034,"o":"a,($5DE2)","x":[36457]},{"a":36471,"t":"code","b":[183],"m":"or","o":"a"},{"a":36472,"t":"code","b":[40,10],"m":"jr","oa":36484,"o":"z,$8E84"},{"a":36474,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":36476,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36479,"t":"code","b":[62,72],"m":"ld","o":"a,$48"},{"a":36481,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":36484,"t":"code","b":[58,228,93],"m":"ld","oa":24036,"o":"a,($5DE4)","x":[36472]},{"a":36487,"t":"code","b":[183],"m":"or","o":"a"},{"a":36488,"t":"code","b":[40,10],"m":"jr","oa":36500,"o":"z,$8E94"},{"a":36490,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":36492,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36495,"t":"code","b":[62,73],"m":"ld","o":"a,$49"},{"a":36497,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":36500,"t":"code","b":[58,230,93],"m":"ld","oa":24038,"o":"a,($5DE6)","x":[36488]},{"a":36503,"t":"code","b":[183],"m":"or","o":"a"},{"a":36504,"t":"code","b":[40,10],"m":"jr","oa":36516,"o":"z,$8EA4"},{"a":36506,"t":"code","b":[62,74],"m":"ld","o":"a,$4A"},{"a":36508,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":36511,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":36513,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36516,"t":"code","b":[205,84,140],"m":"call","oa":35924,"o":"crossSquare","x":[36451,36504]},{"a":36519,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36520,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":36522,"t":"code","b":[56,13],"m":"jr","oa":36537,"o":"c,$8EB9"},{"a":36524,"t":"code","b":[50,169,93],"m":"ld","oa":23977,"o":"($5DA9),a"},{"a":36527,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":36529,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36532,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":36534,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":36537,"t":"code","b":[62,75],"m":"ld","o":"a,$4B","x":[36522]},{"a":36539,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":36542,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":36544,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36547,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":36549,"t":"code","b":[205,16,106],"m":"call","oa":27152,"o":"addOption"},{"a":36552,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":36555,"t":"code","b":[205,196,104],"m":"call","oa":26820,"o":"menuSelect"},{"a":36558,"t":"code","b":[33,229,142],"m":"ld","o":"hl,$8EE5"},{"a":36561,"t":"code","b":[205,31,106],"m":"call","oa":27167,"o":"dispatch"},{"a":36564,"c":"Fire mode ends when the unit dies, or by option 5, which returns past the unit's menu too.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":36568,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":36571,"t":"code","b":[183],"m":"or","o":"a"},{"a":36572,"t":"code","b":[202,244,142],"m":"jp","oa":36596,"o":"z,fireEnd"},{"a":36575,"t":"code","b":[205,127,141],"m":"call","oa":36223,"o":"fireInfo"},{"a":36578,"t":"code","b":[195,39,142],"m":"jp","oa":36391,"o":"$8E27"},{"a":36581,"l":"fireOptions","c":"The routines of the fire menu, by option.","t":"word","b":[50,146,145,143,133,143,156,154],"d":[37426,36753,36741,39580]},{"a":36589,"t":"word","b":[33,143,244,142,243,142],"d":[36641,36596,36595]},{"a":36595,"l":"fireCancel","c":"Option 6, cancel: nothing.","t":"code","b":[201],"m":"ret"},{"a":36596,"l":"fireEnd","c":"Option 5, the end of fire mode: the cursor back on ($B71B), the table of squares as it was ($B716) and the cursor's limits in the view ($B718, $B719: 10 and 0 again, from the crosshair's $A7 and 8), the view and the cursor put back and the view drawn. In a player's turn it returns past its caller, with Z.","t":"code","b":[175],"m":"xor","o":"a","x":[36572,39944]},{"a":36597,"t":"code","b":[50,27,183],"m":"ld","oa":46875,"o":"($B71B),a"},{"a":36600,"t":"code","b":[62,10],"m":"ld","o":"a,$0A"},{"a":36602,"t":"code","b":[50,24,183],"m":"ld","oa":46872,"o":"($B718),a"},{"a":36605,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36606,"t":"code","b":[50,25,183],"m":"ld","oa":46873,"o":"($B719),a"},{"a":36609,"t":"code","b":[42,188,93],"m":"ld","oa":23996,"o":"hl,($5DBC)"},{"a":36612,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":36615,"t":"code","b":[42,192,93],"m":"ld","oa":24000,"o":"hl,($5DC0)"},{"a":36618,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":36621,"t":"code","b":[33,95,230],"m":"ld","o":"hl,$E65F"},{"a":36624,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":36627,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":36630,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":36634,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":36637,"t":"code","b":[183],"m":"or","o":"a"},{"a":36638,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":36639,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":36640,"t":"code","b":[201],"m":"ret"},{"a":36641,"l":"fireUnitInfo","c":"Option 4, the record of the unit under the crosshair.","t":"code","b":[205,77,135],"m":"call","oa":34637,"o":"unitInfoOf"},{"a":36644,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36645,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":36648,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":36651,"t":"code","b":[201],"m":"ret"},{"a":36652,"l":"shotSound","c":"The sound of a dot of the shot: clicks of the speaker closer each time ($5D7B, by 3 up to $D2) until their sum ($5D7C) reaches $D2, with a noise from the refresh register R; then a short wait.","t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000","x":[35335,35398]},{"a":36655,"t":"code","b":[34,124,93],"m":"ld","oa":23932,"o":"($5D7C),hl"},{"a":36658,"t":"code","b":[58,123,93],"m":"ld","oa":23931,"o":"a,($5D7B)","x":[36715,36722]},{"a":36661,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":36663,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":36664,"t":"code","b":[42,124,93],"m":"ld","oa":23932,"o":"hl,($5D7C)"},{"a":36667,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":36668,"t":"code","b":[34,124,93],"m":"ld","oa":23932,"o":"($5D7C),hl"},{"a":36671,"t":"code","b":[17,210,0],"m":"ld","o":"de,$00D2"},{"a":36674,"t":"code","b":[183],"m":"or","o":"a"},{"a":36675,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":36677,"t":"code","b":[48,45],"m":"jr","oa":36724,"o":"nc,$8F74"},{"a":36679,"t":"code","b":[62,16],"m":"ld","o":"a,$10"},{"a":36681,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":36683,"t":"code","b":[58,123,93],"m":"ld","oa":23931,"o":"a,($5D7B)"},{"a":36686,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36687,"t":"code","b":[0],"m":"nop","x":[36688]},{"a":36688,"t":"code","b":[16,253],"m":"djnz","oa":36687,"o":"$8F4F"},{"a":36690,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36691,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":36693,"t":"code","b":[58,123,93],"m":"ld","oa":23931,"o":"a,($5D7B)"},{"a":36696,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36697,"t":"code","b":[0],"m":"nop","x":[36698]},{"a":36698,"t":"code","b":[16,253],"m":"djnz","oa":36697,"o":"$8F59"},{"a":36700,"t":"code","b":[237,95],"m":"ld","o":"a,r"},{"a":36702,"t":"code","b":[230,16],"m":"and","o":"$10"},{"a":36704,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":36706,"t":"code","b":[33,123,93],"m":"ld","o":"hl,$5D7B"},{"a":36709,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36710,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36711,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":36712,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":36713,"t":"code","b":[254,210],"m":"cp","o":"$D2"},{"a":36715,"t":"code","b":[56,197],"m":"jr","oa":36658,"o":"c,$8F32"},{"a":36717,"t":"code","b":[62,210],"m":"ld","o":"a,$D2"},{"a":36719,"t":"code","b":[50,123,93],"m":"ld","oa":23931,"o":"($5D7B),a"},{"a":36722,"t":"code","b":[24,190],"m":"jr","oa":36658,"o":"$8F32"},{"a":36724,"t":"code","b":[6,255],"m":"ld","o":"b,$FF","x":[36677]},{"a":36726,"t":"code","b":[16,254],"m":"djnz","oa":36726,"o":"$8F76","x":[36726]},{"a":36728,"t":"code","b":[201],"m":"ret"},{"a":36729,"l":"autoOne","c":"One round of auto fire: its chance ($5DDF) and its price ($5DE0).","t":"code","b":[58,223,93],"m":"ld","oa":24031,"o":"a,($5DDF)"},{"a":36732,"t":"code","b":[50,205,93],"m":"ld","oa":24013,"o":"($5DCD),a"},{"a":36735,"t":"code","b":[58,224,93],"m":"ld","oa":24032,"o":"a,($5DE0)"},{"a":36738,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36739,"t":"code","b":[24,22],"m":"jr","oa":36763,"o":"shoot"},{"a":36741,"l":"aimedShot","c":"Option 2, an aimed shot: its chance ($5DE3) and its price ($5DE4).","t":"code","b":[58,227,93],"m":"ld","oa":24035,"o":"a,($5DE3)"},{"a":36744,"t":"code","b":[50,205,93],"m":"ld","oa":24013,"o":"($5DCD),a"},{"a":36747,"t":"code","b":[58,228,93],"m":"ld","oa":24036,"o":"a,($5DE4)"},{"a":36750,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36751,"t":"code","b":[24,10],"m":"jr","oa":36763,"o":"shoot"},{"a":36753,"l":"snapShot","c":"Option 1, a snap shot: its chance ($5DE1) and its price ($5DE2).","t":"code","b":[58,225,93],"m":"ld","oa":24033,"o":"a,($5DE1)"},{"a":36756,"t":"code","b":[50,205,93],"m":"ld","oa":24013,"o":"($5DCD),a"},{"a":36759,"t":"code","b":[58,226,93],"m":"ld","oa":24034,"o":"a,($5DE2)"},{"a":36762,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":36763,"l":"shoot","c":"A shot of chance $5DCD and price B: the price paid (payAP), a round of ammunition used; the range, the cursor kept, the line from the unit to the crosshair, the chance (a miss moves the line's end), the flight and what it hits, a pause, and the unit's points.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[36739,36751]},{"a":36767,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":36770,"t":"code","b":[216],"m":"ret","o":"c"},{"a":36771,"t":"code","b":[205,195,143],"m":"call","oa":36803,"o":"ammoUse"},{"a":36774,"t":"code","b":[200],"m":"ret","o":"z"},{"a":36775,"t":"code","b":[205,207,153],"m":"call","oa":39375,"o":"clearFires"},{"a":36778,"t":"code","b":[205,226,143],"m":"call","oa":36834,"o":"shotRange"},{"a":36781,"t":"code","b":[205,244,143],"m":"call","oa":36852,"o":"saveCursor"},{"a":36784,"t":"code","b":[205,1,144],"m":"call","oa":36865,"o":"shotFrom"},{"a":36787,"t":"code","b":[205,17,144],"m":"call","oa":36881,"o":"shotStart"},{"a":36790,"t":"code","b":[205,67,144],"m":"call","oa":36931,"o":"shotHit"},{"a":36793,"t":"code","b":[205,228,144],"m":"call","oa":37092,"o":"shotPath"},{"a":36796,"t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause"},{"a":36799,"t":"code","b":[205,190,145],"m":"call","oa":37310,"o":"shotDone"},{"a":36802,"t":"code","b":[201],"m":"ret"},{"a":36803,"l":"ammoUse","c":"A round from the weapon in the unit's hands (the scenario's object $17, its $04, and the unit's $24). None left: message $4E, and Z.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[36771,37451,37813]},{"a":36807,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":36810,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":36813,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":36816,"t":"code","b":[183],"m":"or","o":"a"},{"a":36817,"t":"code","b":[40,8],"m":"jr","oa":36827,"o":"z,$8FDB"},{"a":36819,"t":"code","b":[253,53,4],"m":"dec","o":"(iy+$04)"},{"a":36822,"t":"code","b":[221,53,36],"m":"dec","o":"(ix+$24)"},{"a":36825,"t":"code","b":[183],"m":"or","o":"a"},{"a":36826,"t":"code","b":[201],"m":"ret"},{"a":36827,"t":"code","b":[62,78],"m":"ld","o":"a,$4E","x":[36817]},{"a":36829,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":36832,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36833,"t":"code","b":[201],"m":"ret"},{"a":36834,"l":"shotRange","c":"The shot's range in $70AF: sixteen times the weapon's $12.","t":"code","b":[221,42,194,93],"m":"ld","oa":24002,"o":"ix,($5DC2)","x":[36778,37464]},{"a":36838,"t":"code","b":[221,126,18],"m":"ld","o":"a,(ix+$12)"},{"a":36841,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":36843,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":36844,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":36845,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":36846,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":36847,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":36848,"t":"code","b":[34,175,112],"m":"ld","oa":28847,"o":"($70AF),hl"},{"a":36851,"t":"code","b":[201],"m":"ret"},{"a":36852,"l":"saveCursor","c":"The cursor ($5DC7) and the view ($5DC5) kept.","t":"code","b":[42,17,93],"m":"ld","oa":23825,"o":"hl,($5D11)","x":[36781,37461,39598]},{"a":36855,"t":"code","b":[34,199,93],"m":"ld","oa":24007,"o":"($5DC7),hl"},{"a":36858,"t":"code","b":[42,252,92],"m":"ld","oa":23804,"o":"hl,($5CFC)"},{"a":36861,"t":"code","b":[34,197,93],"m":"ld","oa":24005,"o":"($5DC5),hl"},{"a":36864,"t":"code","b":[201],"m":"ret"},{"a":36865,"l":"shotFrom","c":"The line's end at the crosshair ($7095, $7097).","t":"code","b":[205,167,139],"m":"call","oa":35751,"o":"crossPos","x":[36784,37470,37549,39686]},{"a":36868,"t":"code","b":[42,201,93],"m":"ld","oa":24009,"o":"hl,($5DC9)"},{"a":36871,"t":"code","b":[34,149,112],"m":"ld","oa":28821,"o":"($7095),hl"},{"a":36874,"t":"code","b":[42,203,93],"m":"ld","oa":24011,"o":"hl,($5DCB)"},{"a":36877,"t":"code","b":[34,151,112],"m":"ld","oa":28823,"o":"($7097),hl"},{"a":36880,"t":"code","b":[201],"m":"ret"},{"a":36881,"l":"shotStart","c":"The shot starts from the unit: the view as it was when fire mode began, the dot at the unit's pixel ($5DBE, $5DBF), the view drawn with tile 0 over the unit's square (so that the shot does not stop at the unit's own dots), the trail emptied and no dots flown yet ($70B1).","t":"code","b":[42,188,93],"m":"ld","oa":23996,"o":"hl,($5DBC)","x":[36787,37885,39689]},{"a":36884,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":36887,"t":"code","b":[58,190,93],"m":"ld","oa":23998,"o":"a,($5DBE)"},{"a":36890,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":36893,"t":"code","b":[58,191,93],"m":"ld","oa":23999,"o":"a,($5DBF)"},{"a":36896,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":36899,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":36902,"t":"code","b":[42,192,93],"m":"ld","oa":24000,"o":"hl,($5DC0)"},{"a":36905,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":36906,"t":"code","b":[36],"m":"inc","o":"h"},{"a":36907,"t":"code","b":[44],"m":"inc","o":"l"},{"a":36908,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":36911,"t":"code","b":[175],"m":"xor","o":"a"},{"a":36912,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":36915,"t":"code","b":[205,85,138],"m":"call","oa":35413,"o":"trailClear"},{"a":36918,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":36921,"t":"code","b":[34,178,93],"m":"ld","oa":23986,"o":"($5DB2),hl"},{"a":36924,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":36927,"t":"code","b":[34,177,112],"m":"ld","oa":28849,"o":"($70B1),hl"},{"a":36930,"t":"code","b":[201],"m":"ret"},{"a":36931,"l":"shotHit","c":"The chance: a random number from 0 to 99 below it ($5DCD) is a hit, with C, and the line stays. A miss by more moves the line's end ($7095, $7097): each way by up to the distance ($5DCE, the longer of the two differences doubled plus the shorter) times half the miss plus one ($5DD0), over a random number (scatter).","t":"code","b":[62,100],"m":"ld","o":"a,$64","x":[36790,37473,37552,39692]},{"a":36933,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":36936,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":36939,"t":"code","b":[33,205,93],"m":"ld","o":"hl,$5DCD"},{"a":36942,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":36943,"t":"code","b":[216],"m":"ret","o":"c"},{"a":36944,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":36945,"t":"code","b":[60],"m":"inc","o":"a"},{"a":36946,"t":"code","b":[50,212,93],"m":"ld","oa":24020,"o":"($5DD4),a"},{"a":36949,"t":"code","b":[42,145,112],"m":"ld","oa":28817,"o":"hl,(lineVars)"},{"a":36952,"t":"code","b":[237,91,149,112],"m":"ld","oa":28821,"o":"de,($7095)"},{"a":36956,"t":"code","b":[183],"m":"or","o":"a"},{"a":36957,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":36959,"t":"code","b":[56,5],"m":"jr","oa":36966,"o":"c,$9066"},{"a":36961,"t":"code","b":[34,157,112],"m":"ld","oa":28829,"o":"($709D),hl"},{"a":36964,"t":"code","b":[24,13],"m":"jr","oa":36979,"o":"$9073"},{"a":36966,"t":"code","b":[42,149,112],"m":"ld","oa":28821,"o":"hl,($7095)","x":[36959]},{"a":36969,"t":"code","b":[237,91,145,112],"m":"ld","oa":28817,"o":"de,(lineVars)"},{"a":36973,"t":"code","b":[183],"m":"or","o":"a"},{"a":36974,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":36976,"t":"code","b":[34,157,112],"m":"ld","oa":28829,"o":"($709D),hl"},{"a":36979,"t":"code","b":[42,147,112],"m":"ld","oa":28819,"o":"hl,($7093)","x":[36964]},{"a":36982,"t":"code","b":[237,91,151,112],"m":"ld","oa":28823,"o":"de,($7097)"},{"a":36986,"t":"code","b":[183],"m":"or","o":"a"},{"a":36987,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":36989,"t":"code","b":[56,5],"m":"jr","oa":36996,"o":"c,$9084"},{"a":36991,"t":"code","b":[34,159,112],"m":"ld","oa":28831,"o":"($709F),hl"},{"a":36994,"t":"code","b":[24,13],"m":"jr","oa":37009,"o":"$9091"},{"a":36996,"t":"code","b":[42,151,112],"m":"ld","oa":28823,"o":"hl,($7097)","x":[36989]},{"a":36999,"t":"code","b":[237,91,147,112],"m":"ld","oa":28819,"o":"de,($7093)"},{"a":37003,"t":"code","b":[183],"m":"or","o":"a"},{"a":37004,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":37006,"t":"code","b":[34,159,112],"m":"ld","oa":28831,"o":"($709F),hl"},{"a":37009,"t":"code","b":[42,159,112],"m":"ld","oa":28831,"o":"hl,($709F)","x":[36994]},{"a":37012,"t":"code","b":[237,91,157,112],"m":"ld","oa":28829,"o":"de,($709D)"},{"a":37016,"t":"code","b":[183],"m":"or","o":"a"},{"a":37017,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":37019,"t":"code","b":[56,14],"m":"jr","oa":37035,"o":"c,$90AB"},{"a":37021,"t":"code","b":[42,159,112],"m":"ld","oa":28831,"o":"hl,($709F)"},{"a":37024,"t":"code","b":[237,91,157,112],"m":"ld","oa":28829,"o":"de,($709D)"},{"a":37028,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37029,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37030,"t":"code","b":[34,206,93],"m":"ld","oa":24014,"o":"($5DCE),hl"},{"a":37033,"t":"code","b":[24,12],"m":"jr","oa":37047,"o":"$90B7"},{"a":37035,"t":"code","b":[42,157,112],"m":"ld","oa":28829,"o":"hl,($709D)","x":[37019]},{"a":37038,"t":"code","b":[237,91,159,112],"m":"ld","oa":28831,"o":"de,($709F)"},{"a":37042,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37043,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37044,"t":"code","b":[34,206,93],"m":"ld","oa":24014,"o":"($5DCE),hl"},{"a":37047,"t":"code","b":[58,212,93],"m":"ld","oa":24020,"o":"a,($5DD4)","x":[37033]},{"a":37050,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":37052,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37053,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37054,"t":"code","b":[237,91,206,93],"m":"ld","oa":24014,"o":"de,($5DCE)"},{"a":37058,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000"},{"a":37061,"t":"code","b":[25],"m":"add","o":"hl,de","x":[37062]},{"a":37062,"t":"code","b":[16,253],"m":"djnz","oa":37061,"o":"$90C5"},{"a":37064,"t":"code","b":[34,208,93],"m":"ld","oa":24016,"o":"($5DD0),hl"},{"a":37067,"t":"code","b":[42,149,112],"m":"ld","oa":28821,"o":"hl,($7095)"},{"a":37070,"t":"code","b":[34,210,93],"m":"ld","oa":24018,"o":"($5DD2),hl"},{"a":37073,"t":"code","b":[205,208,139],"m":"call","oa":35792,"o":"scatter"},{"a":37076,"t":"code","b":[34,149,112],"m":"ld","oa":28821,"o":"($7095),hl"},{"a":37079,"t":"code","b":[42,151,112],"m":"ld","oa":28823,"o":"hl,($7097)"},{"a":37082,"t":"code","b":[34,210,93],"m":"ld","oa":24018,"o":"($5DD2),hl"},{"a":37085,"t":"code","b":[205,208,139],"m":"call","oa":35792,"o":"scatter"},{"a":37088,"t":"code","b":[34,151,112],"m":"ld","oa":28823,"o":"($7097),hl"},{"a":37091,"t":"code","b":[201],"m":"ret"},{"a":37092,"l":"shotPath","c":"The shot flies; when it stops at something drawn, what is there is hit. An explosive weapon (its kind's $00 has bit 2 set) bursts ($91A2). Otherwise the sparks at the dot and the damage of the weapon's $0F rolled (attackRoll); terrain is broken, with its victory points and its fires, the views and the scenario's hook at $B627; a unit takes the blow ($9175). Then whether the game is over.","t":"code","b":[205,177,137],"m":"call","oa":35249,"o":"shotFlight","x":[36793,37888]},{"a":37095,"t":"code","b":[58,165,93],"m":"ld","oa":23973,"o":"a,($5DA5)"},{"a":37098,"t":"code","b":[183],"m":"or","o":"a"},{"a":37099,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37100,"t":"code","b":[33,95,230],"m":"ld","o":"hl,$E65F"},{"a":37103,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":37106,"t":"code","b":[221,42,194,93],"m":"ld","oa":24002,"o":"ix,($5DC2)"},{"a":37110,"t":"code","b":[221,203,0,86],"m":"bit","o":"2,(ix+$00)"},{"a":37114,"t":"code","b":[194,162,145],"m":"jp","oa":37282,"o":"nz,shotBlast"},{"a":37117,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":37120,"t":"code","b":[62,16],"m":"ld","o":"a,$10"},{"a":37122,"t":"code","b":[50,218,93],"m":"ld","oa":24026,"o":"($5DDA),a"},{"a":37125,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":37127,"t":"code","b":[50,221,93],"m":"ld","oa":24029,"o":"($5DDD),a"},{"a":37130,"t":"code","b":[62,21],"m":"ld","o":"a,$15"},{"a":37132,"t":"code","b":[50,222,93],"m":"ld","oa":24030,"o":"($5DDE),a"},{"a":37135,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":37138,"t":"code","b":[50,219,93],"m":"ld","oa":24027,"o":"($5DDB),a"},{"a":37141,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":37144,"t":"code","b":[50,220,93],"m":"ld","oa":24028,"o":"($5DDC),a"},{"a":37147,"t":"code","b":[205,117,148],"m":"call","oa":38005,"o":"sparks"},{"a":37150,"t":"code","b":[205,37,140],"m":"call","oa":35877,"o":"shotSquare"},{"a":37153,"t":"code","b":[221,42,194,93],"m":"ld","oa":24002,"o":"ix,($5DC2)"},{"a":37157,"t":"code","b":[221,126,15],"m":"ld","o":"a,(ix+$0F)"},{"a":37160,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":37163,"t":"code","b":[205,149,128],"m":"call","oa":32917,"o":"attackRoll"},{"a":37166,"t":"code","b":[33,95,230],"m":"ld","o":"hl,$E65F"},{"a":37169,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":37172,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":37175,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":37178,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37179,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":37181,"t":"code","b":[48,54],"m":"jr","oa":37237,"o":"nc,shotUnit"},{"a":37183,"t":"code","b":[205,48,128],"m":"call","oa":32816,"o":"breakTerrain"},{"a":37186,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":37189,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":37192,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37193,"t":"code","b":[205,1,146],"m":"call","oa":37377,"o":"scoreDamage"},{"a":37196,"t":"code","b":[205,232,153],"m":"call","oa":39400,"o":"spreadFires"},{"a":37199,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":37203,"t":"code","b":[205,106,114],"m":"call","oa":29290,"o":"findSeen"},{"a":37206,"t":"code","b":[205,34,116],"m":"call","oa":29730,"o":"showSeen"},{"a":37209,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":37212,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":37215,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":37218,"t":"code","b":[205,39,182],"m":"call","oa":46631,"o":"$B627"},{"a":37221,"t":"code","b":[42,214,93],"m":"ld","oa":24022,"o":"hl,($5DD6)"},{"a":37224,"t":"code","b":[34,147,112],"m":"ld","oa":28819,"o":"($7093),hl"},{"a":37227,"t":"code","b":[42,216,93],"m":"ld","oa":24024,"o":"hl,($5DD8)"},{"a":37230,"t":"code","b":[34,145,112],"m":"ld","oa":28817,"o":"(lineVars),hl"},{"a":37233,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":37236,"t":"code","b":[201],"m":"ret"},{"a":37237,"l":"shotUnit","c":"A shot hits unit A: its record in $5D3C, its armour on the side it lands on, the hit shown and the damage taken, the bottom line, the death of a unit left with no health, the view and sound effect 3; then whether the game is over.","t":"code","b":[50,57,93],"m":"ld","oa":23865,"o":"($5D39),a","x":[37181]},{"a":37240,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":37243,"t":"code","b":[221,34,60,93],"m":"ld","oa":23868,"o":"($5D3C),ix"},{"a":37247,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":37251,"t":"code","b":[205,162,129],"m":"call","oa":33186,"o":"armourHit"},{"a":37254,"t":"code","b":[205,113,131],"m":"call","oa":33649,"o":"hitShow"},{"a":37257,"t":"code","b":[205,251,129],"m":"call","oa":33275,"o":"takeDamage"},{"a":37260,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":37263,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":37266,"t":"code","b":[183],"m":"or","o":"a"},{"a":37267,"t":"code","b":[204,166,131],"m":"call","oa":33702,"o":"z,deathShow"},{"a":37270,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":37273,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":37275,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":37278,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":37281,"t":"code","b":[201],"m":"ret"},{"a":37282,"l":"shotBlast","c":"An explosive shot bursts: on the square before a wall on the line ($9A47), with the strength of the weapon's $0F ($968E) round it ($9696), its fires, and whether the game is over.","t":"code","b":[205,37,140],"m":"call","oa":35877,"o":"shotSquare","x":[37114]},{"a":37285,"t":"code","b":[205,71,154],"m":"call","oa":39495,"o":"blastSquare"},{"a":37288,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":37291,"t":"code","b":[34,148,150],"m":"ld","oa":38548,"o":"($9694),hl"},{"a":37294,"t":"code","b":[221,126,15],"m":"ld","o":"a,(ix+$0F)"},{"a":37297,"t":"code","b":[50,142,150],"m":"ld","oa":38542,"o":"(blastVars),a"},{"a":37300,"t":"code","b":[205,150,150],"m":"call","oa":38550,"o":"explode"},{"a":37303,"t":"code","b":[205,232,153],"m":"call","oa":39400,"o":"spreadFires"},{"a":37306,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":37309,"t":"code","b":[201],"m":"ret"},{"a":37310,"l":"shotDone","c":"After a shot: the unit's points ($5D35), and half the price (in $6D4D, which payAP wrote) added to its $22; the cursor and the view back. In a player's turn the view drawn and the scenario's hook at $B627; a dead unit sets $5DE8. NZ.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[36799,37938,37943]},{"a":37314,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":37317,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":37320,"t":"code","b":[58,77,109],"m":"ld","oa":27981,"o":"a,(apCost)"},{"a":37323,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":37325,"t":"code","b":[221,134,34],"m":"add","o":"a,(ix+$22)"},{"a":37328,"t":"code","b":[221,119,34],"m":"ld","o":"(ix+$22),a"},{"a":37331,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37332,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":37335,"t":"code","b":[42,199,93],"m":"ld","oa":24007,"o":"hl,($5DC7)"},{"a":37338,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":37341,"t":"code","b":[42,197,93],"m":"ld","oa":24005,"o":"hl,($5DC5)"},{"a":37344,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":37347,"t":"code","b":[33,159,231],"m":"ld","o":"hl,$E79F"},{"a":37350,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":37353,"t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)"},{"a":37356,"t":"code","b":[183],"m":"or","o":"a"},{"a":37357,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":37358,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":37361,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":37364,"t":"code","b":[205,39,182],"m":"call","oa":46631,"o":"$B627"},{"a":37367,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":37370,"t":"code","b":[183],"m":"or","o":"a"},{"a":37371,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":37372,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37373,"t":"code","b":[50,232,93],"m":"ld","oa":24040,"o":"($5DE8),a"},{"a":37376,"t":"code","b":[201],"m":"ret"},{"a":37377,"l":"scoreDamage","c":"Victory points for the damage done to terrain ($5D8C): to side 0 when the scenario's $B704 is set, to side 1 when $B705 is, each with the morale shock of it ($829E). $5D4D is set to the side, but moraleShock goes by $5DA0, the side that scored the last kill (unitDies, $827C).","t":"code","b":[58,4,183],"m":"ld","oa":46852,"o":"a,($B704)","x":[32562,37193,39100]},{"a":37380,"t":"code","b":[183],"m":"or","o":"a"},{"a":37381,"t":"code","b":[40,18],"m":"jr","oa":37401,"o":"z,$9219"},{"a":37383,"t":"code","b":[33,15,183],"m":"ld","o":"hl,$B70F"},{"a":37386,"t":"code","b":[58,140,93],"m":"ld","oa":23948,"o":"a,($5D8C)"},{"a":37389,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":37390,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37391,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37392,"t":"code","b":[50,77,93],"m":"ld","oa":23885,"o":"($5D4D),a"},{"a":37395,"t":"code","b":[58,140,93],"m":"ld","oa":23948,"o":"a,($5D8C)"},{"a":37398,"t":"code","b":[205,158,130],"m":"call","oa":33438,"o":"moraleShock"},{"a":37401,"t":"code","b":[58,5,183],"m":"ld","oa":46853,"o":"a,($B705)","x":[37381]},{"a":37404,"t":"code","b":[183],"m":"or","o":"a"},{"a":37405,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37406,"t":"code","b":[33,16,183],"m":"ld","o":"hl,$B710"},{"a":37409,"t":"code","b":[58,140,93],"m":"ld","oa":23948,"o":"a,($5D8C)"},{"a":37412,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":37413,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":37414,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":37416,"t":"code","b":[50,77,93],"m":"ld","oa":23885,"o":"($5D4D),a"},{"a":37419,"t":"code","b":[58,140,93],"m":"ld","oa":23948,"o":"a,($5D8C)"},{"a":37422,"t":"code","b":[205,158,130],"m":"call","oa":33438,"o":"moraleShock"},{"a":37425,"t":"code","b":[201],"m":"ret"},{"a":37426,"l":"autoFire","c":"Option 0, auto fire, a burst along a line. Too few points for three rounds: message $14. The first point is under the crosshair and the second chosen after it (message $4F; outside the field of view, message $67), each with the chance applied (shotHit). Then the rounds are chosen (message $50, from 3 to as many as the points pay for), and the burst fired ($9360).","t":"code","b":[58,223,93],"m":"ld","oa":24031,"o":"a,($5DDF)"},{"a":37429,"t":"code","b":[50,205,93],"m":"ld","oa":24013,"o":"($5DCD),a"},{"a":37432,"t":"code","b":[33,224,93],"m":"ld","o":"hl,$5DE0"},{"a":37435,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":37436,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":37437,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":37438,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":37439,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":37442,"t":"code","b":[185],"m":"cp","o":"c"},{"a":37443,"t":"code","b":[48,6],"m":"jr","oa":37451,"o":"nc,$924B"},{"a":37445,"t":"code","b":[62,20],"m":"ld","o":"a,$14"},{"a":37447,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":37450,"t":"code","b":[201],"m":"ret"},{"a":37451,"t":"code","b":[205,195,143],"m":"call","oa":36803,"o":"ammoUse","x":[37443]},{"a":37454,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37455,"t":"code","b":[253,52,4],"m":"inc","o":"(iy+$04)"},{"a":37458,"t":"code","b":[221,52,36],"m":"inc","o":"(ix+$24)"},{"a":37461,"t":"code","b":[205,244,143],"m":"call","oa":36852,"o":"saveCursor"},{"a":37464,"t":"code","b":[205,226,143],"m":"call","oa":36834,"o":"shotRange"},{"a":37467,"t":"code","b":[205,122,139],"m":"call","oa":35706,"o":"drawCrosshair"},{"a":37470,"t":"code","b":[205,1,144],"m":"call","oa":36865,"o":"shotFrom"},{"a":37473,"t":"code","b":[205,67,144],"m":"call","oa":36931,"o":"shotHit"},{"a":37476,"t":"code","b":[42,149,112],"m":"ld","oa":28821,"o":"hl,($7095)"},{"a":37479,"t":"code","b":[34,128,93],"m":"ld","oa":23936,"o":"($5D80),hl"},{"a":37482,"t":"code","b":[42,151,112],"m":"ld","oa":28823,"o":"hl,($7097)"},{"a":37485,"t":"code","b":[34,126,93],"m":"ld","oa":23934,"o":"($5D7E),hl"},{"a":37488,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":37491,"t":"code","b":[62,79],"m":"ld","o":"a,$4F"},{"a":37493,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":37496,"t":"code","b":[205,21,98],"m":"call","oa":25109,"o":"crosshairLoop","x":[37504,37509]},{"a":37499,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":37502,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":37504,"t":"code","b":[32,246],"m":"jr","oa":37496,"o":"nz,$9278"},{"a":37506,"t":"code","b":[205,84,140],"m":"call","oa":35924,"o":"crossSquare"},{"a":37509,"t":"code","b":[40,241],"m":"jr","oa":37496,"o":"z,$9278"},{"a":37511,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":37514,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":37517,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":37521,"t":"code","b":[205,38,115],"m":"call","oa":29478,"o":"inView"},{"a":37524,"t":"code","b":[183],"m":"or","o":"a"},{"a":37525,"t":"code","b":[40,16],"m":"jr","oa":37543,"o":"z,$92A7"},{"a":37527,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":37530,"t":"code","b":[62,103],"m":"ld","o":"a,$67"},{"a":37532,"t":"code","b":[205,108,109],"m":"call","oa":28012,"o":"errorText"},{"a":37535,"t":"code","b":[205,127,141],"m":"call","oa":36223,"o":"fireInfo"},{"a":37538,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37539,"t":"code","b":[50,26,93],"m":"ld","oa":23834,"o":"($5D1A),a"},{"a":37542,"t":"code","b":[201],"m":"ret"},{"a":37543,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView","x":[37525]},{"a":37546,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":37549,"t":"code","b":[205,1,144],"m":"call","oa":36865,"o":"shotFrom"},{"a":37552,"t":"code","b":[205,67,144],"m":"call","oa":36931,"o":"shotHit"},{"a":37555,"t":"code","b":[42,149,112],"m":"ld","oa":28821,"o":"hl,($7095)"},{"a":37558,"t":"code","b":[34,132,93],"m":"ld","oa":23940,"o":"($5D84),hl"},{"a":37561,"t":"code","b":[42,151,112],"m":"ld","oa":28823,"o":"hl,($7097)"},{"a":37564,"t":"code","b":[34,130,93],"m":"ld","oa":23938,"o":"($5D82),hl"},{"a":37567,"t":"code","b":[62,80],"m":"ld","o":"a,$50"},{"a":37569,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":37572,"t":"code","b":[33,5,26],"m":"ld","o":"hl,$1A05"},{"a":37575,"t":"code","b":[34,137,93],"m":"ld","oa":23945,"o":"($5D89),hl"},{"a":37578,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":37580,"t":"code","b":[50,135,93],"m":"ld","oa":23943,"o":"($5D87),a"},{"a":37583,"t":"code","b":[58,224,93],"m":"ld","oa":24032,"o":"a,($5DE0)"},{"a":37586,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37587,"t":"code","b":[221,126,6],"m":"ld","o":"a,(ix+$06)"},{"a":37590,"t":"code","b":[14,0],"m":"ld","o":"c,$00"},{"a":37592,"t":"code","b":[144],"m":"sub","o":"b","x":[37596]},{"a":37593,"t":"code","b":[56,3],"m":"jr","oa":37598,"o":"c,$92DE"},{"a":37595,"t":"code","b":[12],"m":"inc","o":"c"},{"a":37596,"t":"code","b":[24,250],"m":"jr","oa":37592,"o":"$92D8"},{"a":37598,"t":"code","b":[121],"m":"ld","o":"a,c","x":[37593]},{"a":37599,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37600,"t":"code","b":[50,136,93],"m":"ld","oa":23944,"o":"($5D88),a"},{"a":37603,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":37606,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":37609,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":37612,"t":"code","b":[62,3],"m":"ld","o":"a,$03"},{"a":37614,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":37617,"t":"code","b":[205,251,146],"m":"call","oa":37627,"o":"chooseRounds"},{"a":37620,"t":"code","b":[205,207,153],"m":"call","oa":39375,"o":"clearFires"},{"a":37623,"t":"code","b":[205,96,147],"m":"call","oa":37728,"o":"burst"},{"a":37626,"t":"code","b":[201],"m":"ret"},{"a":37627,"l":"chooseRounds","c":"Choose the rounds ($5D86, shown at $5D89): one way (bit 1 of the controls) counts up, round from the most ($5D88 less one) to 3 ($5D87); the other (bit 2) counts down, round the other way. Fire takes it, with sound effect 2.","t":"code","b":[42,137,93],"m":"ld","oa":23945,"o":"hl,($5D89)","x":[37617,37689,37697,37717,37726,40047,40857]},{"a":37630,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":37633,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":37635,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":37638,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":37641,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":37644,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":37647,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37648,"t":"code","b":[40,5],"m":"jr","oa":37655,"o":"z,$9317"},{"a":37650,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":37652,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":37655,"t":"code","b":[205,209,102],"m":"call","oa":26321,"o":"repeatDelay","x":[37648,37701]},{"a":37658,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":37661,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":37664,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":37666,"t":"code","b":[32,6],"m":"jr","oa":37674,"o":"nz,$932A"},{"a":37668,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":37670,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":37673,"t":"code","b":[201],"m":"ret"},{"a":37674,"t":"code","b":[203,79],"m":"bit","o":"1,a","x":[37666]},{"a":37676,"t":"code","b":[32,21],"m":"jr","oa":37699,"o":"nz,$9343"},{"a":37678,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":37681,"t":"code","b":[60],"m":"inc","o":"a"},{"a":37682,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":37685,"t":"code","b":[33,136,93],"m":"ld","o":"hl,$5D88"},{"a":37688,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":37689,"t":"code","b":[56,192],"m":"jr","oa":37627,"o":"c,chooseRounds"},{"a":37691,"t":"code","b":[58,135,93],"m":"ld","oa":23943,"o":"a,($5D87)"},{"a":37694,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":37697,"t":"code","b":[24,184],"m":"jr","oa":37627,"o":"chooseRounds"},{"a":37699,"t":"code","b":[203,87],"m":"bit","o":"2,a","x":[37676]},{"a":37701,"t":"code","b":[32,208],"m":"jr","oa":37655,"o":"nz,$9317"},{"a":37703,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":37706,"t":"code","b":[183],"m":"or","o":"a"},{"a":37707,"t":"code","b":[40,10],"m":"jr","oa":37719,"o":"z,$9357"},{"a":37709,"t":"code","b":[61],"m":"dec","o":"a"},{"a":37710,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":37713,"t":"code","b":[33,135,93],"m":"ld","o":"hl,$5D87"},{"a":37716,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":37717,"t":"code","b":[48,164],"m":"jr","oa":37627,"o":"nc,chooseRounds"},{"a":37719,"t":"code","b":[58,136,93],"m":"ld","oa":23944,"o":"a,($5D88)","x":[37707]},{"a":37722,"t":"code","b":[61],"m":"dec","o":"a"},{"a":37723,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":37726,"t":"code","b":[24,155],"m":"jr","oa":37627,"o":"chooseRounds"},{"a":37728,"l":"burst","c":"The burst. For each round: its price paid and its ammunition used; the line's end moved along from the first point ($5D80, $5D7E) to the second ($5D84, $5D82) by the round's share of the way (div32, div32Round); the flight and what it hits. It stops when the points or the ammunition run out, or the unit dies.","t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000","x":[37623]},{"a":37731,"t":"code","b":[34,121,93],"m":"ld","oa":23929,"o":"($5D79),hl"},{"a":37734,"t":"code","b":[42,130,93],"m":"ld","oa":23938,"o":"hl,($5D82)"},{"a":37737,"t":"code","b":[237,75,126,93],"m":"ld","oa":23934,"o":"bc,($5D7E)"},{"a":37741,"t":"code","b":[167],"m":"and","o":"a"},{"a":37742,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":37744,"t":"code","b":[48,15],"m":"jr","oa":37761,"o":"nc,$9381"},{"a":37746,"t":"code","b":[42,126,93],"m":"ld","oa":23934,"o":"hl,($5D7E)"},{"a":37749,"t":"code","b":[237,75,130,93],"m":"ld","oa":23938,"o":"bc,($5D82)"},{"a":37753,"t":"code","b":[167],"m":"and","o":"a"},{"a":37754,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":37756,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":37758,"t":"code","b":[50,121,93],"m":"ld","oa":23929,"o":"($5D79),a"},{"a":37761,"t":"code","b":[34,115,93],"m":"ld","oa":23923,"o":"($5D73),hl","x":[37744]},{"a":37764,"t":"code","b":[42,132,93],"m":"ld","oa":23940,"o":"hl,($5D84)"},{"a":37767,"t":"code","b":[237,75,128,93],"m":"ld","oa":23936,"o":"bc,($5D80)"},{"a":37771,"t":"code","b":[167],"m":"and","o":"a"},{"a":37772,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":37774,"t":"code","b":[48,15],"m":"jr","oa":37791,"o":"nc,$939F"},{"a":37776,"t":"code","b":[42,128,93],"m":"ld","oa":23936,"o":"hl,($5D80)"},{"a":37779,"t":"code","b":[237,75,132,93],"m":"ld","oa":23940,"o":"bc,($5D84)"},{"a":37783,"t":"code","b":[167],"m":"and","o":"a"},{"a":37784,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":37786,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":37788,"t":"code","b":[50,122,93],"m":"ld","oa":23930,"o":"($5D7A),a"},{"a":37791,"t":"code","b":[34,117,93],"m":"ld","oa":23925,"o":"($5D75),hl","x":[37774]},{"a":37794,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37795,"t":"code","b":[50,139,93],"m":"ld","oa":23947,"o":"($5D8B),a"},{"a":37798,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":37801,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37802,"t":"code","b":[197],"m":"push","o":"bc","x":[37935]},{"a":37803,"t":"code","b":[58,224,93],"m":"ld","oa":24032,"o":"a,($5DE0)"},{"a":37806,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":37807,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":37810,"t":"code","b":[218,54,148],"m":"jp","oa":37942,"o":"c,$9436"},{"a":37813,"t":"code","b":[205,195,143],"m":"call","oa":36803,"o":"ammoUse"},{"a":37816,"t":"code","b":[40,124],"m":"jr","oa":37942,"o":"z,$9436"},{"a":37818,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":37821,"t":"code","b":[33,139,93],"m":"ld","o":"hl,$5D8B"},{"a":37824,"t":"code","b":[61],"m":"dec","o":"a"},{"a":37825,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":37826,"t":"code","b":[205,59,148],"m":"call","oa":37947,"o":"div32"},{"a":37829,"t":"code","b":[237,67,119,93],"m":"ld","oa":23927,"o":"($5D77),bc"},{"a":37833,"t":"code","b":[42,115,93],"m":"ld","oa":23923,"o":"hl,($5D73)"},{"a":37836,"t":"code","b":[205,82,148],"m":"call","oa":37970,"o":"div32Round"},{"a":37839,"t":"code","b":[42,126,93],"m":"ld","oa":23934,"o":"hl,($5D7E)"},{"a":37842,"t":"code","b":[58,121,93],"m":"ld","oa":23929,"o":"a,($5D79)"},{"a":37845,"t":"code","b":[183],"m":"or","o":"a"},{"a":37846,"t":"code","b":[32,3],"m":"jr","oa":37851,"o":"nz,$93DB"},{"a":37848,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37849,"t":"code","b":[24,3],"m":"jr","oa":37854,"o":"$93DE"},{"a":37851,"t":"code","b":[167],"m":"and","o":"a","x":[37846]},{"a":37852,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":37854,"t":"code","b":[34,151,112],"m":"ld","oa":28823,"o":"($7097),hl","x":[37849]},{"a":37857,"t":"code","b":[42,117,93],"m":"ld","oa":23925,"o":"hl,($5D75)"},{"a":37860,"t":"code","b":[237,75,119,93],"m":"ld","oa":23927,"o":"bc,($5D77)"},{"a":37864,"t":"code","b":[205,82,148],"m":"call","oa":37970,"o":"div32Round"},{"a":37867,"t":"code","b":[42,128,93],"m":"ld","oa":23936,"o":"hl,($5D80)"},{"a":37870,"t":"code","b":[58,122,93],"m":"ld","oa":23930,"o":"a,($5D7A)"},{"a":37873,"t":"code","b":[183],"m":"or","o":"a"},{"a":37874,"t":"code","b":[32,3],"m":"jr","oa":37879,"o":"nz,$93F7"},{"a":37876,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":37877,"t":"code","b":[24,3],"m":"jr","oa":37882,"o":"$93FA"},{"a":37879,"t":"code","b":[167],"m":"and","o":"a","x":[37874]},{"a":37880,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":37882,"t":"code","b":[34,149,112],"m":"ld","oa":28821,"o":"($7095),hl","x":[37877]},{"a":37885,"t":"code","b":[205,17,144],"m":"call","oa":36881,"o":"shotStart"},{"a":37888,"t":"code","b":[205,228,144],"m":"call","oa":37092,"o":"shotPath"},{"a":37891,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":37895,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":37898,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":37901,"t":"code","b":[175],"m":"xor","o":"a"},{"a":37902,"t":"code","b":[50,22,93],"m":"ld","oa":23830,"o":"($5D16),a"},{"a":37905,"t":"code","b":[33,159,231],"m":"ld","o":"hl,$E79F"},{"a":37908,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":37911,"t":"code","b":[33,139,93],"m":"ld","o":"hl,$5D8B"},{"a":37914,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":37915,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":37916,"t":"code","b":[221,126,8],"m":"ld","o":"a,(ix+$08)"},{"a":37919,"t":"code","b":[183],"m":"or","o":"a"},{"a":37920,"t":"code","b":[40,16],"m":"jr","oa":37938,"o":"z,$9432"},{"a":37922,"t":"code","b":[42,214,93],"m":"ld","oa":24022,"o":"hl,($5DD6)"},{"a":37925,"t":"code","b":[34,147,112],"m":"ld","oa":28819,"o":"($7093),hl"},{"a":37928,"t":"code","b":[42,216,93],"m":"ld","oa":24024,"o":"hl,($5DD8)"},{"a":37931,"t":"code","b":[34,145,112],"m":"ld","oa":28817,"o":"(lineVars),hl"},{"a":37934,"t":"code","b":[5],"m":"dec","o":"b"},{"a":37935,"t":"code","b":[194,170,147],"m":"jp","oa":37802,"o":"nz,$93AA"},{"a":37938,"t":"code","b":[205,190,145],"m":"call","oa":37310,"o":"shotDone","x":[37920]},{"a":37941,"t":"code","b":[201],"m":"ret"},{"a":37942,"t":"code","b":[193],"m":"pop","o":"bc","x":[37810,37816]},{"a":37943,"t":"code","b":[205,190,145],"m":"call","oa":37310,"o":"shotDone"},{"a":37946,"t":"code","b":[201],"m":"ret"},{"a":37947,"l":"div32","c":"BC = 32 x A divided by B, rounded down; 0, with Z, for B = 0.","t":"code","b":[111],"m":"ld","o":"l,a","x":[32422,37826]},{"a":37948,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":37950,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37951,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37952,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37953,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37954,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37955,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":37956,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":37958,"t":"code","b":[1,0,0],"m":"ld","o":"bc,$0000"},{"a":37961,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":37962,"t":"code","b":[183],"m":"or","o":"a"},{"a":37963,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37964,"t":"code","b":[237,82],"m":"sbc","o":"hl,de","x":[37968]},{"a":37966,"t":"code","b":[216],"m":"ret","o":"c"},{"a":37967,"t":"code","b":[3],"m":"inc","o":"bc"},{"a":37968,"t":"code","b":[24,250],"m":"jr","oa":37964,"o":"$944C"},{"a":37970,"l":"div32Round","c":"DE = 32 x HL divided by BC, rounded to the nearest; 0, with Z, for BC = 0.","t":"code","b":[17,0,0],"m":"ld","o":"de,$0000","x":[32431,37836,37864]},{"a":37973,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":37974,"t":"code","b":[183],"m":"or","o":"a"},{"a":37975,"t":"code","b":[32,3],"m":"jr","oa":37980,"o":"nz,$945C"},{"a":37977,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":37978,"t":"code","b":[183],"m":"or","o":"a"},{"a":37979,"t":"code","b":[200],"m":"ret","o":"z"},{"a":37980,"t":"code","b":[41],"m":"add","o":"hl,hl","x":[37975]},{"a":37981,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37982,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37983,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37984,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":37985,"t":"code","b":[167],"m":"and","o":"a"},{"a":37986,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc","x":[37991]},{"a":37988,"t":"code","b":[56,3],"m":"jr","oa":37993,"o":"c,$9469"},{"a":37990,"t":"code","b":[19],"m":"inc","o":"de"},{"a":37991,"t":"code","b":[24,249],"m":"jr","oa":37986,"o":"$9462"},{"a":37993,"c":"The remainder against half of BC: at least half rounds up.","t":"code","b":[9],"m":"add","o":"hl,bc","x":[37988]},{"a":37994,"t":"code","b":[167],"m":"and","o":"a"},{"a":37995,"t":"code","b":[203,24],"m":"rr","o":"b"},{"a":37997,"t":"code","b":[203,25],"m":"rr","o":"c"},{"a":37999,"t":"code","b":[167],"m":"and","o":"a"},{"a":38000,"t":"code","b":[237,66],"m":"sbc","o":"hl,bc"},{"a":38002,"t":"code","b":[216],"m":"ret","o":"c"},{"a":38003,"t":"code","b":[19],"m":"inc","o":"de"},{"a":38004,"t":"code","b":[201],"m":"ret"},{"a":38005,"l":"sparks","c":"Sparks: ($5DDA) of them from pixel ($5DDB, $5DDC), each a cross of five dots flipped off and on as it moves by its step in the table at $954E, and back to the start from $AC; ($5DDE) moves, each dot with a click of noise from the refresh register R. Unless $5DDD is set, the view's colours fade every fourth move ($99B9), down to $42.","t":"code","b":[62,8],"m":"ld","o":"a,$08","x":[37147,38898]},{"a":38007,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":38010,"t":"code","b":[33,218,93],"m":"ld","o":"hl,$5DDA"},{"a":38013,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":38014,"t":"code","b":[253,33,78,149],"m":"ld","o":"iy,$954E"},{"a":38018,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":38021,"t":"code","b":[58,219,93],"m":"ld","oa":24027,"o":"a,($5DDB)","x":[38035]},{"a":38024,"t":"code","b":[253,119,2],"m":"ld","o":"(iy+$02),a"},{"a":38027,"t":"code","b":[58,220,93],"m":"ld","oa":24028,"o":"a,($5DDC)"},{"a":38030,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":38033,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":38035,"t":"code","b":[16,240],"m":"djnz","oa":38021,"o":"$9485"},{"a":38037,"t":"code","b":[33,71,4],"m":"ld","o":"hl,$0447"},{"a":38040,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":38043,"t":"code","b":[58,222,93],"m":"ld","oa":24030,"o":"a,($5DDE)"},{"a":38046,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":38047,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":38049,"t":"code","b":[50,166,93],"m":"ld","oa":23974,"o":"($5DA6),a"},{"a":38052,"t":"code","b":[197],"m":"push","o":"bc","x":[38164]},{"a":38053,"t":"code","b":[33,218,93],"m":"ld","o":"hl,$5DDA"},{"a":38056,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":38057,"t":"code","b":[253,33,78,149],"m":"ld","o":"iy,$954E"},{"a":38061,"t":"code","b":[197],"m":"push","o":"bc","x":[38124]},{"a":38062,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":38065,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":38068,"t":"code","b":[253,126,3],"m":"ld","o":"a,(iy+$03)"},{"a":38071,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":38074,"t":"code","b":[205,37,149],"m":"call","oa":38181,"o":"sparkDot"},{"a":38077,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":38080,"t":"code","b":[253,134,2],"m":"add","o":"a,(iy+$02)"},{"a":38083,"t":"code","b":[254,172],"m":"cp","o":"$AC"},{"a":38085,"t":"code","b":[48,80],"m":"jr","oa":38167,"o":"nc,$9517"},{"a":38087,"t":"code","b":[253,119,2],"m":"ld","o":"(iy+$02),a"},{"a":38090,"t":"code","b":[50,163,93],"m":"ld","oa":23971,"o":"($5DA3),a"},{"a":38093,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)"},{"a":38096,"t":"code","b":[253,134,3],"m":"add","o":"a,(iy+$03)"},{"a":38099,"t":"code","b":[254,172],"m":"cp","o":"$AC"},{"a":38101,"t":"code","b":[48,64],"m":"jr","oa":38167,"o":"nc,$9517"},{"a":38103,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":38106,"t":"code","b":[50,164,93],"m":"ld","oa":23972,"o":"($5DA4),a"},{"a":38109,"t":"code","b":[205,37,149],"m":"call","oa":38181,"o":"sparkDot"},{"a":38112,"t":"code","b":[237,95],"m":"ld","o":"a,r","x":[38179]},{"a":38114,"t":"code","b":[230,16],"m":"and","o":"$10"},{"a":38116,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":38118,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38119,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":38122,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":38124,"t":"code","b":[16,191],"m":"djnz","oa":38061,"o":"$94AD"},{"a":38126,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38127,"t":"code","b":[58,221,93],"m":"ld","oa":24029,"o":"a,($5DDD)"},{"a":38130,"t":"code","b":[183],"m":"or","o":"a"},{"a":38131,"t":"code","b":[32,31],"m":"jr","oa":38164,"o":"nz,$9514"},{"a":38133,"t":"code","b":[58,0,93],"m":"ld","oa":23808,"o":"a,($5D00)"},{"a":38136,"t":"code","b":[254,66],"m":"cp","o":"$42"},{"a":38138,"t":"code","b":[40,24],"m":"jr","oa":38164,"o":"z,$9514"},{"a":38140,"t":"code","b":[58,1,93],"m":"ld","oa":23809,"o":"a,($5D01)"},{"a":38143,"t":"code","b":[61],"m":"dec","o":"a"},{"a":38144,"t":"code","b":[50,1,93],"m":"ld","oa":23809,"o":"($5D01),a"},{"a":38147,"t":"code","b":[32,15],"m":"jr","oa":38164,"o":"nz,$9514"},{"a":38149,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":38151,"t":"code","b":[50,1,93],"m":"ld","oa":23809,"o":"($5D01),a"},{"a":38154,"t":"code","b":[58,0,93],"m":"ld","oa":23808,"o":"a,($5D00)"},{"a":38157,"t":"code","b":[61],"m":"dec","o":"a"},{"a":38158,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":38161,"t":"code","b":[205,185,153],"m":"call","oa":39353,"o":"fillView"},{"a":38164,"t":"code","b":[16,142],"m":"djnz","oa":38052,"o":"$94A4","x":[38131,38138,38147]},{"a":38166,"t":"code","b":[201],"m":"ret"},{"a":38167,"t":"code","b":[58,219,93],"m":"ld","oa":24027,"o":"a,($5DDB)","x":[38085,38101]},{"a":38170,"t":"code","b":[253,119,2],"m":"ld","o":"(iy+$02),a"},{"a":38173,"t":"code","b":[58,220,93],"m":"ld","oa":24028,"o":"a,($5DDC)"},{"a":38176,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":38179,"t":"code","b":[24,187],"m":"jr","oa":38112,"o":"$94E0"},{"a":38181,"l":"sparkDot","c":"A cross of five dots flipped, round ($5DA3 + 1, $5DA4 + 1).","t":"code","b":[33,164,93],"m":"ld","o":"hl,$5DA4","x":[38074,38109]},{"a":38184,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38185,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":38188,"t":"code","b":[33,163,93],"m":"ld","o":"hl,$5DA3"},{"a":38191,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38192,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":38195,"t":"code","b":[33,163,93],"m":"ld","o":"hl,$5DA3"},{"a":38198,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38199,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":38202,"t":"code","b":[33,163,93],"m":"ld","o":"hl,$5DA3"},{"a":38205,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":38206,"t":"code","b":[33,164,93],"m":"ld","o":"hl,$5DA4"},{"a":38209,"t":"code","b":[53],"m":"dec","o":"(hl)"},{"a":38210,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":38213,"t":"code","b":[33,164,93],"m":"ld","o":"hl,$5DA4"},{"a":38216,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38217,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38218,"t":"code","b":[205,76,132],"m":"call","oa":33868,"o":"plot"},{"a":38221,"t":"code","b":[201],"m":"ret"},{"a":38222,"l":"sparkSteps","c":"The sparks, four bytes each: the step down and across, and the place.","t":"byte","b":[252,0,0,0,4,0,0,0]},{"a":38230,"t":"byte","b":[0,252,0,0,0,4,0,0]},{"a":38238,"t":"byte","b":[253,253,0,0,3,3,0,0]},{"a":38246,"t":"byte","b":[253,3,0,0,3,253,0,0]},{"a":38254,"t":"byte","b":[5,254,0,0,251,2,0,0]},{"a":38262,"t":"byte","b":[254,251,0,0,2,5,0,0]},{"a":38270,"t":"byte","b":[5,2,0,0,251,254,0,0]},{"a":38278,"t":"byte","b":[2,251,0,0,254,5,0,0]},{"a":38286,"t":"byte","b":[249,0,0,0,7,0,0,0]},{"a":38294,"t":"byte","b":[0,249,0,0,0,7,0,0]},{"a":38302,"t":"byte","b":[5,251,0,0,251,5,0,0]},{"a":38310,"t":"byte","b":[251,251,0,0,5,5,0,0]},{"a":38318,"t":"byte","b":[7,253,0,0,249,3,0,0]},{"a":38326,"t":"byte","b":[253,249,0,0,3,7,0,0]},{"a":38334,"t":"byte","b":[249,253,0,0,7,3,0,0]},{"a":38342,"t":"byte","b":[3,249,0,0,253,7,0,0]},{"a":38350,"t":"byte","b":[9,254,0,0,247,2,0,0]},{"a":38358,"t":"byte","b":[247,254,0,0,9,2,0,0]},{"a":38366,"t":"byte","b":[2,247,0,0,254,9,0,0]},{"a":38374,"t":"byte","b":[254,247,0,0,2,9,0,0]},{"a":38382,"t":"byte","b":[8,251,0,0,248,5,0,0]},{"a":38390,"t":"byte","b":[248,251,0,0,8,5,0,0]},{"a":38398,"t":"byte","b":[5,248,0,0,251,8,0,0]},{"a":38406,"t":"byte","b":[251,248,0,0,5,8,0,0]},{"a":38414,"t":"byte","b":[11,0,0,0,245,0,0,0]},{"a":38422,"t":"byte","b":[0,11,0,0,0,245,0,0]},{"a":38430,"t":"byte","b":[8,248,0,0,248,8,0,0]},{"a":38438,"t":"byte","b":[248,248,0,0,8,8,0,0]},{"a":38446,"t":"byte","b":[11,253,0,0,245,3,0,0]},{"a":38454,"t":"byte","b":[245,253,0,0,11,3,0,0]},{"a":38462,"t":"byte","b":[3,245,0,0,253,11,0,0]},{"a":38470,"t":"byte","b":[253,245,0,0,3,11,0,0]},{"a":38478,"t":"byte","b":[10,250,0,0,246,6,0,0]},{"a":38486,"t":"byte","b":[246,250,0,0,10,6,0,0]},{"a":38494,"t":"byte","b":[6,246,0,0,250,10,0,0]},{"a":38502,"t":"byte","b":[250,246,0,0,6,10,0,0]},{"a":38510,"t":"byte","b":[14,254,0,0,242,2,0,0]},{"a":38518,"t":"byte","b":[242,254,0,0,14,2,0,0]},{"a":38526,"t":"byte","b":[2,242,0,0,254,14,0,0]},{"a":38534,"t":"byte","b":[254,242,0,0,2,14,0,0]},{"a":38542,"l":"blastVars","c":"The blast's strength ($968E) and size ($968F), the box it covers ($9690 to $9693) and its centre ($9694, $9695).","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[37297,38796,38875,38926,38988,39411,40165]},{"a":38550,"l":"explode","c":"A blast of strength ($968E) at ($9694, $9695). In the computer's turn its units are taken off the map first. The view is centred on the blast. The box five squares round it ($9690 to $9693, inside the map) gets a table of 11 x 11 from $5B00: the strength reaching each square, along a line from the centre to every square of the box's edge ($980E), the centre at full strength.","t":"code","b":[58,247,93],"m":"ld","oa":24055,"o":"a,($5DF7)","x":[37300,39441,40173]},{"a":38553,"t":"code","b":[183],"m":"or","o":"a"},{"a":38554,"t":"code","b":[40,5],"m":"jr","oa":38561,"o":"z,$96A1"},{"a":38556,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":38558,"t":"code","b":[205,168,113],"m":"call","oa":29096,"o":"hideSide"},{"a":38561,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[38554]},{"a":38563,"t":"code","b":[50,20,183],"m":"ld","oa":46868,"o":"($B714),a"},{"a":38566,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":38569,"t":"code","b":[229],"m":"push","o":"hl"},{"a":38570,"t":"code","b":[42,145,112],"m":"ld","oa":28817,"o":"hl,(lineVars)"},{"a":38573,"t":"code","b":[229],"m":"push","o":"hl"},{"a":38574,"t":"code","b":[42,147,112],"m":"ld","oa":28819,"o":"hl,($7093)"},{"a":38577,"t":"code","b":[229],"m":"push","o":"hl"},{"a":38578,"t":"code","b":[42,148,150],"m":"ld","oa":38548,"o":"hl,($9694)"},{"a":38581,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":38584,"t":"code","b":[205,16,110],"m":"call","oa":28176,"o":"centreOn"},{"a":38587,"t":"code","b":[58,148,150],"m":"ld","oa":38548,"o":"a,($9694)"},{"a":38590,"t":"code","b":[33,252,92],"m":"ld","o":"hl,$5CFC"},{"a":38593,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":38594,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38596,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38598,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38600,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38602,"t":"code","b":[198,8],"m":"add","o":"a,$08"},{"a":38604,"t":"code","b":[50,219,93],"m":"ld","oa":24027,"o":"($5DDB),a"},{"a":38607,"t":"code","b":[58,149,150],"m":"ld","oa":38549,"o":"a,($9695)"},{"a":38610,"t":"code","b":[33,253,92],"m":"ld","o":"hl,$5CFD"},{"a":38613,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":38614,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38616,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38618,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38620,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":38622,"t":"code","b":[198,8],"m":"add","o":"a,$08"},{"a":38624,"t":"code","b":[50,220,93],"m":"ld","oa":24028,"o":"($5DDC),a"},{"a":38627,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38628,"t":"code","b":[50,146,112],"m":"ld","oa":28818,"o":"($7092),a"},{"a":38631,"t":"code","b":[50,148,112],"m":"ld","oa":28820,"o":"($7094),a"},{"a":38634,"t":"code","b":[50,154,112],"m":"ld","oa":28826,"o":"($709A),a"},{"a":38637,"t":"code","b":[50,156,112],"m":"ld","oa":28828,"o":"($709C),a"},{"a":38640,"t":"code","b":[50,150,112],"m":"ld","oa":28822,"o":"($7096),a"},{"a":38643,"t":"code","b":[50,152,112],"m":"ld","oa":28824,"o":"($7098),a"},{"a":38646,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":38649,"t":"code","b":[17,1,91],"m":"ld","o":"de,$5B01"},{"a":38652,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":38654,"t":"code","b":[1,120,0],"m":"ld","o":"bc,$0078"},{"a":38657,"t":"code","b":[237,176],"m":"ldir"},{"a":38659,"t":"code","b":[58,148,150],"m":"ld","oa":38548,"o":"a,($9694)"},{"a":38662,"t":"code","b":[50,147,112],"m":"ld","oa":28819,"o":"($7093),a"},{"a":38665,"t":"code","b":[214,5],"m":"sub","o":"$05"},{"a":38667,"t":"code","b":[48,1],"m":"jr","oa":38670,"o":"nc,$970E"},{"a":38669,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38670,"t":"code","b":[50,144,150],"m":"ld","oa":38544,"o":"($9690),a","x":[38667]},{"a":38673,"t":"code","b":[58,148,150],"m":"ld","oa":38548,"o":"a,($9694)"},{"a":38676,"t":"code","b":[198,5],"m":"add","o":"a,$05"},{"a":38678,"t":"code","b":[254,50],"m":"cp","o":"$32"},{"a":38680,"t":"code","b":[56,2],"m":"jr","oa":38684,"o":"c,$971C"},{"a":38682,"t":"code","b":[62,49],"m":"ld","o":"a,$31"},{"a":38684,"t":"code","b":[50,145,150],"m":"ld","oa":38545,"o":"($9691),a","x":[38680]},{"a":38687,"t":"code","b":[58,149,150],"m":"ld","oa":38549,"o":"a,($9695)"},{"a":38690,"t":"code","b":[50,145,112],"m":"ld","oa":28817,"o":"(lineVars),a"},{"a":38693,"t":"code","b":[214,5],"m":"sub","o":"$05"},{"a":38695,"t":"code","b":[48,1],"m":"jr","oa":38698,"o":"nc,$972A"},{"a":38697,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38698,"t":"code","b":[50,146,150],"m":"ld","oa":38546,"o":"($9692),a","x":[38695]},{"a":38701,"t":"code","b":[58,149,150],"m":"ld","oa":38549,"o":"a,($9695)"},{"a":38704,"t":"code","b":[198,5],"m":"add","o":"a,$05"},{"a":38706,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":38708,"t":"code","b":[56,2],"m":"jr","oa":38712,"o":"c,$9738"},{"a":38710,"t":"code","b":[62,79],"m":"ld","o":"a,$4F"},{"a":38712,"t":"code","b":[50,147,150],"m":"ld","oa":38547,"o":"($9693),a","x":[38708]},{"a":38715,"t":"code","b":[58,144,150],"m":"ld","oa":38544,"o":"a,($9690)"},{"a":38718,"t":"code","b":[50,151,112],"m":"ld","oa":28823,"o":"($7097),a"},{"a":38721,"t":"code","b":[58,146,150],"m":"ld","oa":38546,"o":"a,($9692)","x":[38747]},{"a":38724,"t":"code","b":[50,149,112],"m":"ld","oa":28821,"o":"($7095),a"},{"a":38727,"t":"code","b":[205,14,152],"m":"call","oa":38926,"o":"blastRay"},{"a":38730,"t":"code","b":[58,147,150],"m":"ld","oa":38547,"o":"a,($9693)"},{"a":38733,"t":"code","b":[50,149,112],"m":"ld","oa":28821,"o":"($7095),a"},{"a":38736,"t":"code","b":[205,14,152],"m":"call","oa":38926,"o":"blastRay"},{"a":38739,"t":"code","b":[33,151,112],"m":"ld","o":"hl,$7097"},{"a":38742,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38743,"t":"code","b":[58,145,150],"m":"ld","oa":38545,"o":"a,($9691)"},{"a":38746,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38747,"t":"code","b":[48,228],"m":"jr","oa":38721,"o":"nc,$9741"},{"a":38749,"t":"code","b":[58,146,150],"m":"ld","oa":38546,"o":"a,($9692)"},{"a":38752,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38753,"t":"code","b":[50,149,112],"m":"ld","oa":28821,"o":"($7095),a"},{"a":38756,"t":"code","b":[58,144,150],"m":"ld","oa":38544,"o":"a,($9690)","x":[38785]},{"a":38759,"t":"code","b":[50,151,112],"m":"ld","oa":28823,"o":"($7097),a"},{"a":38762,"t":"code","b":[205,14,152],"m":"call","oa":38926,"o":"blastRay"},{"a":38765,"t":"code","b":[58,145,150],"m":"ld","oa":38545,"o":"a,($9691)"},{"a":38768,"t":"code","b":[50,151,112],"m":"ld","oa":28823,"o":"($7097),a"},{"a":38771,"t":"code","b":[205,14,152],"m":"call","oa":38926,"o":"blastRay"},{"a":38774,"t":"code","b":[58,149,112],"m":"ld","oa":28821,"o":"a,($7095)"},{"a":38777,"t":"code","b":[60],"m":"inc","o":"a"},{"a":38778,"t":"code","b":[50,149,112],"m":"ld","oa":28821,"o":"($7095),a"},{"a":38781,"t":"code","b":[33,147,150],"m":"ld","o":"hl,$9693"},{"a":38784,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38785,"t":"code","b":[32,225],"m":"jr","oa":38756,"o":"nz,$9764"},{"a":38787,"c":"Then every square of the box takes its blow ($98AF); the view flashes, the sparks fly, the units are shown again, and whether the game is over.","t":"code","b":[42,148,150],"m":"ld","oa":38548,"o":"hl,($9694)"},{"a":38790,"t":"code","b":[34,58,93],"m":"ld","oa":23866,"o":"($5D3A),hl"},{"a":38793,"t":"code","b":[205,143,152],"m":"call","oa":39055,"o":"cellAddr"},{"a":38796,"t":"code","b":[58,142,150],"m":"ld","oa":38542,"o":"a,(blastVars)"},{"a":38799,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":38800,"t":"code","b":[58,144,150],"m":"ld","oa":38544,"o":"a,($9690)"},{"a":38803,"t":"code","b":[50,58,93],"m":"ld","oa":23866,"o":"($5D3A),a"},{"a":38806,"t":"code","b":[58,146,150],"m":"ld","oa":38546,"o":"a,($9692)"},{"a":38809,"t":"code","b":[50,59,93],"m":"ld","oa":23867,"o":"($5D3B),a"},{"a":38812,"t":"code","b":[205,175,152],"m":"call","oa":39087,"o":"cellDamage","x":[38823,38839]},{"a":38815,"t":"code","b":[33,59,93],"m":"ld","o":"hl,$5D3B"},{"a":38818,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38819,"t":"code","b":[58,147,150],"m":"ld","oa":38547,"o":"a,($9693)"},{"a":38822,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38823,"t":"code","b":[48,243],"m":"jr","oa":38812,"o":"nc,$979C"},{"a":38825,"t":"code","b":[58,146,150],"m":"ld","oa":38546,"o":"a,($9692)"},{"a":38828,"t":"code","b":[50,59,93],"m":"ld","oa":23867,"o":"($5D3B),a"},{"a":38831,"t":"code","b":[33,58,93],"m":"ld","o":"hl,$5D3A"},{"a":38834,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":38835,"t":"code","b":[58,145,150],"m":"ld","oa":38545,"o":"a,($9691)"},{"a":38838,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38839,"t":"code","b":[48,227],"m":"jr","oa":38812,"o":"nc,$979C"},{"a":38841,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":38843,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":38846,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":38848,"t":"code","b":[197],"m":"push","o":"bc","x":[38868]},{"a":38849,"t":"code","b":[62,71],"m":"ld","o":"a,$47"},{"a":38851,"t":"code","b":[205,185,153],"m":"call","oa":39353,"o":"fillView"},{"a":38854,"t":"code","b":[62,9],"m":"ld","o":"a,$09"},{"a":38856,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":38859,"t":"code","b":[62,120],"m":"ld","o":"a,$78"},{"a":38861,"t":"code","b":[205,185,153],"m":"call","oa":39353,"o":"fillView"},{"a":38864,"t":"code","b":[205,213,181],"m":"call","oa":46549,"o":"playSound"},{"a":38867,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":38868,"t":"code","b":[16,234],"m":"djnz","oa":38848,"o":"$97C0"},{"a":38870,"t":"code","b":[62,71],"m":"ld","o":"a,$47"},{"a":38872,"t":"code","b":[205,185,153],"m":"call","oa":39353,"o":"fillView"},{"a":38875,"t":"code","b":[58,142,150],"m":"ld","oa":38542,"o":"a,(blastVars)"},{"a":38878,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38880,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38882,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38884,"t":"code","b":[198,49],"m":"add","o":"a,$31"},{"a":38886,"t":"code","b":[50,218,93],"m":"ld","oa":24026,"o":"($5DDA),a"},{"a":38889,"t":"code","b":[175],"m":"xor","o":"a"},{"a":38890,"t":"code","b":[50,221,93],"m":"ld","oa":24029,"o":"($5DDD),a"},{"a":38893,"t":"code","b":[62,26],"m":"ld","o":"a,$1A"},{"a":38895,"t":"code","b":[50,222,93],"m":"ld","oa":24030,"o":"($5DDE),a"},{"a":38898,"t":"code","b":[205,117,148],"m":"call","oa":38005,"o":"sparks"},{"a":38901,"t":"code","b":[205,71,119],"m":"call","oa":30535,"o":"sideView"},{"a":38904,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":38907,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":38910,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":38911,"t":"code","b":[34,147,112],"m":"ld","oa":28819,"o":"($7093),hl"},{"a":38914,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":38915,"t":"code","b":[34,145,112],"m":"ld","oa":28817,"o":"(lineVars),hl"},{"a":38918,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":38919,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":38922,"t":"code","b":[205,164,164],"m":"call","oa":42148,"o":"checkEnd"},{"a":38925,"t":"code","b":[201],"m":"ret"},{"a":38926,"l":"blastRay","c":"The blast along the line from its centre ($7091 across, $7093 down) to ($7095, $7097). At each square ($5D3A) the strength left ($968F) is kept in the table where it is the most so far, and the terrain there takes its toll ($9868). Each step costs two sixteenths of the blast's strength when it is straight and three when it is diagonal (the distance lineStep adds, $70B1), and the line ends when nothing is left.","t":"code","b":[58,142,150],"m":"ld","oa":38542,"o":"a,(blastVars)","x":[38727,38736,38762,38771]},{"a":38929,"t":"code","b":[50,143,150],"m":"ld","oa":38543,"o":"($968F),a"},{"a":38932,"t":"code","b":[58,145,112],"m":"ld","oa":28817,"o":"a,(lineVars)"},{"a":38935,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":38938,"t":"code","b":[58,147,112],"m":"ld","oa":28819,"o":"a,($7093)"},{"a":38941,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":38944,"t":"code","b":[205,202,112],"m":"call","oa":28874,"o":"lineSetup"},{"a":38947,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)","x":[39014]},{"a":38950,"t":"code","b":[33,149,112],"m":"ld","o":"hl,$7095"},{"a":38953,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38954,"t":"code","b":[32,8],"m":"jr","oa":38964,"o":"nz,$9834"},{"a":38956,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":38959,"t":"code","b":[33,151,112],"m":"ld","o":"hl,$7097"},{"a":38962,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":38963,"t":"code","b":[200],"m":"ret","o":"z"},{"a":38964,"t":"code","b":[33,0,0],"m":"ld","o":"hl,$0000","x":[38954]},{"a":38967,"t":"code","b":[34,177,112],"m":"ld","oa":28849,"o":"($70B1),hl"},{"a":38970,"t":"code","b":[205,104,113],"m":"call","oa":29032,"o":"lineStep"},{"a":38973,"t":"code","b":[58,155,112],"m":"ld","oa":28827,"o":"a,($709B)"},{"a":38976,"t":"code","b":[50,58,93],"m":"ld","oa":23866,"o":"($5D3A),a"},{"a":38979,"t":"code","b":[58,153,112],"m":"ld","oa":28825,"o":"a,($7099)"},{"a":38982,"t":"code","b":[50,59,93],"m":"ld","oa":23867,"o":"($5D3B),a"},{"a":38985,"t":"code","b":[205,104,152],"m":"call","oa":39016,"o":"blastCell"},{"a":38988,"t":"code","b":[58,142,150],"m":"ld","oa":38542,"o":"a,(blastVars)"},{"a":38991,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38993,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38995,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38997,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":38999,"t":"code","b":[79],"m":"ld","o":"c,a"},{"a":39000,"t":"code","b":[58,177,112],"m":"ld","oa":28849,"o":"a,($70B1)"},{"a":39003,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39004,"t":"code","b":[58,143,150],"m":"ld","oa":38543,"o":"a,($968F)"},{"a":39007,"t":"code","b":[145],"m":"sub","o":"c","x":[39009]},{"a":39008,"t":"code","b":[216],"m":"ret","o":"c"},{"a":39009,"t":"code","b":[16,252],"m":"djnz","oa":39007,"o":"$985F"},{"a":39011,"t":"code","b":[50,143,150],"m":"ld","oa":38543,"o":"($968F),a"},{"a":39014,"t":"code","b":[24,187],"m":"jr","oa":38947,"o":"$9823"},{"a":39016,"l":"blastCell","c":"The strength left ($968F) kept at the square $5D3A of the table when it is the most so far; then the square's terrain, and each terrain it becomes when broken, takes off its $05.","t":"code","b":[205,143,152],"m":"call","oa":39055,"o":"cellAddr","x":[38985]},{"a":39019,"t":"code","b":[58,143,150],"m":"ld","oa":38543,"o":"a,($968F)"},{"a":39022,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39023,"t":"code","b":[56,1],"m":"jr","oa":39026,"o":"c,$9872"},{"a":39025,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39026,"t":"code","b":[205,74,107],"m":"call","oa":27466,"o":"floorAt","x":[39023]},{"a":39029,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr","x":[39048]},{"a":39032,"t":"code","b":[58,143,150],"m":"ld","oa":38543,"o":"a,($968F)"},{"a":39035,"t":"code","b":[253,150,5],"m":"sub","o":"(iy+$05)"},{"a":39038,"t":"code","b":[56,10],"m":"jr","oa":39050,"o":"c,$988A"},{"a":39040,"t":"code","b":[50,143,150],"m":"ld","oa":38543,"o":"($968F),a"},{"a":39043,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":39046,"t":"code","b":[183],"m":"or","o":"a"},{"a":39047,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39048,"t":"code","b":[24,235],"m":"jr","oa":39029,"o":"$9875"},{"a":39050,"t":"code","b":[175],"m":"xor","o":"a","x":[39038]},{"a":39051,"t":"code","b":[50,143,150],"m":"ld","oa":38543,"o":"($968F),a"},{"a":39054,"t":"code","b":[201],"m":"ret"},{"a":39055,"l":"cellAddr","c":"HL = the place in the table from $5B00 of the square $5D3A: 11 to a row, from the box's corner ($9690, $9692).","t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)","x":[38793,39016,39087]},{"a":39058,"t":"code","b":[33,144,150],"m":"ld","o":"hl,$9690"},{"a":39061,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":39062,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39063,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":39064,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":39065,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":39066,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":39067,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":39068,"t":"code","b":[128],"m":"add","o":"a,b"},{"a":39069,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":39070,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":39073,"t":"code","b":[33,146,150],"m":"ld","o":"hl,$9692"},{"a":39076,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":39077,"t":"code","b":[131],"m":"add","o":"a,e"},{"a":39078,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":39079,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39081,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":39084,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39085,"t":"code","b":[201],"m":"ret"},{"a":39086,"l":"lastSquare","c":"What stood on the square the blast is breaking; $6E after a unit dies.","t":"byte","b":[0],"x":[33434,39114,39313]},{"a":39087,"l":"cellDamage","c":"The blow of the strength in the table on the square $5D3A: the terrain broken (breakTerrain) with its victory points, and the map changed ($98AE what was there, $5D23 the floor). The first unit standing there takes the blow (armourHit, takeDamage).","t":"code","b":[205,143,152],"m":"call","oa":39055,"o":"cellAddr","x":[38812]},{"a":39090,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39091,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":39094,"t":"code","b":[50,143,150],"m":"ld","oa":38543,"o":"($968F),a"},{"a":39097,"t":"code","b":[205,48,128],"m":"call","oa":32816,"o":"breakTerrain"},{"a":39100,"t":"code","b":[205,1,146],"m":"call","oa":37377,"o":"scoreDamage"},{"a":39103,"t":"code","b":[237,91,58,93],"m":"ld","oa":23866,"o":"de,($5D3A)"},{"a":39107,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":39110,"t":"code","b":[34,62,93],"m":"ld","oa":23870,"o":"($5D3E),hl"},{"a":39113,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39114,"t":"code","b":[50,174,152],"m":"ld","oa":39086,"o":"(lastSquare),a"},{"a":39117,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":39120,"t":"code","b":[50,35,93],"m":"ld","oa":23843,"o":"($5D23),a"},{"a":39123,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39124,"t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50"},{"a":39127,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":39130,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":39132,"t":"code","b":[229],"m":"push","o":"hl","x":[39171]},{"a":39133,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39134,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":39136,"t":"code","b":[40,31],"m":"jr","oa":39169,"o":"z,$9901"},{"a":39138,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39139,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":39142,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39143,"t":"code","b":[32,24],"m":"jr","oa":39169,"o":"nz,$9901"},{"a":39145,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39146,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":39149,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39150,"t":"code","b":[32,17],"m":"jr","oa":39169,"o":"nz,$9901"},{"a":39152,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39153,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":39156,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39157,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":39159,"t":"code","b":[144],"m":"sub","o":"b"},{"a":39160,"t":"code","b":[50,57,93],"m":"ld","oa":23865,"o":"($5D39),a"},{"a":39163,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":39166,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39167,"t":"code","b":[24,6],"m":"jr","oa":39175,"o":"$9907"},{"a":39169,"t":"code","b":[225],"m":"pop","o":"hl","x":[39136,39143,39150]},{"a":39170,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39171,"t":"code","b":[16,215],"m":"djnz","oa":39132,"o":"$98DC"},{"a":39173,"t":"code","b":[24,32],"m":"jr","oa":39207,"o":"$9927"},{"a":39175,"t":"code","b":[225],"m":"pop","o":"hl","x":[39167]},{"a":39176,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":39179,"t":"code","b":[221,34,60,93],"m":"ld","oa":23868,"o":"($5D3C),ix"},{"a":39183,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":39186,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":39189,"t":"code","b":[58,143,150],"m":"ld","oa":38543,"o":"a,($968F)"},{"a":39192,"t":"code","b":[50,152,93],"m":"ld","oa":23960,"o":"($5D98),a"},{"a":39195,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39198,"t":"code","b":[34,36,93],"m":"ld","oa":23844,"o":"($5D24),hl"},{"a":39201,"t":"code","b":[205,162,129],"m":"call","oa":33186,"o":"armourHit"},{"a":39204,"t":"code","b":[205,251,129],"m":"call","oa":33275,"o":"takeDamage"},{"a":39207,"c":"Every object lying there is destroyed when the strength is at least its kind's $11. When an object stood on the map there, the largest left (objectAt, $5D96) is put back on it.","t":"code","b":[175],"m":"xor","o":"a","x":[39173]},{"a":39208,"t":"code","b":[50,14,93],"m":"ld","oa":23822,"o":"($5D0E),a"},{"a":39211,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":39214,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39215,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":39219,"t":"code","b":[197],"m":"push","o":"bc","x":[39306]},{"a":39220,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":39223,"t":"code","b":[183],"m":"or","o":"a"},{"a":39224,"t":"code","b":[40,74],"m":"jr","oa":39300,"o":"z,$9984"},{"a":39226,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":39229,"t":"code","b":[183],"m":"or","o":"a"},{"a":39230,"t":"code","b":[32,68],"m":"jr","oa":39300,"o":"nz,$9984"},{"a":39232,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":39235,"t":"code","b":[253,190,1],"m":"cp","o":"(iy+$01)"},{"a":39238,"t":"code","b":[32,60],"m":"jr","oa":39300,"o":"nz,$9984"},{"a":39240,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":39243,"t":"code","b":[253,190,2],"m":"cp","o":"(iy+$02)"},{"a":39246,"t":"code","b":[32,52],"m":"jr","oa":39300,"o":"nz,$9984"},{"a":39248,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39250,"t":"code","b":[50,14,93],"m":"ld","oa":23822,"o":"($5D0E),a"},{"a":39253,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":39256,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":39259,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":39262,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":39265,"t":"code","b":[58,143,150],"m":"ld","oa":38543,"o":"a,($968F)"},{"a":39268,"t":"code","b":[221,190,17],"m":"cp","o":"(ix+$11)"},{"a":39271,"t":"code","b":[56,27],"m":"jr","oa":39300,"o":"c,$9984"},{"a":39273,"t":"code","b":[253,54,0,0],"m":"ld","o":"(iy+$00),$00"},{"a":39277,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":39280,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39281,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":39283,"t":"code","b":[48,6],"m":"jr","oa":39291,"o":"nc,$997B"},{"a":39285,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":39288,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39289,"t":"code","b":[24,9],"m":"jr","oa":39300,"o":"$9984"},{"a":39291,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr","x":[39283]},{"a":39294,"t":"code","b":[58,39,93],"m":"ld","oa":23847,"o":"a,($5D27)"},{"a":39297,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":39300,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006","x":[39224,39230,39238,39246,39271,39289]},{"a":39303,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":39305,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39306,"t":"code","b":[16,167],"m":"djnz","oa":39219,"o":"$9933"},{"a":39308,"t":"code","b":[58,14,93],"m":"ld","oa":23822,"o":"a,($5D0E)"},{"a":39311,"t":"code","b":[183],"m":"or","o":"a"},{"a":39312,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39313,"t":"code","b":[58,174,152],"m":"ld","oa":39086,"o":"a,(lastSquare)"},{"a":39316,"t":"code","b":[254,110],"m":"cp","o":"$6E"},{"a":39318,"t":"code","b":[216],"m":"ret","o":"c"},{"a":39319,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39322,"t":"code","b":[205,72,126],"m":"call","oa":32328,"o":"objectAt"},{"a":39325,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":39328,"t":"code","b":[183],"m":"or","o":"a"},{"a":39329,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39330,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":39333,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39334,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":39336,"t":"code","b":[48,5],"m":"jr","oa":39343,"o":"nc,$99AF"},{"a":39338,"t":"code","b":[58,150,93],"m":"ld","oa":23958,"o":"a,($5D96)"},{"a":39341,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39342,"t":"code","b":[201],"m":"ret"},{"a":39343,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr","x":[39336]},{"a":39346,"t":"code","b":[58,150,93],"m":"ld","oa":23958,"o":"a,($5D96)"},{"a":39349,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":39352,"t":"code","b":[201],"m":"ret"},{"a":39353,"l":"fillView","c":"The view's colours, 22 by 22 from $5821, all A. BC is kept.","t":"code","b":[197],"m":"push","o":"bc","x":[38161,38851,38861,38872]},{"a":39354,"t":"code","b":[6,22],"m":"ld","o":"b,$16"},{"a":39356,"t":"code","b":[33,33,88],"m":"ld","o":"hl,$5821"},{"a":39359,"t":"code","b":[17,10,0],"m":"ld","o":"de,$000A"},{"a":39362,"t":"code","b":[197],"m":"push","o":"bc","x":[39371]},{"a":39363,"t":"code","b":[6,22],"m":"ld","o":"b,$16"},{"a":39365,"t":"code","b":[119],"m":"ld","o":"(hl),a","x":[39367]},{"a":39366,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39367,"t":"code","b":[16,252],"m":"djnz","oa":39365,"o":"$99C5"},{"a":39369,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39370,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39371,"t":"code","b":[16,245],"m":"djnz","oa":39362,"o":"$99C2"},{"a":39373,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39374,"t":"code","b":[201],"m":"ret"},{"a":39375,"l":"clearFires","c":"The list of fires from $5CB3 emptied, $5DF1 and $5DF3 at its start, and $5CEF = $FF.","t":"code","b":[33,179,92],"m":"ld","o":"hl,$5CB3","x":[32538,36775,37620,40170]},{"a":39378,"t":"code","b":[34,241,93],"m":"ld","oa":24049,"o":"($5DF1),hl"},{"a":39381,"t":"code","b":[34,243,93],"m":"ld","oa":24051,"o":"($5DF3),hl"},{"a":39384,"t":"code","b":[17,180,92],"m":"ld","o":"de,$5CB4"},{"a":39387,"t":"code","b":[1,59,0],"m":"ld","o":"bc,$003B"},{"a":39390,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":39392,"t":"code","b":[237,176],"m":"ldir"},{"a":39394,"t":"code","b":[62,255],"m":"ld","o":"a,$FF"},{"a":39396,"t":"code","b":[50,239,92],"m":"ld","oa":23791,"o":"($5CEF),a"},{"a":39399,"t":"code","b":[201],"m":"ret"},{"a":39400,"l":"spreadFires","c":"The fires in the list at ($5DF1) set off one after another, each a blast of its strength at its square, until an empty entry; the list's start wraps round at its $FF.","t":"code","b":[62,255],"m":"ld","o":"a,$FF","x":[32572,37196,37303,39444,40176]},{"a":39402,"t":"code","b":[50,239,92],"m":"ld","oa":23791,"o":"($5CEF),a"},{"a":39405,"t":"code","b":[42,241,93],"m":"ld","oa":24049,"o":"hl,($5DF1)"},{"a":39408,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39409,"t":"code","b":[183],"m":"or","o":"a"},{"a":39410,"t":"code","b":[200],"m":"ret","o":"z"},{"a":39411,"t":"code","b":[50,142,150],"m":"ld","oa":38542,"o":"(blastVars),a"},{"a":39414,"t":"code","b":[54,0],"m":"ld","o":"(hl),$00"},{"a":39416,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39417,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39418,"t":"code","b":[50,148,150],"m":"ld","oa":38548,"o":"($9694),a"},{"a":39421,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39422,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39423,"t":"code","b":[50,149,150],"m":"ld","oa":38549,"o":"($9695),a"},{"a":39426,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39427,"t":"code","b":[34,241,93],"m":"ld","oa":24049,"o":"($5DF1),hl"},{"a":39430,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39431,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":39433,"t":"code","b":[32,6],"m":"jr","oa":39441,"o":"nz,$9A11"},{"a":39435,"t":"code","b":[33,179,92],"m":"ld","o":"hl,$5CB3"},{"a":39438,"t":"code","b":[34,241,93],"m":"ld","oa":24049,"o":"($5DF1),hl"},{"a":39441,"t":"code","b":[205,150,150],"m":"call","oa":38550,"o":"explode","x":[39433]},{"a":39444,"t":"code","b":[24,210],"m":"jr","oa":39400,"o":"spreadFires"},{"a":39446,"l":"shared","c":"NZ if a unit of the side whose turn it is ($B712), other than unit $5D26, stands on the square $5D24: a unit may not end its move on another's square.","t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50","x":[28639,28645,30749,30760,31213]},{"a":39449,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":39452,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":39454,"t":"code","b":[229],"m":"push","o":"hl","x":[39491]},{"a":39455,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":39458,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39459,"t":"code","b":[32,28],"m":"jr","oa":39489,"o":"nz,$9A41"},{"a":39461,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39462,"t":"code","b":[58,36,93],"m":"ld","oa":23844,"o":"a,($5D24)"},{"a":39465,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39466,"t":"code","b":[32,21],"m":"jr","oa":39489,"o":"nz,$9A41"},{"a":39468,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39469,"t":"code","b":[58,37,93],"m":"ld","oa":23845,"o":"a,($5D25)"},{"a":39472,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39473,"t":"code","b":[32,14],"m":"jr","oa":39489,"o":"nz,$9A41"},{"a":39475,"t":"code","b":[33,38,93],"m":"ld","o":"hl,$5D26"},{"a":39478,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":39480,"t":"code","b":[144],"m":"sub","o":"b"},{"a":39481,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":39482,"t":"code","b":[40,5],"m":"jr","oa":39489,"o":"z,$9A41"},{"a":39484,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":39485,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39487,"t":"code","b":[183],"m":"or","o":"a"},{"a":39488,"t":"code","b":[201],"m":"ret"},{"a":39489,"t":"code","b":[225],"m":"pop","o":"hl","x":[39459,39466,39473,39482]},{"a":39490,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39491,"t":"code","b":[16,217],"m":"djnz","oa":39454,"o":"$9A1E"},{"a":39493,"t":"code","b":[175],"m":"xor","o":"a"},{"a":39494,"t":"code","b":[201],"m":"ret"},{"a":39495,"l":"blastSquare","c":"Where an explosive shot bursts: of the eight squares round the one it hit ($5D3A), the nearest to the unit firing ($5D24) whose byte in the table at $D2FF has bit 1 clear, which a blast passes; $5D3A and $5D3E then that square. None such: the square hit.","t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)","x":[37285,39749]},{"a":39498,"t":"code","b":[34,218,165],"m":"ld","oa":42458,"o":"(nearVars),hl"},{"a":39501,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39504,"t":"code","b":[34,220,165],"m":"ld","oa":42460,"o":"($A5DC),hl"},{"a":39507,"t":"code","b":[205,224,165],"m":"call","oa":42464,"o":"nearSquares"},{"a":39510,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":39513,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":39516,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":39518,"t":"code","b":[197],"m":"push","o":"bc","x":[39559]},{"a":39519,"t":"code","b":[42,251,93],"m":"ld","oa":24059,"o":"hl,($5DFB)"},{"a":39522,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39523,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":39525,"t":"code","b":[40,35],"m":"jr","oa":39562,"o":"z,$9A8A"},{"a":39527,"t":"code","b":[50,220,165],"m":"ld","oa":42460,"o":"($A5DC),a"},{"a":39530,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39531,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39532,"t":"code","b":[50,221,165],"m":"ld","oa":42461,"o":"($A5DD),a"},{"a":39535,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39536,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39537,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":39540,"t":"code","b":[237,91,220,165],"m":"ld","oa":42460,"o":"de,($A5DC)"},{"a":39544,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":39547,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":39548,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39550,"t":"code","b":[33,255,210],"m":"ld","o":"hl,$D2FF"},{"a":39553,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39554,"t":"code","b":[203,78],"m":"bit","o":"1,(hl)"},{"a":39556,"t":"code","b":[40,6],"m":"jr","oa":39564,"o":"z,$9A8C"},{"a":39558,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39559,"t":"code","b":[16,213],"m":"djnz","oa":39518,"o":"$9A5E"},{"a":39561,"t":"code","b":[201],"m":"ret"},{"a":39562,"t":"code","b":[193],"m":"pop","o":"bc","x":[39525]},{"a":39563,"t":"code","b":[201],"m":"ret"},{"a":39564,"t":"code","b":[193],"m":"pop","o":"bc","x":[39556]},{"a":39565,"t":"code","b":[237,91,220,165],"m":"ld","oa":42460,"o":"de,($A5DC)"},{"a":39569,"t":"code","b":[237,83,58,93],"m":"ld","oa":23866,"o":"($5D3A),de"},{"a":39573,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":39576,"t":"code","b":[34,62,93],"m":"ld","oa":23870,"o":"($5D3E),hl"},{"a":39579,"t":"code","b":[201],"m":"ret"},{"a":39580,"l":"throwIt","c":"Option 3 of fire mode, throw what the unit holds (its kind's entry at ($5DC2)): the chance ($5DE5) and the action points ($5DE6) paid first. It goes half the distance to the crosshair, at most the unit's strength ($14) over the object's weight ($01), along the line a shot would take. Where it comes down on a unit that faces the thrower and has its hands free, with fewer than ten things carried, it is caught (message $51 and the catcher's name); otherwise it falls on the square, and on one whose byte in the table at $D2FF has bit 1 set (a wall) it falls on the nearest open square instead. Either way the thrower's hands are empty and fire mode ends.","t":"code","b":[58,229,93],"m":"ld","oa":24037,"o":"a,($5DE5)"},{"a":39583,"t":"code","b":[50,205,93],"m":"ld","oa":24013,"o":"($5DCD),a"},{"a":39586,"t":"code","b":[58,230,93],"m":"ld","oa":24038,"o":"a,($5DE6)"},{"a":39589,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":39590,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":39594,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":39597,"t":"code","b":[216],"m":"ret","o":"c"},{"a":39598,"t":"code","b":[205,244,143],"m":"call","oa":36852,"o":"saveCursor"},{"a":39601,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":39603,"t":"code","b":[50,232,93],"m":"ld","oa":24040,"o":"($5DE8),a"},{"a":39606,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":39609,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":39612,"t":"code","b":[253,42,194,93],"m":"ld","oa":24002,"o":"iy,($5DC2)"},{"a":39616,"t":"code","b":[221,126,20],"m":"ld","o":"a,(ix+$14)"},{"a":39619,"t":"code","b":[253,70,1],"m":"ld","o":"b,(iy+$01)"},{"a":39622,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":39625,"t":"code","b":[197],"m":"push","o":"bc"},{"a":39626,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":39629,"t":"code","b":[34,75,165],"m":"ld","oa":42315,"o":"(nearFrom),hl"},{"a":39632,"t":"code","b":[58,17,93],"m":"ld","oa":23825,"o":"a,($5D11)"},{"a":39635,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":39638,"t":"code","b":[58,18,93],"m":"ld","oa":23826,"o":"a,($5D12)"},{"a":39641,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":39644,"t":"code","b":[205,37,140],"m":"call","oa":35877,"o":"shotSquare"},{"a":39647,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39650,"t":"code","b":[34,77,165],"m":"ld","oa":42317,"o":"($A54D),hl"},{"a":39653,"t":"code","b":[205,80,165],"m":"call","oa":42320,"o":"distance"},{"a":39656,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":39658,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":39659,"t":"code","b":[185],"m":"cp","o":"c"},{"a":39660,"t":"code","b":[56,1],"m":"jr","oa":39663,"o":"c,$9AEF"},{"a":39662,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":39663,"c":"The distance in squares times 32, the length of the flight the shot routines draw.","t":"code","b":[111],"m":"ld","o":"l,a","x":[39660]},{"a":39664,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":39666,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":39667,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":39668,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":39669,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":39670,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":39671,"t":"code","b":[34,175,112],"m":"ld","oa":28847,"o":"($70AF),hl"},{"a":39674,"t":"code","b":[42,199,93],"m":"ld","oa":24007,"o":"hl,($5DC7)"},{"a":39677,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":39680,"t":"code","b":[42,197,93],"m":"ld","oa":24005,"o":"hl,($5DC5)"},{"a":39683,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":39686,"t":"code","b":[205,1,144],"m":"call","oa":36865,"o":"shotFrom"},{"a":39689,"t":"code","b":[205,17,144],"m":"call","oa":36881,"o":"shotStart"},{"a":39692,"t":"code","b":[205,67,144],"m":"call","oa":36931,"o":"shotHit"},{"a":39695,"t":"code","b":[205,177,137],"m":"call","oa":35249,"o":"shotFlight"},{"a":39698,"t":"code","b":[58,183,93],"m":"ld","oa":23991,"o":"a,($5DB7)"},{"a":39701,"t":"code","b":[183],"m":"or","o":"a"},{"a":39702,"t":"code","b":[202,37,155],"m":"jp","oa":39717,"o":"z,$9B25"},{"a":39705,"t":"code","b":[42,180,93],"m":"ld","oa":23988,"o":"hl,($5DB4)"},{"a":39708,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39709,"t":"code","b":[50,153,112],"m":"ld","oa":28825,"o":"($7099),a"},{"a":39712,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":39713,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39714,"t":"code","b":[50,155,112],"m":"ld","oa":28827,"o":"($709B),a"},{"a":39717,"c":"Where the flight stopped: a square, or a unit ($8C or more).","t":"code","b":[33,95,230],"m":"ld","o":"hl,$E65F","x":[39702]},{"a":39720,"t":"code","b":[34,22,183],"m":"ld","oa":46870,"o":"($B716),hl"},{"a":39723,"t":"code","b":[205,37,140],"m":"call","oa":35877,"o":"shotSquare"},{"a":39726,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":39729,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39730,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":39732,"t":"code","b":[48,50],"m":"jr","oa":39784,"o":"nc,$9B68"},{"a":39734,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":39735,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":39737,"t":"code","b":[58,183,93],"m":"ld","oa":23991,"o":"a,($5DB7)"},{"a":39740,"t":"code","b":[183],"m":"or","o":"a"},{"a":39741,"t":"code","b":[32,9],"m":"jr","oa":39752,"o":"nz,$9B48"},{"a":39743,"t":"code","b":[33,255,210],"m":"ld","o":"hl,$D2FF"},{"a":39746,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":39747,"t":"code","b":[203,78],"m":"bit","o":"1,(hl)"},{"a":39749,"t":"code","b":[196,71,154],"m":"call","oa":39495,"o":"nz,blastSquare"},{"a":39752,"c":"It falls: left on the square, out of the thrower's hands, shown, and a pause.","t":"code","b":[205,11,156],"m":"call","oa":39947,"o":"dropAt","x":[39741,39810,39816,39842]},{"a":39755,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":39759,"t":"code","b":[221,54,23,0],"m":"ld","o":"(ix+$17),$00"},{"a":39763,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":39766,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39769,"t":"code","b":[205,19,110],"m":"call","oa":28179,"o":"centreAt"},{"a":39772,"t":"code","b":[205,152,127],"m":"call","oa":32664,"o":"blowShow"},{"a":39775,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":39778,"t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause"},{"a":39781,"t":"code","b":[195,252,155],"m":"jp","oa":39932,"o":"$9BFC"},{"a":39784,"c":"A unit is there: it catches the throw if the thrower is in front of it ($7326 answers 0) and it holds nothing ($17).","t":"code","b":[50,57,93],"m":"ld","oa":23865,"o":"($5D39),a","x":[39732]},{"a":39787,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":39790,"t":"code","b":[221,34,60,93],"m":"ld","oa":23868,"o":"($5D3C),ix"},{"a":39794,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":39797,"t":"code","b":[34,73,93],"m":"ld","oa":23881,"o":"($5D49),hl"},{"a":39800,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39803,"t":"code","b":[34,71,93],"m":"ld","oa":23879,"o":"($5D47),hl"},{"a":39806,"t":"code","b":[205,38,115],"m":"call","oa":29478,"o":"inView"},{"a":39809,"t":"code","b":[183],"m":"or","o":"a"},{"a":39810,"t":"code","b":[32,196],"m":"jr","oa":39752,"o":"nz,$9B48"},{"a":39812,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":39815,"t":"code","b":[183],"m":"or","o":"a"},{"a":39816,"t":"code","b":[32,190],"m":"jr","oa":39752,"o":"nz,$9B48"},{"a":39818,"c":"The catcher's list of what it carries ($785D) must have room: fewer than ten.","t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":39821,"t":"code","b":[245],"m":"push","o":"af"},{"a":39822,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)"},{"a":39825,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":39828,"t":"code","b":[205,93,120],"m":"call","oa":30813,"o":"listCarried"},{"a":39831,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":39834,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":39836,"t":"code","b":[56,6],"m":"jr","oa":39844,"o":"c,$9BA4"},{"a":39838,"t":"code","b":[241],"m":"pop","o":"af"},{"a":39839,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":39842,"t":"code","b":[24,164],"m":"jr","oa":39752,"o":"$9B48"},{"a":39844,"c":"Caught: the thrower's held kind, ammunition and object pass to the catcher, the object is placed under the catcher and given to it as owner.","t":"code","b":[253,42,51,93],"m":"ld","oa":23859,"o":"iy,($5D33)","x":[39836]},{"a":39848,"t":"code","b":[253,126,35],"m":"ld","o":"a,(iy+$23)"},{"a":39851,"t":"code","b":[221,119,35],"m":"ld","o":"(ix+$23),a"},{"a":39854,"t":"code","b":[253,126,36],"m":"ld","o":"a,(iy+$24)"},{"a":39857,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":39860,"t":"code","b":[253,126,23],"m":"ld","o":"a,(iy+$17)"},{"a":39863,"t":"code","b":[221,119,23],"m":"ld","o":"(ix+$17),a"},{"a":39866,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":39869,"t":"code","b":[205,11,156],"m":"call","oa":39947,"o":"dropAt"},{"a":39872,"t":"code","b":[58,35,93],"m":"ld","oa":23843,"o":"a,($5D23)"},{"a":39875,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":39878,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)"},{"a":39881,"t":"code","b":[253,119,5],"m":"ld","o":"(iy+$05),a"},{"a":39884,"t":"code","b":[241],"m":"pop","o":"af"},{"a":39885,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":39888,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":39892,"t":"code","b":[221,54,23,0],"m":"ld","o":"(ix+$17),$00"},{"a":39896,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":39899,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":39902,"t":"code","b":[62,81],"m":"ld","o":"a,$51"},{"a":39904,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":39907,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804"},{"a":39910,"t":"code","b":[58,57,93],"m":"ld","oa":23865,"o":"a,($5D39)"},{"a":39913,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":39916,"t":"code","b":[42,58,93],"m":"ld","oa":23866,"o":"hl,($5D3A)"},{"a":39919,"t":"code","b":[205,19,110],"m":"call","oa":28179,"o":"centreAt"},{"a":39922,"t":"code","b":[205,152,127],"m":"call","oa":32664,"o":"blowShow"},{"a":39925,"t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause"},{"a":39928,"t":"code","b":[205,139,106],"m":"call","oa":27275,"o":"unitStats"},{"a":39931,"c":"A NOP that nothing jumps to: the jump at $9B65 goes past it to $9BFC.","t":"code","b":[0],"m":"nop"},{"a":39932,"c":"The thrower holds nothing, and fire mode ends ($8EF4).","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[39781]},{"a":39936,"t":"code","b":[221,54,35,0],"m":"ld","o":"(ix+$23),$00"},{"a":39940,"t":"code","b":[221,54,23,0],"m":"ld","o":"(ix+$17),$00"},{"a":39944,"t":"code","b":[195,244,142],"m":"jp","oa":36596,"o":"fireEnd"},{"a":39947,"l":"dropAt","c":"The object in the unit's hands ($17) left at the square ($5D3A) on its floor, carried by nobody. The map square shows it ($5DE7); where a unit stands there, the unit's square-under ($16) becomes the object's tile instead. IY is left at the object's entry.","t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)","x":[39752,39869]},{"a":39951,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":39954,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":39957,"t":"code","b":[253,54,5,0],"m":"ld","o":"(iy+$05),$00"},{"a":39961,"t":"code","b":[58,58,93],"m":"ld","oa":23866,"o":"a,($5D3A)"},{"a":39964,"t":"code","b":[253,119,1],"m":"ld","o":"(iy+$01),a"},{"a":39967,"t":"code","b":[58,59,93],"m":"ld","oa":23867,"o":"a,($5D3B)"},{"a":39970,"t":"code","b":[253,119,2],"m":"ld","o":"(iy+$02),a"},{"a":39973,"t":"code","b":[205,74,107],"m":"call","oa":27466,"o":"floorAt"},{"a":39976,"t":"code","b":[253,119,3],"m":"ld","o":"(iy+$03),a"},{"a":39979,"t":"code","b":[42,62,93],"m":"ld","oa":23870,"o":"hl,($5D3E)"},{"a":39982,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":39983,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":39985,"t":"code","b":[48,5],"m":"jr","oa":39992,"o":"nc,$9C38"},{"a":39987,"t":"code","b":[58,231,93],"m":"ld","oa":24039,"o":"a,($5DE7)"},{"a":39990,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":39991,"t":"code","b":[201],"m":"ret"},{"a":39992,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr","x":[39985]},{"a":39995,"t":"code","b":[58,231,93],"m":"ld","oa":24039,"o":"a,($5DE7)"},{"a":39998,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":40001,"t":"code","b":[201],"m":"ret"},{"a":40002,"l":"prime","c":"Option 6 of the unit's menu, prime what it holds, for a fifth of the unit's most action points ($05). The timer is chosen with message $55, from 0 to $28 half-turns; the half-turn it goes off is the timer plus twice the turn ($B711) plus the side ($B712), stored in the object's $04 and the unit's $24.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":40005,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":40007,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":40010,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":40011,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":40014,"t":"code","b":[216],"m":"ret","o":"c"},{"a":40015,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":40018,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":40021,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":40024,"t":"code","b":[62,85],"m":"ld","o":"a,$55"},{"a":40026,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40029,"t":"code","b":[33,5,27],"m":"ld","o":"hl,$1B05"},{"a":40032,"t":"code","b":[34,137,93],"m":"ld","oa":23945,"o":"($5D89),hl"},{"a":40035,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40036,"t":"code","b":[50,135,93],"m":"ld","oa":23943,"o":"($5D87),a"},{"a":40039,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":40042,"t":"code","b":[62,41],"m":"ld","o":"a,$29"},{"a":40044,"t":"code","b":[50,136,93],"m":"ld","oa":23944,"o":"($5D88),a"},{"a":40047,"t":"code","b":[205,251,146],"m":"call","oa":37627,"o":"chooseRounds"},{"a":40050,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":40053,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":40056,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":40059,"t":"code","b":[33,17,183],"m":"ld","o":"hl,$B711"},{"a":40062,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":40063,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":40064,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":40067,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":40068,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":40071,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":40074,"t":"code","b":[201],"m":"ret"},{"a":40075,"l":"fuses","c":"The timed explosives go off: every object whose kind has bit 3 of its $00 set (a timer) and whose half-turn ($04) is this one, the turn ($B711) and the side ($B712), explodes where it lies, or where the unit carrying it ($05) stands: a blast of its kind's strength ($0F) at that square ($9696), the fires it starts ($99E8) and a long pause. The object stays in the list.","t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo","x":[24468]},{"a":40078,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":40082,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":40085,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40086,"t":"code","b":[197],"m":"push","o":"bc","x":[40190]},{"a":40087,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":40090,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":40092,"t":"code","b":[33,17,183],"m":"ld","o":"hl,$B711"},{"a":40095,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":40096,"t":"code","b":[32,86],"m":"jr","oa":40184,"o":"nz,$9CF8"},{"a":40098,"t":"code","b":[253,126,4],"m":"ld","o":"a,(iy+$04)"},{"a":40101,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":40103,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":40106,"t":"code","b":[174],"m":"xor","o":"(hl)"},{"a":40107,"t":"code","b":[32,75],"m":"jr","oa":40184,"o":"nz,$9CF8"},{"a":40109,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":40112,"t":"code","b":[183],"m":"or","o":"a"},{"a":40113,"t":"code","b":[40,69],"m":"jr","oa":40184,"o":"z,$9CF8"},{"a":40115,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":40118,"t":"code","b":[221,203,0,94],"m":"bit","o":"3,(ix+$00)"},{"a":40122,"t":"code","b":[40,60],"m":"jr","oa":40184,"o":"z,$9CF8"},{"a":40124,"t":"code","b":[253,126,5],"m":"ld","o":"a,(iy+$05)"},{"a":40127,"t":"code","b":[183],"m":"or","o":"a"},{"a":40128,"t":"code","b":[40,20],"m":"jr","oa":40150,"o":"z,$9CD6"},{"a":40130,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":40132,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":40133,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":40135,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":40136,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":40137,"t":"code","b":[17,81,92],"m":"ld","o":"de,$5C51"},{"a":40140,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40141,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40142,"t":"code","b":[253,119,1],"m":"ld","o":"(iy+$01),a"},{"a":40145,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40146,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40147,"t":"code","b":[253,119,2],"m":"ld","o":"(iy+$02),a"},{"a":40150,"t":"code","b":[253,126,1],"m":"ld","o":"a,(iy+$01)","x":[40128]},{"a":40153,"t":"code","b":[50,148,150],"m":"ld","oa":38548,"o":"($9694),a"},{"a":40156,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)"},{"a":40159,"t":"code","b":[50,149,150],"m":"ld","oa":38549,"o":"($9695),a"},{"a":40162,"t":"code","b":[221,126,15],"m":"ld","o":"a,(ix+$0F)"},{"a":40165,"t":"code","b":[50,142,150],"m":"ld","oa":38542,"o":"(blastVars),a"},{"a":40168,"t":"code","b":[253,229],"m":"push","o":"iy"},{"a":40170,"t":"code","b":[205,207,153],"m":"call","oa":39375,"o":"clearFires"},{"a":40173,"t":"code","b":[205,150,150],"m":"call","oa":38550,"o":"explode"},{"a":40176,"t":"code","b":[205,232,153],"m":"call","oa":39400,"o":"spreadFires"},{"a":40179,"t":"code","b":[205,233,98],"m":"call","oa":25321,"o":"delay200"},{"a":40182,"t":"code","b":[253,225],"m":"pop","o":"iy"},{"a":40184,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006","x":[40096,40107,40113,40122]},{"a":40187,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":40189,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40190,"t":"code","b":[16,150],"m":"djnz","oa":40086,"o":"$9C96"},{"a":40192,"t":"code","b":[201],"m":"ret"},{"a":40193,"l":"reload","c":"Option 5 of the unit's menu, reload, for half the unit's most action points, which are added to its points spent ($22). The clip ($5D6F points at its entry in the list of what the unit carries) is used up and removed, and the weapon's ammunition, the unit's $24 and the object's $04, set to the clip kind's $10. Message $56 and a pause.","t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":40196,"t":"code","b":[6,2],"m":"ld","o":"b,$02"},{"a":40198,"t":"code","b":[205,25,107],"m":"call","oa":27417,"o":"divRound"},{"a":40201,"t":"code","b":[65],"m":"ld","o":"b,c"},{"a":40202,"t":"code","b":[205,78,109],"m":"call","oa":27982,"o":"payAP"},{"a":40205,"t":"code","b":[216],"m":"ret","o":"c"},{"a":40206,"t":"code","b":[58,53,93],"m":"ld","oa":23861,"o":"a,($5D35)"},{"a":40209,"t":"code","b":[221,119,6],"m":"ld","o":"(ix+$06),a"},{"a":40212,"t":"code","b":[58,77,109],"m":"ld","oa":27981,"o":"a,(apCost)"},{"a":40215,"t":"code","b":[221,134,34],"m":"add","o":"a,(ix+$22)"},{"a":40218,"t":"code","b":[221,119,34],"m":"ld","o":"(ix+$22),a"},{"a":40221,"t":"code","b":[42,111,93],"m":"ld","oa":23919,"o":"hl,($5D6F)"},{"a":40224,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40225,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":40228,"t":"code","b":[253,54,0,0],"m":"ld","o":"(iy+$00),$00"},{"a":40232,"t":"code","b":[253,54,5,0],"m":"ld","o":"(iy+$05),$00"},{"a":40236,"t":"code","b":[42,111,93],"m":"ld","oa":23919,"o":"hl,($5D6F)"},{"a":40239,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40240,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40241,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":40244,"t":"code","b":[221,126,16],"m":"ld","o":"a,(ix+$10)"},{"a":40247,"t":"code","b":[221,42,51,93],"m":"ld","oa":23859,"o":"ix,($5D33)"},{"a":40251,"t":"code","b":[221,119,36],"m":"ld","o":"(ix+$24),a"},{"a":40254,"t":"code","b":[245],"m":"push","o":"af"},{"a":40255,"t":"code","b":[221,126,23],"m":"ld","o":"a,(ix+$17)"},{"a":40258,"t":"code","b":[205,139,104],"m":"call","oa":26763,"o":"carriedPtr"},{"a":40261,"t":"code","b":[241],"m":"pop","o":"af"},{"a":40262,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":40265,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":40268,"t":"code","b":[62,86],"m":"ld","o":"a,$56"},{"a":40270,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40273,"t":"code","b":[205,140,109],"m":"call","oa":28044,"o":"pause"},{"a":40276,"t":"code","b":[201],"m":"ret"},{"a":40277,"l":"deploy","c":"The side ($B712) equips its units: its price list ($B685, or $B6A3 for the second side) in $5DEE, its credits ($B6F8 + side) and message $58; its units listed; the armour table and each unit's armour chosen in turn. Then the shop: the top line picks a kind of object with left and right, and on a unit's line right buys it one and left sells one back. Fire, and fire again, ends it.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24150,24174]},{"a":40280,"t":"code","b":[33,133,182],"m":"ld","o":"hl,$B685"},{"a":40283,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":40286,"t":"code","b":[183],"m":"or","o":"a"},{"a":40287,"t":"code","b":[40,3],"m":"jr","oa":40292,"o":"z,$9D64"},{"a":40289,"t":"code","b":[33,163,182],"m":"ld","o":"hl,$B6A3"},{"a":40292,"t":"code","b":[34,238,93],"m":"ld","oa":24046,"o":"($5DEE),hl","x":[40287]},{"a":40295,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":40298,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":40300,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":40301,"t":"code","b":[33,248,182],"m":"ld","o":"hl,$B6F8"},{"a":40304,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40305,"t":"code","b":[62,88],"m":"ld","o":"a,$58"},{"a":40307,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40310,"t":"code","b":[33,0,5],"m":"ld","o":"hl,$0500"},{"a":40313,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":40316,"t":"code","b":[198,160],"m":"add","o":"a,$A0"},{"a":40318,"t":"code","b":[205,122,107],"m":"call","oa":27514,"o":"scenarioMessageAt"},{"a":40321,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40322,"t":"code","b":[205,39,158],"m":"call","oa":40487,"o":"payCredits"},{"a":40325,"t":"code","b":[205,80,158],"m":"call","oa":40528,"o":"listUnits"},{"a":40328,"t":"code","b":[205,15,159],"m":"call","oa":40719,"o":"armourTable"},{"a":40331,"t":"code","b":[205,94,159],"m":"call","oa":40798,"o":"chooseArmour"},{"a":40334,"t":"code","b":[205,56,160],"m":"call","oa":41016,"o":"emptyGrid"},{"a":40337,"t":"code","b":[62,91],"m":"ld","o":"a,$5B"},{"a":40339,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40342,"t":"code","b":[62,110],"m":"ld","o":"a,$6E"},{"a":40344,"t":"code","b":[50,237,93],"m":"ld","oa":24045,"o":"($5DED),a"},{"a":40347,"t":"code","b":[205,170,160],"m":"call","oa":41130,"o":"showKind"},{"a":40350,"t":"code","b":[33,0,88],"m":"ld","o":"hl,$5800"},{"a":40353,"t":"code","b":[34,45,93],"m":"ld","oa":23853,"o":"($5D2D),hl"},{"a":40356,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40357,"t":"code","b":[50,43,93],"m":"ld","oa":23851,"o":"($5D2B),a"},{"a":40360,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40363,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":40366,"c":"Up and down move the lit line ($5D2B, 0 the top line, then one per unit, round).","t":"code","b":[205,209,102],"m":"call","oa":26321,"o":"repeatDelay","x":[40403,40432,40448,40485]},{"a":40369,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":40372,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":40375,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":40377,"t":"code","b":[40,71],"m":"jr","oa":40450,"o":"z,$9E02"},{"a":40379,"t":"code","b":[203,79],"m":"bit","o":"1,a"},{"a":40381,"t":"code","b":[32,22],"m":"jr","oa":40405,"o":"nz,$9DD5"},{"a":40383,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40386,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)"},{"a":40389,"t":"code","b":[61],"m":"dec","o":"a"},{"a":40390,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":40392,"t":"code","b":[32,3],"m":"jr","oa":40397,"o":"nz,$9DCD"},{"a":40394,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":40397,"t":"code","b":[50,43,93],"m":"ld","oa":23851,"o":"($5D2B),a","x":[40392]},{"a":40400,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40403,"t":"code","b":[24,217],"m":"jr","oa":40366,"o":"$9DAE"},{"a":40405,"t":"code","b":[203,87],"m":"bit","o":"2,a","x":[40381]},{"a":40407,"t":"code","b":[32,25],"m":"jr","oa":40434,"o":"nz,$9DF2"},{"a":40409,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40412,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)"},{"a":40415,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40416,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40417,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":40420,"t":"code","b":[184],"m":"cp","o":"b"},{"a":40421,"t":"code","b":[48,2],"m":"jr","oa":40425,"o":"nc,$9DE9"},{"a":40423,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":40425,"t":"code","b":[120],"m":"ld","o":"a,b","x":[40421]},{"a":40426,"t":"code","b":[50,43,93],"m":"ld","oa":23851,"o":"($5D2B),a"},{"a":40429,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40432,"t":"code","b":[24,188],"m":"jr","oa":40366,"o":"$9DAE"},{"a":40434,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)","x":[40407]},{"a":40437,"t":"code","b":[183],"m":"or","o":"a"},{"a":40438,"t":"code","b":[204,100,160],"m":"call","oa":41060,"o":"z,pickKind"},{"a":40441,"t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)"},{"a":40444,"t":"code","b":[183],"m":"or","o":"a"},{"a":40445,"t":"code","b":[196,221,160],"m":"call","oa":41181,"o":"nz,buyOrSell"},{"a":40448,"t":"code","b":[24,172],"m":"jr","oa":40366,"o":"$9DAE"},{"a":40450,"c":"Fire: message $59, and fire again to finish; any other control goes back to the shop.","t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine","x":[40377]},{"a":40453,"t":"code","b":[62,89],"m":"ld","o":"a,$59"},{"a":40455,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40458,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":40461,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls","x":[40469]},{"a":40464,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":40467,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":40469,"t":"code","b":[40,246],"m":"jr","oa":40461,"o":"z,$9E0D"},{"a":40471,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":40473,"t":"code","b":[200],"m":"ret","o":"z"},{"a":40474,"t":"code","b":[62,91],"m":"ld","o":"a,$5B"},{"a":40476,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40479,"t":"code","b":[205,170,160],"m":"call","oa":41130,"o":"showKind"},{"a":40482,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40485,"t":"code","b":[24,135],"m":"jr","oa":40366,"o":"$9DAE"},{"a":40487,"l":"payCredits","c":"Pay A from the side's credits ($B6F8 + side) if they are enough: the credits left shown at row 0, column $1D, and the carry set. Not enough: nothing paid, the carry clear.","t":"code","b":[71],"m":"ld","o":"b,a","x":[40322,40909,41316,41467]},{"a":40488,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":40491,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":40494,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":40496,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":40499,"t":"code","b":[33,248,182],"m":"ld","o":"hl,$B6F8"},{"a":40502,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":40505,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":40506,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":40508,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40509,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40510,"t":"code","b":[184],"m":"cp","o":"b"},{"a":40511,"t":"code","b":[56,13],"m":"jr","oa":40526,"o":"c,$9E4E"},{"a":40513,"t":"code","b":[144],"m":"sub","o":"b"},{"a":40514,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":40515,"t":"code","b":[33,0,29],"m":"ld","o":"hl,$1D00"},{"a":40518,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":40521,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":40524,"t":"code","b":[55],"m":"scf"},{"a":40525,"t":"code","b":[201],"m":"ret"},{"a":40526,"t":"code","b":[167],"m":"and","o":"a","x":[40511]},{"a":40527,"t":"code","b":[201],"m":"ret"},{"a":40528,"l":"listUnits","c":"The side's units are listed from $5B00 ($5D2C counts them): those whose flags at $B6E4 + number have the side's bit (1 for the first, 2 for the second) and that are in the game ($25 bit 7 clear). Each gets a line with its name and its tile, and everything it carried is taken from it.","t":"code","b":[175],"m":"xor","o":"a","x":[40325]},{"a":40529,"t":"code","b":[50,43,93],"m":"ld","oa":23851,"o":"($5D2B),a"},{"a":40532,"t":"code","b":[50,44,93],"m":"ld","oa":23852,"o":"($5D2C),a"},{"a":40535,"c":"$5D2F is set from the word at $5D2C, its low byte just cleared: nothing reads it here.","t":"code","b":[42,44,93],"m":"ld","oa":23852,"o":"hl,($5D2C)"},{"a":40538,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":40541,"t":"code","b":[33,228,182],"m":"ld","o":"hl,$B6E4"},{"a":40544,"t":"code","b":[253,33,0,91],"m":"ld","o":"iy,$5B00"},{"a":40548,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":40550,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)","x":[40590]},{"a":40553,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40554,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":40555,"t":"code","b":[40,32],"m":"jr","oa":40589,"o":"z,$9E8D"},{"a":40557,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":40559,"t":"code","b":[144],"m":"sub","o":"b"},{"a":40560,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":40563,"t":"code","b":[229],"m":"push","o":"hl"},{"a":40564,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":40567,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":40568,"t":"code","b":[221,203,37,126],"m":"bit","o":"7,(ix+$25)"},{"a":40572,"t":"code","b":[32,15],"m":"jr","oa":40589,"o":"nz,$9E8D"},{"a":40574,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":40577,"t":"code","b":[253,119,0],"m":"ld","o":"(iy+$00),a"},{"a":40580,"t":"code","b":[253,35],"m":"inc","o":"iy"},{"a":40582,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":40585,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40586,"t":"code","b":[50,44,93],"m":"ld","oa":23852,"o":"($5D2C),a"},{"a":40589,"t":"code","b":[35],"m":"inc","o":"hl","x":[40555,40572]},{"a":40590,"t":"code","b":[16,214],"m":"djnz","oa":40550,"o":"$9E66"},{"a":40592,"t":"code","b":[33,4,0],"m":"ld","o":"hl,$0004"},{"a":40595,"t":"code","b":[34,235,93],"m":"ld","oa":24043,"o":"($5DEB),hl"},{"a":40598,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":40601,"t":"code","b":[34,233,93],"m":"ld","oa":24041,"o":"($5DE9),hl"},{"a":40604,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":40607,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40608,"t":"code","b":[197],"m":"push","o":"bc","x":[40658]},{"a":40609,"t":"code","b":[42,233,93],"m":"ld","oa":24041,"o":"hl,($5DE9)"},{"a":40612,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40613,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":40616,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40617,"t":"code","b":[34,233,93],"m":"ld","oa":24041,"o":"($5DE9),hl"},{"a":40620,"t":"code","b":[33,0,93],"m":"ld","o":"hl,$5D00"},{"a":40623,"t":"code","b":[54,70],"m":"ld","o":"(hl),$46"},{"a":40625,"t":"code","b":[42,235,93],"m":"ld","oa":24043,"o":"hl,($5DEB)"},{"a":40628,"t":"code","b":[205,147,107],"m":"call","oa":27539,"o":"panelLine"},{"a":40631,"t":"code","b":[42,235,93],"m":"ld","oa":24043,"o":"hl,($5DEB)"},{"a":40634,"t":"code","b":[17,0,8],"m":"ld","o":"de,$0800"},{"a":40637,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40638,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":40641,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":40644,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":40647,"t":"code","b":[42,235,93],"m":"ld","oa":24043,"o":"hl,($5DEB)"},{"a":40650,"t":"code","b":[17,2,0],"m":"ld","o":"de,$0002"},{"a":40653,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40654,"t":"code","b":[34,235,93],"m":"ld","oa":24043,"o":"($5DEB),hl"},{"a":40657,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40658,"t":"code","b":[16,204],"m":"djnz","oa":40608,"o":"$9EA0"},{"a":40660,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":40663,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40664,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":40667,"t":"code","b":[229],"m":"push","o":"hl","x":[40716]},{"a":40668,"t":"code","b":[197],"m":"push","o":"bc"},{"a":40669,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":40672,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40673,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40674,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":40678,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":40681,"t":"code","b":[253,190,5],"m":"cp","o":"(iy+$05)","x":[40696]},{"a":40684,"t":"code","b":[32,8],"m":"jr","oa":40694,"o":"nz,$9EF6"},{"a":40686,"t":"code","b":[253,54,0,0],"m":"ld","o":"(iy+$00),$00"},{"a":40690,"t":"code","b":[253,54,5,0],"m":"ld","o":"(iy+$05),$00"},{"a":40694,"t":"code","b":[253,25],"m":"add","o":"iy,de","x":[40684]},{"a":40696,"t":"code","b":[16,239],"m":"djnz","oa":40681,"o":"$9EE9"},{"a":40698,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":40701,"t":"code","b":[221,54,23,0],"m":"ld","o":"(ix+$17),$00"},{"a":40705,"t":"code","b":[221,54,35,0],"m":"ld","o":"(ix+$23),$00"},{"a":40709,"t":"code","b":[221,54,36,0],"m":"ld","o":"(ix+$24),$00"},{"a":40713,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40714,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":40715,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40716,"t":"code","b":[16,205],"m":"djnz","oa":40667,"o":"$9EDB"},{"a":40718,"t":"code","b":[201],"m":"ret"},{"a":40719,"l":"armourTable","c":"The armour table: message $5A, and the 28 bytes from $B6C8 as numbers, seven to a column from row 9 (rows $0D and $10 left out) and four columns from column $14.","t":"code","b":[62,90],"m":"ld","o":"a,$5A","x":[40328]},{"a":40721,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":40724,"t":"code","b":[62,70],"m":"ld","o":"a,$46"},{"a":40726,"t":"code","b":[50,0,93],"m":"ld","oa":23808,"o":"($5D00),a"},{"a":40729,"t":"code","b":[33,9,20],"m":"ld","o":"hl,$1409"},{"a":40732,"t":"code","b":[34,235,93],"m":"ld","oa":24043,"o":"($5DEB),hl"},{"a":40735,"t":"code","b":[33,200,182],"m":"ld","o":"hl,$B6C8"},{"a":40738,"t":"code","b":[34,233,93],"m":"ld","oa":24041,"o":"($5DE9),hl"},{"a":40741,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":40743,"t":"code","b":[197],"m":"push","o":"bc","x":[40795]},{"a":40744,"t":"code","b":[6,7],"m":"ld","o":"b,$07"},{"a":40746,"t":"code","b":[197],"m":"push","o":"bc","x":[40782]},{"a":40747,"t":"code","b":[42,233,93],"m":"ld","oa":24041,"o":"hl,($5DE9)"},{"a":40750,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40751,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40752,"t":"code","b":[34,233,93],"m":"ld","oa":24041,"o":"($5DE9),hl"},{"a":40755,"t":"code","b":[42,235,93],"m":"ld","oa":24043,"o":"hl,($5DEB)"},{"a":40758,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":40761,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":40764,"t":"code","b":[58,235,93],"m":"ld","oa":24043,"o":"a,($5DEB)"},{"a":40767,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40768,"t":"code","b":[254,13],"m":"cp","o":"$0D"},{"a":40770,"t":"code","b":[32,1],"m":"jr","oa":40773,"o":"nz,$9F45"},{"a":40772,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40773,"t":"code","b":[254,16],"m":"cp","o":"$10","x":[40770]},{"a":40775,"t":"code","b":[32,1],"m":"jr","oa":40778,"o":"nz,$9F4A"},{"a":40777,"t":"code","b":[60],"m":"inc","o":"a"},{"a":40778,"t":"code","b":[50,235,93],"m":"ld","oa":24043,"o":"($5DEB),a","x":[40775]},{"a":40781,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40782,"t":"code","b":[16,218],"m":"djnz","oa":40746,"o":"$9F2A"},{"a":40784,"t":"code","b":[42,235,93],"m":"ld","oa":24043,"o":"hl,($5DEB)"},{"a":40787,"t":"code","b":[17,247,2],"m":"ld","o":"de,$02F7"},{"a":40790,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40791,"t":"code","b":[34,235,93],"m":"ld","oa":24043,"o":"($5DEB),hl"},{"a":40794,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40795,"t":"code","b":[16,202],"m":"djnz","oa":40743,"o":"$9F27"},{"a":40797,"t":"code","b":[201],"m":"ret"},{"a":40798,"l":"chooseArmour","c":"Each unit listed chooses its armour, 0 to 4, on its lit line ($6918). The type's seven bytes at $B6C1 + 7 x type give the unit's front ($0D), left ($10), right ($0E) and rear ($0F) armour, its $11 (taken from its action points every turn), its room to carry ($26), and the price, paid ($9E27) when the credits are enough. The carry is not looked at: a unit gets its armour whether it was paid for or not.","t":"code","b":[33,64,88],"m":"ld","o":"hl,$5840","x":[40331]},{"a":40801,"t":"code","b":[34,45,93],"m":"ld","oa":23853,"o":"($5D2D),hl"},{"a":40804,"t":"code","b":[33,4,10],"m":"ld","o":"hl,$0A04"},{"a":40807,"t":"code","b":[34,137,93],"m":"ld","oa":23945,"o":"($5D89),hl"},{"a":40810,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":40813,"t":"code","b":[34,233,93],"m":"ld","oa":24041,"o":"($5DE9),hl"},{"a":40816,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40817,"t":"code","b":[50,135,93],"m":"ld","oa":23943,"o":"($5D87),a"},{"a":40820,"t":"code","b":[62,5],"m":"ld","o":"a,$05"},{"a":40822,"t":"code","b":[50,136,93],"m":"ld","oa":23944,"o":"($5D88),a"},{"a":40825,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":40828,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":40831,"t":"code","b":[58,44,93],"m":"ld","oa":23852,"o":"a,($5D2C)"},{"a":40834,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40835,"t":"code","b":[197],"m":"push","o":"bc","x":[40925]},{"a":40836,"t":"code","b":[42,233,93],"m":"ld","oa":24041,"o":"hl,($5DE9)"},{"a":40839,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40840,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40841,"t":"code","b":[34,233,93],"m":"ld","oa":24041,"o":"($5DE9),hl"},{"a":40844,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":40847,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40850,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40851,"t":"code","b":[50,134,93],"m":"ld","oa":23942,"o":"($5D86),a"},{"a":40854,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":40857,"t":"code","b":[205,251,146],"m":"call","oa":37627,"o":"chooseRounds"},{"a":40860,"t":"code","b":[58,134,93],"m":"ld","oa":23942,"o":"a,($5D86)"},{"a":40863,"t":"code","b":[111],"m":"ld","o":"l,a"},{"a":40864,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":40866,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":40867,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":40868,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":40869,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":40871,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":40872,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":40874,"t":"code","b":[17,193,182],"m":"ld","o":"de,$B6C1"},{"a":40877,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40878,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40879,"t":"code","b":[221,119,13],"m":"ld","o":"(ix+$0D),a"},{"a":40882,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40883,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40884,"t":"code","b":[221,119,16],"m":"ld","o":"(ix+$10),a"},{"a":40887,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40888,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40889,"t":"code","b":[221,119,14],"m":"ld","o":"(ix+$0E),a"},{"a":40892,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40893,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40894,"t":"code","b":[221,119,15],"m":"ld","o":"(ix+$0F),a"},{"a":40897,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40898,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40899,"t":"code","b":[221,119,17],"m":"ld","o":"(ix+$11),a"},{"a":40902,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40903,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40904,"t":"code","b":[221,119,38],"m":"ld","o":"(ix+$26),a"},{"a":40907,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":40908,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":40909,"t":"code","b":[205,39,158],"m":"call","oa":40487,"o":"payCredits"},{"a":40912,"t":"code","b":[33,137,93],"m":"ld","o":"hl,$5D89"},{"a":40915,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":40916,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":40917,"t":"code","b":[205,24,105],"m":"call","oa":26904,"o":"lightLine"},{"a":40920,"t":"code","b":[33,43,93],"m":"ld","o":"hl,$5D2B"},{"a":40923,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":40924,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":40925,"t":"code","b":[16,164],"m":"djnz","oa":40835,"o":"$9F83"},{"a":40927,"t":"code","b":[201],"m":"ret"},{"a":40928,"l":"unitObjects","c":"What the unit on line $5D2B carries, drawn along its row from column $0C, and the rest of the row's ten squares blank; $5DF5 counts the objects.","t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)","x":[41198,41381,41470]},{"a":40931,"t":"code","b":[61],"m":"dec","o":"a"},{"a":40932,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":40933,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":40935,"t":"code","b":[33,4,12],"m":"ld","o":"hl,$0C04"},{"a":40938,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40939,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":40940,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":40943,"t":"code","b":[253,33,0,91],"m":"ld","o":"iy,$5B00"},{"a":40947,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":40949,"t":"code","b":[221,42,42,183],"m":"ld","oa":46890,"o":"ix,($B72A)"},{"a":40953,"t":"code","b":[175],"m":"xor","o":"a"},{"a":40954,"t":"code","b":[50,245,93],"m":"ld","oa":24053,"o":"($5DF5),a"},{"a":40957,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":40960,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":40961,"t":"code","b":[197],"m":"push","o":"bc","x":[40994]},{"a":40962,"t":"code","b":[221,126,5],"m":"ld","o":"a,(ix+$05)"},{"a":40965,"t":"code","b":[253,190,0],"m":"cp","o":"(iy+$00)"},{"a":40968,"t":"code","b":[32,18],"m":"jr","oa":40988,"o":"nz,$A01C"},{"a":40970,"t":"code","b":[221,126,0],"m":"ld","o":"a,(ix+$00)"},{"a":40973,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":40976,"t":"code","b":[58,255,92],"m":"ld","oa":23807,"o":"a,($5CFF)"},{"a":40979,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":40981,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":40984,"t":"code","b":[33,245,93],"m":"ld","o":"hl,$5DF5"},{"a":40987,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":40988,"t":"code","b":[193],"m":"pop","o":"bc","x":[40968]},{"a":40989,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":40992,"t":"code","b":[221,25],"m":"add","o":"ix,de"},{"a":40994,"t":"code","b":[16,221],"m":"djnz","oa":40961,"o":"$A001"},{"a":40996,"t":"code","b":[58,255,92],"m":"ld","oa":23807,"o":"a,($5CFF)","x":[41014]},{"a":40999,"t":"code","b":[254,32],"m":"cp","o":"$20"},{"a":41001,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41002,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41003,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":41006,"t":"code","b":[58,255,92],"m":"ld","oa":23807,"o":"a,($5CFF)"},{"a":41009,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":41011,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":41014,"t":"code","b":[24,236],"m":"jr","oa":40996,"o":"$A024"},{"a":41016,"l":"emptyGrid","c":"Ten rows of ten blank squares, from row 4, column $0C, where the units' objects are drawn.","t":"code","b":[33,4,12],"m":"ld","o":"hl,$0C04","x":[40334]},{"a":41019,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":41022,"t":"code","b":[6,10],"m":"ld","o":"b,$0A"},{"a":41024,"t":"code","b":[197],"m":"push","o":"bc","x":[41057]},{"a":41025,"t":"code","b":[6,10],"m":"ld","o":"b,$0A"},{"a":41027,"t":"code","b":[197],"m":"push","o":"bc","x":[41041]},{"a":41028,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41029,"t":"code","b":[205,175,96],"m":"call","oa":24751,"o":"drawTile"},{"a":41032,"t":"code","b":[58,255,92],"m":"ld","oa":23807,"o":"a,($5CFF)"},{"a":41035,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":41037,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":41040,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41041,"t":"code","b":[16,240],"m":"djnz","oa":41027,"o":"$A043"},{"a":41043,"t":"code","b":[62,12],"m":"ld","o":"a,$0C"},{"a":41045,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":41048,"t":"code","b":[58,254,92],"m":"ld","oa":23806,"o":"a,($5CFE)"},{"a":41051,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":41053,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":41056,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41057,"t":"code","b":[16,221],"m":"djnz","oa":41024,"o":"$A040"},{"a":41059,"t":"code","b":[201],"m":"ret"},{"a":41060,"l":"pickKind","c":"On the top line: right ($5D2A bit 3 clear) goes to the next kind of object ($6E to $8B, round), left (bit 4) to the one before, passing over the kinds the side may not buy (a price of $FF); the new kind is shown.","t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)","x":[40438]},{"a":41063,"t":"code","b":[203,95],"m":"bit","o":"3,a"},{"a":41065,"t":"code","b":[32,22],"m":"jr","oa":41089,"o":"nz,$A081"},{"a":41067,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)","x":[41083]},{"a":41070,"t":"code","b":[60],"m":"inc","o":"a"},{"a":41071,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":41073,"t":"code","b":[32,2],"m":"jr","oa":41077,"o":"nz,$A075"},{"a":41075,"t":"code","b":[62,110],"m":"ld","o":"a,$6E"},{"a":41077,"t":"code","b":[50,237,93],"m":"ld","oa":24045,"o":"($5DED),a","x":[41073]},{"a":41080,"t":"code","b":[205,154,160],"m":"call","oa":41114,"o":"kindPrice"},{"a":41083,"t":"code","b":[40,238],"m":"jr","oa":41067,"o":"z,$A06B"},{"a":41085,"t":"code","b":[205,170,160],"m":"call","oa":41130,"o":"showKind"},{"a":41088,"t":"code","b":[201],"m":"ret"},{"a":41089,"t":"code","b":[203,103],"m":"bit","o":"4,a","x":[41065]},{"a":41091,"t":"code","b":[192],"m":"ret","o":"nz"},{"a":41092,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)","x":[41108]},{"a":41095,"t":"code","b":[61],"m":"dec","o":"a"},{"a":41096,"t":"code","b":[254,109],"m":"cp","o":"$6D"},{"a":41098,"t":"code","b":[32,2],"m":"jr","oa":41102,"o":"nz,$A08E"},{"a":41100,"t":"code","b":[62,139],"m":"ld","o":"a,$8B"},{"a":41102,"t":"code","b":[50,237,93],"m":"ld","oa":24045,"o":"($5DED),a","x":[41098]},{"a":41105,"t":"code","b":[205,154,160],"m":"call","oa":41114,"o":"kindPrice"},{"a":41108,"t":"code","b":[40,238],"m":"jr","oa":41092,"o":"z,$A084"},{"a":41110,"t":"code","b":[205,170,160],"m":"call","oa":41130,"o":"showKind"},{"a":41113,"t":"code","b":[201],"m":"ret"},{"a":41114,"l":"kindPrice","c":"The side's price for kind A, from its list at ($5DEE), in $5DF0; Z for $FF, a kind it may not buy.","t":"code","b":[214,110],"m":"sub","o":"$6E","x":[41080,41105,41165]},{"a":41116,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41117,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41119,"t":"code","b":[42,238,93],"m":"ld","oa":24046,"o":"hl,($5DEE)"},{"a":41122,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41123,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41124,"t":"code","b":[50,240,93],"m":"ld","oa":24048,"o":"($5DF0),a"},{"a":41127,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":41129,"t":"code","b":[201],"m":"ret"},{"a":41130,"l":"showKind","c":"The kind on offer ($5DED): its tile, its name and its price.","t":"code","b":[33,2,10],"m":"ld","o":"hl,$0A02","x":[40347,40479,41085,41110,41289]},{"a":41133,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":41136,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)"},{"a":41139,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":41142,"t":"code","b":[33,70,70],"m":"ld","o":"hl,$4646"},{"a":41145,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":41148,"t":"code","b":[33,2,13],"m":"ld","o":"hl,$0D02"},{"a":41151,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)"},{"a":41154,"t":"code","b":[205,147,107],"m":"call","oa":27539,"o":"panelLine"},{"a":41157,"t":"code","b":[62,8],"m":"ld","o":"a,$08"},{"a":41159,"t":"code","b":[50,9,93],"m":"ld","oa":23817,"o":"($5D09),a"},{"a":41162,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)"},{"a":41165,"t":"code","b":[205,154,160],"m":"call","oa":41114,"o":"kindPrice"},{"a":41168,"t":"code","b":[33,2,29],"m":"ld","o":"hl,$1D02"},{"a":41171,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":41174,"t":"code","b":[58,240,93],"m":"ld","oa":24048,"o":"a,($5DF0)"},{"a":41177,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":41180,"t":"code","b":[201],"m":"ret"},{"a":41181,"l":"buyOrSell","c":"On a unit's line: right buys, left sells.","t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)","x":[40445]},{"a":41184,"t":"code","b":[203,95],"m":"bit","o":"3,a"},{"a":41186,"t":"code","b":[204,238,160],"m":"call","oa":41198,"o":"z,buy"},{"a":41189,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":41192,"t":"code","b":[203,103],"m":"bit","o":"4,a"},{"a":41194,"t":"code","b":[204,199,161],"m":"call","oa":41415,"o":"z,sellBack"},{"a":41197,"t":"code","b":[201],"m":"ret"},{"a":41198,"l":"buy","c":"Buy one of the kind on offer for the unit on the lit line. It must carry fewer than ten things; half the weight it would carry, plus ten, must be less than its strength ($14), or message $5C; and the size it would carry must be less than its armour's room ($26), or message $5D.","t":"code","b":[205,224,159],"m":"call","oa":40928,"o":"unitObjects","x":[41186]},{"a":41201,"t":"code","b":[58,245,93],"m":"ld","oa":24053,"o":"a,($5DF5)"},{"a":41204,"t":"code","b":[254,10],"m":"cp","o":"$0A"},{"a":41206,"t":"code","b":[200],"m":"ret","o":"z"},{"a":41207,"t":"code","b":[205,183,161],"m":"call","oa":41399,"o":"lineUnit"},{"a":41210,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41213,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":41216,"t":"code","b":[221,34,51,93],"m":"ld","oa":23859,"o":"($5D33),ix"},{"a":41220,"t":"code","b":[205,11,126],"m":"call","oa":32267,"o":"carriedLoad"},{"a":41223,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)"},{"a":41226,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":41229,"t":"code","b":[253,42,51,93],"m":"ld","oa":23859,"o":"iy,($5D33)"},{"a":41233,"t":"code","b":[221,126,1],"m":"ld","o":"a,(ix+$01)"},{"a":41236,"t":"code","b":[33,145,93],"m":"ld","o":"hl,$5D91"},{"a":41239,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":41240,"t":"code","b":[56,25],"m":"jr","oa":41267,"o":"c,$A133"},{"a":41242,"t":"code","b":[203,63],"m":"srl","o":"a"},{"a":41244,"t":"code","b":[198,10],"m":"add","o":"a,$0A"},{"a":41246,"t":"code","b":[253,190,20],"m":"cp","o":"(iy+$14)"},{"a":41249,"t":"code","b":[48,16],"m":"jr","oa":41267,"o":"nc,$A133"},{"a":41251,"t":"code","b":[221,126,2],"m":"ld","o":"a,(ix+$02)"},{"a":41254,"t":"code","b":[33,146,93],"m":"ld","o":"hl,$5D92"},{"a":41257,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":41258,"t":"code","b":[56,14],"m":"jr","oa":41274,"o":"c,$A13A"},{"a":41260,"t":"code","b":[253,190,38],"m":"cp","o":"(iy+$26)"},{"a":41263,"t":"code","b":[48,9],"m":"jr","oa":41274,"o":"nc,$A13A"},{"a":41265,"t":"code","b":[24,26],"m":"jr","oa":41293,"o":"$A14D"},{"a":41267,"t":"code","b":[62,92],"m":"ld","o":"a,$5C","x":[41240,41249]},{"a":41269,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":41272,"t":"code","b":[24,5],"m":"jr","oa":41279,"o":"$A13F"},{"a":41274,"t":"code","b":[62,93],"m":"ld","o":"a,$5D","x":[41258,41263]},{"a":41276,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":41279,"t":"code","b":[62,11],"m":"ld","o":"a,$0B","x":[41272]},{"a":41281,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":41284,"t":"code","b":[62,91],"m":"ld","o":"a,$5B"},{"a":41286,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":41289,"t":"code","b":[205,170,160],"m":"call","oa":41130,"o":"showKind"},{"a":41292,"t":"code","b":[201],"m":"ret"},{"a":41293,"c":"The object takes the first free entry of the list, short of the last sixteen, when the credits pay for it. A timed explosive's fuse is set to $FF (off); a kind with bit 5 of its $00 has its own $10 rounds; a kind with bit 1 has the rounds of the kind its $10 names (its clip).","t":"code","b":[205,183,161],"m":"call","oa":41399,"o":"lineUnit","x":[41265]},{"a":41296,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":41300,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":41303,"t":"code","b":[214,16],"m":"sub","o":"$10"},{"a":41305,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41306,"t":"code","b":[197],"m":"push","o":"bc","x":[41396]},{"a":41307,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":41310,"t":"code","b":[183],"m":"or","o":"a"},{"a":41311,"t":"code","b":[32,77],"m":"jr","oa":41390,"o":"nz,$A1AE"},{"a":41313,"t":"code","b":[58,240,93],"m":"ld","oa":24048,"o":"a,($5DF0)"},{"a":41316,"t":"code","b":[205,39,158],"m":"call","oa":40487,"o":"payCredits"},{"a":41319,"t":"code","b":[48,59],"m":"jr","oa":41380,"o":"nc,$A1A4"},{"a":41321,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41324,"t":"code","b":[253,119,5],"m":"ld","o":"(iy+$05),a"},{"a":41327,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)"},{"a":41330,"t":"code","b":[253,119,0],"m":"ld","o":"(iy+$00),a"},{"a":41333,"t":"code","b":[253,54,4,0],"m":"ld","o":"(iy+$04),$00"},{"a":41337,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":41340,"t":"code","b":[221,203,0,94],"m":"bit","o":"3,(ix+$00)"},{"a":41344,"t":"code","b":[40,4],"m":"jr","oa":41350,"o":"z,$A186"},{"a":41346,"t":"code","b":[253,54,4,255],"m":"ld","o":"(iy+$04),$FF"},{"a":41350,"t":"code","b":[221,203,0,110],"m":"bit","o":"5,(ix+$00)","x":[41344]},{"a":41354,"t":"code","b":[40,6],"m":"jr","oa":41362,"o":"z,$A192"},{"a":41356,"t":"code","b":[221,126,16],"m":"ld","o":"a,(ix+$10)"},{"a":41359,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":41362,"t":"code","b":[221,203,0,78],"m":"bit","o":"1,(ix+$00)","x":[41354]},{"a":41366,"t":"code","b":[40,12],"m":"jr","oa":41380,"o":"z,$A1A4"},{"a":41368,"t":"code","b":[221,126,16],"m":"ld","o":"a,(ix+$10)"},{"a":41371,"t":"code","b":[205,223,103],"m":"call","oa":26591,"o":"objectPtr"},{"a":41374,"t":"code","b":[221,126,16],"m":"ld","o":"a,(ix+$10)"},{"a":41377,"t":"code","b":[253,119,4],"m":"ld","o":"(iy+$04),a"},{"a":41380,"t":"code","b":[193],"m":"pop","o":"bc","x":[41319,41366]},{"a":41381,"t":"code","b":[205,224,159],"m":"call","oa":40928,"o":"unitObjects"},{"a":41384,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":41386,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":41389,"t":"code","b":[201],"m":"ret"},{"a":41390,"t":"code","b":[193],"m":"pop","o":"bc","x":[41311]},{"a":41391,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":41394,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":41396,"t":"code","b":[16,164],"m":"djnz","oa":41306,"o":"$A15A"},{"a":41398,"t":"code","b":[201],"m":"ret"},{"a":41399,"l":"lineUnit","c":"$5D26 = the unit on line $5D2B.","t":"code","b":[58,43,93],"m":"ld","oa":23851,"o":"a,($5D2B)","x":[41207,41293,41415]},{"a":41402,"t":"code","b":[61],"m":"dec","o":"a"},{"a":41403,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41404,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41406,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":41409,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41410,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41411,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":41414,"t":"code","b":[201],"m":"ret"},{"a":41415,"l":"sellBack","c":"Sell back one object of the kind on offer that the unit on the lit line carries: its entry freed and its price ($5DF0) put back with the side's credits.","t":"code","b":[205,183,161],"m":"call","oa":41399,"o":"lineUnit","x":[41194]},{"a":41418,"t":"code","b":[253,42,42,183],"m":"ld","oa":46890,"o":"iy,($B72A)"},{"a":41422,"t":"code","b":[58,57,182],"m":"ld","oa":46649,"o":"a,($B639)"},{"a":41425,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41426,"t":"code","b":[197],"m":"push","o":"bc","x":[41486]},{"a":41427,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41430,"t":"code","b":[253,190,5],"m":"cp","o":"(iy+$05)"},{"a":41433,"t":"code","b":[32,45],"m":"jr","oa":41480,"o":"nz,$A208"},{"a":41435,"t":"code","b":[58,237,93],"m":"ld","oa":24045,"o":"a,($5DED)"},{"a":41438,"t":"code","b":[253,190,0],"m":"cp","o":"(iy+$00)"},{"a":41441,"t":"code","b":[32,37],"m":"jr","oa":41480,"o":"nz,$A208"},{"a":41443,"t":"code","b":[253,54,5,0],"m":"ld","o":"(iy+$05),$00"},{"a":41447,"t":"code","b":[253,54,0,0],"m":"ld","o":"(iy+$00),$00"},{"a":41451,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":41454,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41455,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41457,"t":"code","b":[33,248,182],"m":"ld","o":"hl,$B6F8"},{"a":41460,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41461,"t":"code","b":[58,240,93],"m":"ld","oa":24048,"o":"a,($5DF0)"},{"a":41464,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":41465,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41466,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41467,"t":"code","b":[205,39,158],"m":"call","oa":40487,"o":"payCredits"},{"a":41470,"t":"code","b":[205,224,159],"m":"call","oa":40928,"o":"unitObjects"},{"a":41473,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":41475,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":41478,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41479,"t":"code","b":[201],"m":"ret"},{"a":41480,"t":"code","b":[193],"m":"pop","o":"bc","x":[41433,41441]},{"a":41481,"t":"code","b":[17,6,0],"m":"ld","o":"de,$0006"},{"a":41484,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":41486,"t":"code","b":[16,194],"m":"djnz","oa":41426,"o":"$A1D2"},{"a":41488,"t":"code","b":[201],"m":"ret"},{"a":41489,"l":"chooseGame","c":"One player or two (message $5E). Two: the units of mode 1 play. One, against the computer: its level, 1 to ($B684) (message $5F), which sets the computer's skill ($5DF8, from $B655) and the first side's credits ($B6F8, from $B6FA); the units of mode level + 1 play, and $B706 says the computer has the second side.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24143]},{"a":41492,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41493,"t":"code","b":[50,247,93],"m":"ld","oa":24055,"o":"($5DF7),a"},{"a":41496,"t":"code","b":[62,94],"m":"ld","o":"a,$5E"},{"a":41498,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":41501,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":41503,"t":"code","b":[50,246,93],"m":"ld","oa":24054,"o":"($5DF6),a"},{"a":41506,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":41509,"t":"code","b":[205,118,162],"m":"call","oa":41590,"o":"menuChoice"},{"a":41512,"t":"code","b":[254,1],"m":"cp","o":"$01"},{"a":41514,"t":"code","b":[40,6],"m":"jr","oa":41522,"o":"z,$A232"},{"a":41516,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":41518,"t":"code","b":[205,186,162],"m":"call","oa":41658,"o":"gameMode"},{"a":41521,"t":"code","b":[201],"m":"ret"},{"a":41522,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[41514]},{"a":41525,"t":"code","b":[58,132,182],"m":"ld","oa":46724,"o":"a,($B684)"},{"a":41528,"t":"code","b":[50,246,93],"m":"ld","oa":24054,"o":"($5DF6),a"},{"a":41531,"t":"code","b":[33,12,19],"m":"ld","o":"hl,$130C"},{"a":41534,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":41537,"t":"code","b":[205,248,102],"m":"call","oa":26360,"o":"printNumber"},{"a":41540,"t":"code","b":[62,95],"m":"ld","o":"a,$5F"},{"a":41542,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":41545,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":41548,"t":"code","b":[205,118,162],"m":"call","oa":41590,"o":"menuChoice"},{"a":41551,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41552,"t":"code","b":[61],"m":"dec","o":"a"},{"a":41553,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41554,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41556,"t":"code","b":[33,85,182],"m":"ld","o":"hl,$B655"},{"a":41559,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41560,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41561,"t":"code","b":[50,248,93],"m":"ld","oa":24056,"o":"($5DF8),a"},{"a":41564,"t":"code","b":[33,250,182],"m":"ld","o":"hl,$B6FA"},{"a":41567,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41568,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41569,"t":"code","b":[50,248,182],"m":"ld","oa":46840,"o":"($B6F8),a"},{"a":41572,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":41573,"t":"code","b":[60],"m":"inc","o":"a"},{"a":41574,"t":"code","b":[205,186,162],"m":"call","oa":41658,"o":"gameMode"},{"a":41577,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":41579,"t":"code","b":[50,6,183],"m":"ld","oa":46854,"o":"($B706),a"},{"a":41582,"t":"code","b":[201],"m":"ret"},{"a":41583,"l":"menuFireChoice","c":"A choice from the menu on the screen, as $A276, where fire gives 0 as well.","t":"code","b":[62,0],"m":"ld","o":"a,$00","x":[45577]},{"a":41585,"t":"code","b":[50,249,93],"m":"ld","oa":24057,"o":"($5DF9),a"},{"a":41588,"t":"code","b":[24,5],"m":"jr","oa":41595,"o":"$A27B"},{"a":41590,"l":"menuChoice","c":"A choice from the menu on the screen: a number key from 1 to ($5DF6) gives A = 1 to ($5DF6). Sound effect 0; Z for 0.","t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[41509,41548,45247,45525]},{"a":41592,"t":"code","b":[50,249,93],"m":"ld","oa":24057,"o":"($5DF9),a"},{"a":41595,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease","x":[41588]},{"a":41598,"t":"code","b":[58,249,93],"m":"ld","oa":24057,"o":"a,($5DF9)","x":[41622,41640]},{"a":41601,"t":"code","b":[183],"m":"or","o":"a"},{"a":41602,"t":"code","b":[32,12],"m":"jr","oa":41616,"o":"nz,$A290"},{"a":41604,"t":"code","b":[205,200,176],"m":"call","oa":45256,"o":"readControls"},{"a":41607,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":41610,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":41612,"t":"code","b":[62,0],"m":"ld","o":"a,$00"},{"a":41614,"t":"code","b":[40,27],"m":"jr","oa":41643,"o":"z,$A2AB"},{"a":41616,"t":"code","b":[205,142,2],"m":"call","oa":654,"o":"$028E","x":[41602]},{"a":41619,"t":"code","b":[123],"m":"ld","o":"a,e"},{"a":41620,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":41622,"t":"code","b":[40,230],"m":"jr","oa":41598,"o":"z,$A27E"},{"a":41624,"t":"code","b":[33,246,93],"m":"ld","o":"hl,$5DF6"},{"a":41627,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":41628,"t":"code","b":[14,1],"m":"ld","o":"c,$01"},{"a":41630,"t":"code","b":[33,179,162],"m":"ld","o":"hl,$A2B3"},{"a":41633,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[41638]},{"a":41634,"t":"code","b":[40,6],"m":"jr","oa":41642,"o":"z,$A2AA"},{"a":41636,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41637,"t":"code","b":[12],"m":"inc","o":"c"},{"a":41638,"t":"code","b":[16,249],"m":"djnz","oa":41633,"o":"$A2A1"},{"a":41640,"t":"code","b":[24,212],"m":"jr","oa":41598,"o":"$A27E"},{"a":41642,"t":"code","b":[121],"m":"ld","o":"a,c","x":[41634]},{"a":41643,"t":"code","b":[245],"m":"push","o":"af","x":[41614]},{"a":41644,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41645,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":41648,"t":"code","b":[241],"m":"pop","o":"af"},{"a":41649,"t":"code","b":[183],"m":"or","o":"a"},{"a":41650,"t":"code","b":[201],"m":"ret"},{"a":41651,"l":"menuKeys","c":"The keys 1 to 7, as the ROM's KEY-SCAN numbers them.","t":"byte","b":[36,28,20,12,4,3,11]},{"a":41658,"l":"gameMode","c":"The units that do not play in mode A, those whose byte at $B670 + number lacks bit A - 1, are taken out of the game ($25 bit 7 set).","t":"code","b":[71],"m":"ld","o":"b,a","x":[41518,41574]},{"a":41659,"t":"code","b":[175],"m":"xor","o":"a"},{"a":41660,"t":"code","b":[55],"m":"scf"},{"a":41661,"t":"code","b":[23],"m":"rla","x":[41662]},{"a":41662,"t":"code","b":[16,253],"m":"djnz","oa":41661,"o":"$A2BD"},{"a":41664,"t":"code","b":[50,250,93],"m":"ld","oa":24058,"o":"($5DFA),a"},{"a":41667,"t":"code","b":[62,140],"m":"ld","o":"a,$8C"},{"a":41669,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":41672,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":41674,"t":"code","b":[33,112,182],"m":"ld","o":"hl,$B670"},{"a":41677,"t":"code","b":[197],"m":"push","o":"bc","x":[41707]},{"a":41678,"t":"code","b":[229],"m":"push","o":"hl"},{"a":41679,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41680,"t":"code","b":[33,250,93],"m":"ld","o":"hl,$5DFA"},{"a":41683,"t":"code","b":[166],"m":"and","o":"(hl)"},{"a":41684,"t":"code","b":[32,14],"m":"jr","oa":41700,"o":"nz,$A2E4"},{"a":41686,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41689,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":41692,"t":"code","b":[62,128],"m":"ld","o":"a,$80"},{"a":41694,"t":"code","b":[221,182,37],"m":"or","o":"(ix+$25)"},{"a":41697,"t":"code","b":[221,119,37],"m":"ld","o":"(ix+$25),a"},{"a":41700,"t":"code","b":[33,38,93],"m":"ld","o":"hl,$5D26","x":[41684]},{"a":41703,"t":"code","b":[52],"m":"inc","o":"(hl)"},{"a":41704,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":41705,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":41706,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41707,"t":"code","b":[16,224],"m":"djnz","oa":41677,"o":"$A2CD"},{"a":41709,"t":"code","b":[201],"m":"ret"},{"a":41710,"l":"arrivals","c":"The units in the game whose turn to arrive ($1C) is this one ($B711) come on, each on a square at random in its patch: row $1D plus 0 to $1E - 1, column $1F plus 0 to $20 - 1, tried again while a unit stands there or its terrain is closed to the unit ($FF in its cost column, $04).","t":"code","b":[62,140],"m":"ld","o":"a,$8C","x":[24204,24227]},{"a":41712,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":41715,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)","x":[41835]},{"a":41718,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":41721,"t":"code","b":[221,203,37,126],"m":"bit","o":"7,(ix+$25)"},{"a":41725,"t":"code","b":[32,99],"m":"jr","oa":41826,"o":"nz,$A362"},{"a":41727,"t":"code","b":[221,126,28],"m":"ld","o":"a,(ix+$1C)"},{"a":41730,"t":"code","b":[33,17,183],"m":"ld","o":"hl,$B711"},{"a":41733,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41734,"t":"code","b":[32,90],"m":"jr","oa":41826,"o":"nz,$A362"},{"a":41736,"t":"code","b":[221,126,30],"m":"ld","o":"a,(ix+$1E)","x":[41779,41808]},{"a":41739,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":41742,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":41745,"t":"code","b":[221,134,29],"m":"add","o":"a,(ix+$1D)"},{"a":41748,"t":"code","b":[50,36,93],"m":"ld","oa":23844,"o":"($5D24),a"},{"a":41751,"t":"code","b":[221,126,32],"m":"ld","o":"a,(ix+$20)"},{"a":41754,"t":"code","b":[50,155,93],"m":"ld","oa":23963,"o":"($5D9B),a"},{"a":41757,"t":"code","b":[205,177,128],"m":"call","oa":32945,"o":"random"},{"a":41760,"t":"code","b":[221,134,31],"m":"add","o":"a,(ix+$1F)"},{"a":41763,"t":"code","b":[50,37,93],"m":"ld","oa":23845,"o":"($5D25),a"},{"a":41766,"t":"code","b":[237,91,36,93],"m":"ld","oa":23844,"o":"de,($5D24)"},{"a":41770,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":41773,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":41776,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41777,"t":"code","b":[254,140],"m":"cp","o":"$8C"},{"a":41779,"t":"code","b":[48,211],"m":"jr","oa":41736,"o":"nc,$A308"},{"a":41781,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":41784,"t":"code","b":[42,36,93],"m":"ld","oa":23844,"o":"hl,($5D24)"},{"a":41787,"t":"code","b":[34,58,93],"m":"ld","oa":23866,"o":"($5D3A),hl"},{"a":41790,"t":"code","b":[205,74,107],"m":"call","oa":27466,"o":"floorAt"},{"a":41793,"t":"code","b":[205,247,103],"m":"call","oa":26615,"o":"terrainPtr"},{"a":41796,"t":"code","b":[221,94,4],"m":"ld","o":"e,(ix+$04)"},{"a":41799,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41801,"t":"code","b":[253,25],"m":"add","o":"iy,de"},{"a":41803,"t":"code","b":[253,126,0],"m":"ld","o":"a,(iy+$00)"},{"a":41806,"t":"code","b":[254,255],"m":"cp","o":"$FF"},{"a":41808,"t":"code","b":[40,182],"m":"jr","oa":41736,"o":"z,$A308"},{"a":41810,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":41813,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41816,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":41817,"t":"code","b":[205,16,109],"m":"call","oa":27920,"o":"setUnitTile"},{"a":41820,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41823,"t":"code","b":[205,193,116],"m":"call","oa":29889,"o":"placeUnit"},{"a":41826,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)","x":[41725,41734]},{"a":41829,"t":"code","b":[60],"m":"inc","o":"a"},{"a":41830,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":41833,"t":"code","b":[254,160],"m":"cp","o":"$A0"},{"a":41835,"t":"code","b":[194,243,162],"m":"jp","oa":41715,"o":"nz,$A2F3"},{"a":41838,"t":"code","b":[201],"m":"ret"},{"a":41839,"l":"placing","c":"Set while the units are placed.","t":"byte","b":[0],"x":[25267,25283,41845,42097]},{"a":41840,"l":"placeUnits","c":"The side places its units, each one it places itself (bit 2 of its flags at $B6E4 + number) that is in the game: message $60 with the side's number, the unit's name and what it carries. The cursor moves until fire on one of the side's own squares, listed at $B65E (the code on the map, the side, and the floor it is under the unit).","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24153,24177]},{"a":41843,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":41845,"t":"code","b":[50,111,163],"m":"ld","oa":41839,"o":"(placing),a"},{"a":41848,"t":"code","b":[33,20,35],"m":"ld","o":"hl,$2314"},{"a":41851,"t":"code","b":[34,252,92],"m":"ld","oa":23804,"o":"($5CFC),hl"},{"a":41854,"t":"code","b":[33,5,5],"m":"ld","o":"hl,$0505"},{"a":41857,"t":"code","b":[34,17,93],"m":"ld","oa":23825,"o":"($5D11),hl"},{"a":41860,"t":"code","b":[62,140],"m":"ld","o":"a,$8C"},{"a":41862,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":41865,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)","x":[42093]},{"a":41868,"t":"code","b":[214,140],"m":"sub","o":"$8C"},{"a":41870,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":41871,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":41873,"t":"code","b":[33,228,182],"m":"ld","o":"hl,$B6E4"},{"a":41876,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":41877,"t":"code","b":[203,86],"m":"bit","o":"2,(hl)"},{"a":41879,"t":"code","b":[202,100,164],"m":"jp","oa":42084,"o":"z,$A464"},{"a":41882,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41885,"t":"code","b":[205,194,103],"m":"call","oa":26562,"o":"unitPtr"},{"a":41888,"t":"code","b":[221,126,37],"m":"ld","o":"a,(ix+$25)"},{"a":41891,"t":"code","b":[230,1],"m":"and","o":"$01"},{"a":41893,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":41896,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":41897,"t":"code","b":[194,100,164],"m":"jp","oa":42084,"o":"nz,$A464"},{"a":41900,"t":"code","b":[221,203,37,126],"m":"bit","o":"7,(ix+$25)"},{"a":41904,"t":"code","b":[194,100,164],"m":"jp","oa":42084,"o":"nz,$A464"},{"a":41907,"t":"code","b":[205,205,105],"m":"call","oa":27085,"o":"clearInfo"},{"a":41910,"t":"code","b":[62,96],"m":"ld","o":"a,$60"},{"a":41912,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":41915,"t":"code","b":[33,71,71],"m":"ld","o":"hl,$4747"},{"a":41918,"t":"code","b":[34,0,93],"m":"ld","oa":23808,"o":"($5D00),hl"},{"a":41921,"t":"code","b":[33,0,31],"m":"ld","o":"hl,$1F00"},{"a":41924,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":41927,"t":"code","b":[33,18,183],"m":"ld","o":"hl,$B712"},{"a":41930,"t":"code","b":[62,49],"m":"ld","o":"a,$31"},{"a":41932,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":41933,"t":"code","b":[205,247,100],"m":"call","oa":25847,"o":"printCharDouble"},{"a":41936,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":41939,"t":"code","b":[33,4,24],"m":"ld","o":"hl,$1804"},{"a":41942,"t":"code","b":[205,160,104],"m":"call","oa":26784,"o":"scenarioTextAt"},{"a":41945,"t":"code","b":[33,11,25],"m":"ld","o":"hl,$190B"},{"a":41948,"t":"code","b":[34,254,92],"m":"ld","oa":23806,"o":"($5CFE),hl"},{"a":41951,"t":"code","b":[205,93,120],"m":"call","oa":30813,"o":"listCarried"},{"a":41954,"t":"code","b":[58,143,93],"m":"ld","oa":23951,"o":"a,($5D8F)"},{"a":41957,"t":"code","b":[183],"m":"or","o":"a"},{"a":41958,"t":"code","b":[40,43],"m":"jr","oa":42003,"o":"z,$A413"},{"a":41960,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":41961,"t":"code","b":[33,122,91],"m":"ld","o":"hl,$5B7A"},{"a":41964,"t":"code","b":[197],"m":"push","o":"bc","x":[42001]},{"a":41965,"t":"code","b":[229],"m":"push","o":"hl"},{"a":41966,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":41967,"t":"code","b":[205,110,97],"m":"call","oa":24942,"o":"drawSquare"},{"a":41970,"t":"code","b":[58,255,92],"m":"ld","oa":23807,"o":"a,($5CFF)"},{"a":41973,"t":"code","b":[198,3],"m":"add","o":"a,$03"},{"a":41975,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":41978,"t":"code","b":[254,31],"m":"cp","o":"$1F"},{"a":41980,"t":"code","b":[32,13],"m":"jr","oa":41995,"o":"nz,$A40B"},{"a":41982,"t":"code","b":[214,6],"m":"sub","o":"$06"},{"a":41984,"t":"code","b":[50,255,92],"m":"ld","oa":23807,"o":"($5CFF),a"},{"a":41987,"t":"code","b":[58,254,92],"m":"ld","oa":23806,"o":"a,($5CFE)"},{"a":41990,"t":"code","b":[198,2],"m":"add","o":"a,$02"},{"a":41992,"t":"code","b":[50,254,92],"m":"ld","oa":23806,"o":"($5CFE),a"},{"a":41995,"t":"code","b":[225],"m":"pop","o":"hl","x":[41980]},{"a":41996,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":41997,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":42000,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42001,"t":"code","b":[16,217],"m":"djnz","oa":41964,"o":"$A3EC"},{"a":42003,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView","x":[41958]},{"a":42006,"t":"code","b":[205,133,103],"m":"call","oa":26501,"o":"showSides"},{"a":42009,"t":"code","b":[205,195,97],"m":"call","oa":25027,"o":"cursorStep","x":[42017,42057]},{"a":42012,"t":"code","b":[58,42,93],"m":"ld","oa":23850,"o":"a,($5D2A)"},{"a":42015,"t":"code","b":[203,71],"m":"bit","o":"0,a"},{"a":42017,"t":"code","b":[32,246],"m":"jr","oa":42009,"o":"nz,$A419"},{"a":42019,"t":"code","b":[205,12,104],"m":"call","oa":26636,"o":"cursorSquare"},{"a":42022,"t":"code","b":[237,91,36,93],"m":"ld","oa":23844,"o":"de,($5D24)"},{"a":42026,"t":"code","b":[205,18,97],"m":"call","oa":24850,"o":"mapSquare"},{"a":42029,"t":"code","b":[34,47,93],"m":"ld","oa":23855,"o":"($5D2F),hl"},{"a":42032,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":42033,"t":"code","b":[6,6],"m":"ld","o":"b,$06"},{"a":42035,"t":"code","b":[33,94,182],"m":"ld","o":"hl,$B65E"},{"a":42038,"t":"code","b":[229],"m":"push","o":"hl","x":[42055]},{"a":42039,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":42040,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42041,"t":"code","b":[32,7],"m":"jr","oa":42050,"o":"nz,$A442"},{"a":42043,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42044,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":42047,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42048,"t":"code","b":[40,9],"m":"jr","oa":42059,"o":"z,$A44B"},{"a":42050,"t":"code","b":[225],"m":"pop","o":"hl","x":[42041]},{"a":42051,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":42054,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42055,"t":"code","b":[16,237],"m":"djnz","oa":42038,"o":"$A436"},{"a":42057,"t":"code","b":[24,206],"m":"jr","oa":42009,"o":"$A419"},{"a":42059,"t":"code","b":[35],"m":"inc","o":"hl","x":[42048]},{"a":42060,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42061,"t":"code","b":[221,119,22],"m":"ld","o":"(ix+$16),a"},{"a":42064,"t":"code","b":[221,54,28,255],"m":"ld","o":"(ix+$1C),$FF"},{"a":42068,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42069,"t":"code","b":[42,47,93],"m":"ld","oa":23855,"o":"hl,($5D2F)"},{"a":42072,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)"},{"a":42075,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42076,"t":"code","b":[205,42,97],"m":"call","oa":24874,"o":"drawView"},{"a":42079,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":42081,"t":"code","b":[205,190,181],"m":"call","oa":46526,"o":"sound"},{"a":42084,"t":"code","b":[58,38,93],"m":"ld","oa":23846,"o":"a,($5D26)","x":[41879,41897,41904]},{"a":42087,"t":"code","b":[60],"m":"inc","o":"a"},{"a":42088,"t":"code","b":[50,38,93],"m":"ld","oa":23846,"o":"($5D26),a"},{"a":42091,"t":"code","b":[254,160],"m":"cp","o":"$A0"},{"a":42093,"t":"code","b":[194,137,163],"m":"jp","oa":41865,"o":"nz,$A389"},{"a":42096,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42097,"t":"code","b":[50,111,163],"m":"ld","oa":41839,"o":"(placing),a"},{"a":42100,"l":"clearDeploy","c":"Every square of the map that is one of the side's squares for placing ($B65E) becomes its floor.","t":"code","b":[33,191,214],"m":"ld","o":"hl,$D6BF","x":[24180]},{"a":42103,"t":"code","b":[78],"m":"ld","o":"c,(hl)","x":[42146]},{"a":42104,"t":"code","b":[253,33,94,182],"m":"ld","o":"iy,$B65E"},{"a":42108,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":42111,"t":"code","b":[6,6],"m":"ld","o":"b,$06"},{"a":42113,"t":"code","b":[121],"m":"ld","o":"a,c","x":[42129]},{"a":42114,"t":"code","b":[253,190,0],"m":"cp","o":"(iy+$00)"},{"a":42117,"t":"code","b":[32,8],"m":"jr","oa":42127,"o":"nz,$A48F"},{"a":42119,"t":"code","b":[58,18,183],"m":"ld","oa":46866,"o":"a,($B712)"},{"a":42122,"t":"code","b":[253,190,1],"m":"cp","o":"(iy+$01)"},{"a":42125,"t":"code","b":[40,6],"m":"jr","oa":42133,"o":"z,$A495"},{"a":42127,"t":"code","b":[253,25],"m":"add","o":"iy,de","x":[42117]},{"a":42129,"t":"code","b":[16,238],"m":"djnz","oa":42113,"o":"$A481"},{"a":42131,"t":"code","b":[24,4],"m":"jr","oa":42137,"o":"$A499"},{"a":42133,"t":"code","b":[253,126,2],"m":"ld","o":"a,(iy+$02)","x":[42125]},{"a":42136,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42137,"t":"code","b":[35],"m":"inc","o":"hl","x":[42131]},{"a":42138,"t":"code","b":[17,95,230],"m":"ld","o":"de,$E65F"},{"a":42141,"t":"code","b":[167],"m":"and","o":"a"},{"a":42142,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":42144,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42145,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42146,"t":"code","b":[24,211],"m":"jr","oa":42103,"o":"$A477"},{"a":42148,"l":"checkEnd","c":"Whether the game is over. A side with no units left gives the other the scenario's $B65C (to side 1) or $B65D (to side 0) in victory points. A side with 100 points, or the last turn ($B701) played, ends the game; otherwise NZ.","t":"code","b":[175],"m":"xor","o":"a","x":[24481,32612,33182,37233,37278,37306,38922]},{"a":42149,"t":"code","b":[205,58,165],"m":"call","oa":42298,"o":"sideLeft"},{"a":42152,"t":"code","b":[40,8],"m":"jr","oa":42162,"o":"z,$A4B2"},{"a":42154,"t":"code","b":[58,92,182],"m":"ld","oa":46684,"o":"a,($B65C)"},{"a":42157,"t":"code","b":[33,16,183],"m":"ld","o":"hl,$B710"},{"a":42160,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":42161,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42162,"t":"code","b":[62,1],"m":"ld","o":"a,$01","x":[42152]},{"a":42164,"t":"code","b":[205,58,165],"m":"call","oa":42298,"o":"sideLeft"},{"a":42167,"t":"code","b":[40,8],"m":"jr","oa":42177,"o":"z,$A4C1"},{"a":42169,"t":"code","b":[58,93,182],"m":"ld","oa":46685,"o":"a,($B65D)"},{"a":42172,"t":"code","b":[33,15,183],"m":"ld","o":"hl,$B70F"},{"a":42175,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":42176,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42177,"t":"code","b":[58,15,183],"m":"ld","oa":46863,"o":"a,($B70F)","x":[42167]},{"a":42180,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":42182,"t":"code","b":[48,17],"m":"jr","oa":42201,"o":"nc,$A4D9"},{"a":42184,"t":"code","b":[58,16,183],"m":"ld","oa":46864,"o":"a,($B710)"},{"a":42187,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":42189,"t":"code","b":[48,10],"m":"jr","oa":42201,"o":"nc,$A4D9"},{"a":42191,"t":"code","b":[58,17,183],"m":"ld","oa":46865,"o":"a,($B711)"},{"a":42194,"t":"code","b":[33,1,183],"m":"ld","o":"hl,$B701"},{"a":42197,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42198,"t":"code","b":[40,1],"m":"jr","oa":42201,"o":"z,$A4D9"},{"a":42200,"t":"code","b":[201],"m":"ret"},{"a":42201,"c":"The end: the screen cleared, the winner's name (the scenario's message $A0 or $A1 after message $62) or message $64 for none, the points at most 100, message $63 and the scores; then a key, and the game starts again at $B1C3.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[42182,42189,42198]},{"a":42204,"t":"code","b":[58,15,183],"m":"ld","oa":46863,"o":"a,($B70F)"},{"a":42207,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":42209,"t":"code","b":[56,7],"m":"jr","oa":42218,"o":"c,$A4EA"},{"a":42211,"t":"code","b":[62,160],"m":"ld","o":"a,$A0"},{"a":42213,"t":"code","b":[50,2,93],"m":"ld","oa":23810,"o":"($5D02),a"},{"a":42216,"t":"code","b":[24,21],"m":"jr","oa":42239,"o":"$A4FF"},{"a":42218,"t":"code","b":[58,16,183],"m":"ld","oa":46864,"o":"a,($B710)","x":[42209]},{"a":42221,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":42223,"t":"code","b":[56,7],"m":"jr","oa":42232,"o":"c,$A4F8"},{"a":42225,"t":"code","b":[62,161],"m":"ld","o":"a,$A1"},{"a":42227,"t":"code","b":[50,2,93],"m":"ld","oa":23810,"o":"($5D02),a"},{"a":42230,"t":"code","b":[24,7],"m":"jr","oa":42239,"o":"$A4FF"},{"a":42232,"t":"code","b":[62,100],"m":"ld","o":"a,$64","x":[42223]},{"a":42234,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":42237,"t":"code","b":[24,14],"m":"jr","oa":42253,"o":"$A50D"},{"a":42239,"t":"code","b":[62,98],"m":"ld","o":"a,$62","x":[42216,42230]},{"a":42241,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":42244,"t":"code","b":[58,2,93],"m":"ld","oa":23810,"o":"a,($5D02)"},{"a":42247,"t":"code","b":[33,9,5],"m":"ld","o":"hl,$0509"},{"a":42250,"t":"code","b":[205,122,107],"m":"call","oa":27514,"o":"scenarioMessageAt"},{"a":42253,"t":"code","b":[58,15,183],"m":"ld","oa":46863,"o":"a,($B70F)","x":[42237]},{"a":42256,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":42258,"t":"code","b":[56,5],"m":"jr","oa":42265,"o":"c,$A519"},{"a":42260,"t":"code","b":[62,100],"m":"ld","o":"a,$64"},{"a":42262,"t":"code","b":[50,15,183],"m":"ld","oa":46863,"o":"($B70F),a"},{"a":42265,"t":"code","b":[58,16,183],"m":"ld","oa":46864,"o":"a,($B710)","x":[42258]},{"a":42268,"t":"code","b":[254,100],"m":"cp","o":"$64"},{"a":42270,"t":"code","b":[56,5],"m":"jr","oa":42277,"o":"c,$A525"},{"a":42272,"t":"code","b":[62,100],"m":"ld","o":"a,$64"},{"a":42274,"t":"code","b":[50,16,183],"m":"ld","oa":46864,"o":"($B710),a"},{"a":42277,"t":"code","b":[62,99],"m":"ld","o":"a,$63","x":[42270]},{"a":42279,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":42282,"t":"code","b":[205,254,95],"m":"call","oa":24574,"o":"scores"},{"a":42285,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42286,"t":"code","b":[50,247,93],"m":"ld","oa":24055,"o":"($5DF7),a"},{"a":42289,"t":"code","b":[205,109,106],"m":"call","oa":27245,"o":"waitRelease"},{"a":42292,"t":"code","b":[205,247,119],"m":"call","oa":30711,"o":"waitFire"},{"a":42295,"t":"code","b":[195,195,177],"m":"jp","oa":45507,"o":"mainMenu"},{"a":42298,"l":"sideLeft","c":"Z if a unit of side A is in the table of units; NZ if none is left.","t":"code","b":[33,80,92],"m":"ld","o":"hl,$5C50","x":[42149,42164]},{"a":42301,"t":"code","b":[17,4,0],"m":"ld","o":"de,$0004"},{"a":42304,"t":"code","b":[6,20],"m":"ld","o":"b,$14"},{"a":42306,"t":"code","b":[190],"m":"cp","o":"(hl)","x":[42309]},{"a":42307,"t":"code","b":[200],"m":"ret","o":"z"},{"a":42308,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42309,"t":"code","b":[16,251],"m":"djnz","oa":42306,"o":"$A542"},{"a":42311,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":42313,"t":"code","b":[183],"m":"or","o":"a"},{"a":42314,"t":"code","b":[201],"m":"ret"},{"a":42315,"l":"nearFrom","c":"The squares the distance is measured between ($A54B, $A54D) and the larger difference ($A54F).","t":"byte","b":[0,0,0,0,0],"x":[39629,42320,42467]},{"a":42320,"l":"distance","c":"A = the distance from ($A54B, $A54C) to ($A54D, $A54E): twice the larger difference plus the smaller.","t":"code","b":[58,75,165],"m":"ld","oa":42315,"o":"a,(nearFrom)","x":[39653,42527]},{"a":42323,"t":"code","b":[33,77,165],"m":"ld","o":"hl,$A54D"},{"a":42326,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":42327,"t":"code","b":[242,92,165],"m":"jp","oa":42332,"o":"p,$A55C"},{"a":42330,"t":"code","b":[237,68],"m":"neg"},{"a":42332,"t":"code","b":[50,79,165],"m":"ld","oa":42319,"o":"($A54F),a","x":[42327]},{"a":42335,"t":"code","b":[58,76,165],"m":"ld","oa":42316,"o":"a,($A54C)"},{"a":42338,"t":"code","b":[33,78,165],"m":"ld","o":"hl,$A54E"},{"a":42341,"t":"code","b":[150],"m":"sub","o":"(hl)"},{"a":42342,"t":"code","b":[242,107,165],"m":"jp","oa":42347,"o":"p,$A56B"},{"a":42345,"t":"code","b":[237,68],"m":"neg"},{"a":42347,"t":"code","b":[33,79,165],"m":"ld","o":"hl,$A54F","x":[42342]},{"a":42350,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42351,"t":"code","b":[56,4],"m":"jr","oa":42357,"o":"c,$A575"},{"a":42353,"t":"code","b":[203,39],"m":"sla","o":"a"},{"a":42355,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":42356,"t":"code","b":[201],"m":"ret"},{"a":42357,"t":"code","b":[134],"m":"add","o":"a,(hl)","x":[42351]},{"a":42358,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":42359,"t":"code","b":[201],"m":"ret"},{"a":42360,"l":"sortList","c":"The list sortNear sorts.","t":"word","b":[0,0],"d":[0],"x":[42371,42567]},{"a":42362,"l":"sortNear","c":"Sort the list from ($A578), three bytes an entry (row, column, distance), ($5DFD) + 1 entries, by distance: ($5DFD) passes, each bubbling the nearest up from the end.","t":"code","b":[58,253,93],"m":"ld","oa":24061,"o":"a,($5DFD)","x":[42570]},{"a":42365,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":42366,"t":"code","b":[197],"m":"push","o":"bc","x":[42439]},{"a":42367,"t":"code","b":[58,253,93],"m":"ld","oa":24061,"o":"a,($5DFD)"},{"a":42370,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":42371,"t":"code","b":[42,120,165],"m":"ld","oa":42360,"o":"hl,(sortList)"},{"a":42374,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":42376,"t":"code","b":[88],"m":"ld","o":"e,b"},{"a":42377,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42378,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42379,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42380,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42381,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42382,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":42385,"t":"code","b":[197],"m":"push","o":"bc","x":[42436]},{"a":42386,"t":"code","b":[42,251,93],"m":"ld","oa":24059,"o":"hl,($5DFB)"},{"a":42389,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":42392,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42393,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42394,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":42396,"t":"code","b":[190],"m":"cp","o":"(hl)"},{"a":42397,"t":"code","b":[48,24],"m":"jr","oa":42423,"o":"nc,$A5B7"},{"a":42399,"t":"code","b":[6,3],"m":"ld","o":"b,$03"},{"a":42401,"t":"code","b":[42,251,93],"m":"ld","oa":24059,"o":"hl,($5DFB)","x":[42419]},{"a":42404,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":42407,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42408,"t":"code","b":[126],"m":"ld","o":"a,(hl)"},{"a":42409,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":42411,"t":"code","b":[78],"m":"ld","o":"c,(hl)"},{"a":42412,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42413,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":42414,"t":"code","b":[113],"m":"ld","o":"(hl),c"},{"a":42415,"t":"code","b":[43],"m":"dec","o":"hl"},{"a":42416,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":42419,"t":"code","b":[16,236],"m":"djnz","oa":42401,"o":"$A5A1"},{"a":42421,"t":"code","b":[24,12],"m":"jr","oa":42435,"o":"$A5C3"},{"a":42423,"t":"code","b":[42,251,93],"m":"ld","oa":24059,"o":"hl,($5DFB)","x":[42397]},{"a":42426,"t":"code","b":[17,3,0],"m":"ld","o":"de,$0003"},{"a":42429,"t":"code","b":[175],"m":"xor","o":"a"},{"a":42430,"t":"code","b":[237,82],"m":"sbc","o":"hl,de"},{"a":42432,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":42435,"t":"code","b":[193],"m":"pop","o":"bc","x":[42421]},{"a":42436,"t":"code","b":[16,203],"m":"djnz","oa":42385,"o":"$A591"},{"a":42438,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":42439,"t":"code","b":[16,181],"m":"djnz","oa":42366,"o":"$A57E"},{"a":42441,"t":"code","b":[201],"m":"ret"},{"a":42442,"l":"nearSteps","c":"The steps to the eight squares round a square: a row and a column each.","t":"byte","b":[0,1,1,1,1,0,1,255]},{"a":42450,"t":"byte","b":[0,255,255,255,255,0,255,1]},{"a":42458,"l":"nearVars","c":"The square measured from ($A5DA), the square round which ($A5DC), and the next step ($A5DE).","t":"byte","b":[0,0,0,0,0,0],"x":[39498,42464]},{"a":42464,"l":"nearSquares","c":"The eight squares round ($A5DC), by the steps at $A5CA, listed from $5B00 with their distance from ($A5DA), and sorted nearest first. A square off the map is three $FFs.","t":"code","b":[42,218,165],"m":"ld","oa":42458,"o":"hl,(nearVars)","x":[39507]},{"a":42467,"t":"code","b":[34,75,165],"m":"ld","oa":42315,"o":"(nearFrom),hl"},{"a":42470,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":42473,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":42476,"t":"code","b":[33,202,165],"m":"ld","o":"hl,$A5CA"},{"a":42479,"t":"code","b":[34,222,165],"m":"ld","oa":42462,"o":"($A5DE),hl"},{"a":42482,"t":"code","b":[6,8],"m":"ld","o":"b,$08"},{"a":42484,"t":"code","b":[197],"m":"push","o":"bc","x":[42537,42557]},{"a":42485,"t":"code","b":[42,222,165],"m":"ld","oa":42462,"o":"hl,($A5DE)"},{"a":42488,"t":"code","b":[58,220,165],"m":"ld","oa":42460,"o":"a,($A5DC)"},{"a":42491,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":42492,"t":"code","b":[254,50],"m":"cp","o":"$32"},{"a":42494,"t":"code","b":[48,45],"m":"jr","oa":42541,"o":"nc,$A62D"},{"a":42496,"t":"code","b":[50,77,165],"m":"ld","oa":42317,"o":"($A54D),a"},{"a":42499,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42500,"t":"code","b":[58,221,165],"m":"ld","oa":42461,"o":"a,($A5DD)"},{"a":42503,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":42504,"t":"code","b":[254,80],"m":"cp","o":"$50"},{"a":42506,"t":"code","b":[48,33],"m":"jr","oa":42541,"o":"nc,$A62D"},{"a":42508,"t":"code","b":[50,78,165],"m":"ld","oa":42318,"o":"($A54E),a"},{"a":42511,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42512,"t":"code","b":[34,222,165],"m":"ld","oa":42462,"o":"($A5DE),hl"},{"a":42515,"t":"code","b":[42,251,93],"m":"ld","oa":24059,"o":"hl,($5DFB)"},{"a":42518,"t":"code","b":[237,91,77,165],"m":"ld","oa":42317,"o":"de,($A54D)"},{"a":42522,"t":"code","b":[115],"m":"ld","o":"(hl),e"},{"a":42523,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42524,"t":"code","b":[114],"m":"ld","o":"(hl),d"},{"a":42525,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42526,"t":"code","b":[229],"m":"push","o":"hl"},{"a":42527,"t":"code","b":[205,80,165],"m":"call","oa":42320,"o":"distance"},{"a":42530,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":42531,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":42532,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42533,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":42536,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":42537,"t":"code","b":[16,201],"m":"djnz","oa":42484,"o":"$A5F4"},{"a":42539,"t":"code","b":[24,18],"m":"jr","oa":42559,"o":"$A63F"},{"a":42541,"c":"The steps are not moved on past a square off the map, so every square after it is off the map too.","t":"code","b":[42,251,93],"m":"ld","oa":24059,"o":"hl,($5DFB)","x":[42494,42506]},{"a":42544,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":42546,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42547,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":42549,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42550,"t":"code","b":[54,255],"m":"ld","o":"(hl),$FF"},{"a":42552,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":42553,"t":"code","b":[34,251,93],"m":"ld","oa":24059,"o":"($5DFB),hl"},{"a":42556,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":42557,"t":"code","b":[16,181],"m":"djnz","oa":42484,"o":"$A5F4"},{"a":42559,"t":"code","b":[62,7],"m":"ld","o":"a,$07","x":[42539]},{"a":42561,"t":"code","b":[50,253,93],"m":"ld","oa":24061,"o":"($5DFD),a"},{"a":42564,"t":"code","b":[33,0,91],"m":"ld","o":"hl,$5B00"},{"a":42567,"t":"code","b":[34,120,165],"m":"ld","oa":42360,"o":"(sortList),hl"},{"a":42570,"t":"code","b":[205,122,165],"m":"call","oa":42362,"o":"sortNear"},{"a":42573,"t":"code","b":[201],"m":"ret"},{"a":42574,"l":"engineMessages","c":"The engine's messages, for printMessage ($6557) through text ($676C) and infoText ($675E): each begins after a $7C, message A after the A-th, and is a list of the words of the engine's dictionary ($AC06) by number, with codes from $F1 (textCode, $663F) for the colours, the place, double height and characters in place of words, and '/' for a new line. The text of each is given in its comment, without its colours and places. First, message $01: (the frame's characters)","t":"byte","b":[124,251,245,0,0,112,113,115]},{"a":42582,"t":"byte","b":[115,115,115,115,115,115,115,115]},{"a":42590,"t":"byte","b":[115,115,115,115,115,115,115,115]},{"a":42598,"t":"byte","b":[115,115,115,92,247,93,95,116]},{"a":42606,"t":"byte","b":[116,116,116,116,116,116,116,116]},{"a":42614,"t":"byte","b":[116,116,116,116,116,116,116,116]},{"a":42622,"t":"byte","b":[116,116,116,117,119,245,1,0]},{"a":42630,"t":"byte","b":[114,94,94,94,94,94,94,94]},{"a":42638,"t":"byte","b":[94,94,94,94,94,94,94,94]},{"a":42646,"t":"byte","b":[94,94,94,94,94,120,248,122]},{"a":42654,"t":"byte","b":[123,121,121,245,23,20,121,121]},{"a":42662,"t":"byte","b":[118]},{"a":42663,"c":"Message $02: TURN VP","t":"byte","b":[124,251,245,23,4,246,70,125]},{"a":42671,"t":"byte","b":[246,114,84,85,82,78,62,32]},{"a":42679,"t":"byte","b":[32,32,86,80,62,32,32,32]},{"a":42687,"t":"byte","b":[246,70,126]},{"a":42690,"c":"Message $03","t":"byte","b":[124,246,0,0,245,4,24,8]},{"a":42698,"t":"byte","b":[47,8,245,9,24,8,47,8]},{"a":42706,"t":"byte","b":[245,14,24,8,47,8,47,47]},{"a":42714,"t":"byte","b":[8,47,8]},{"a":42717,"c":"Message $04: MAP / OBJECT / UNIT / OBJECT / IN USE","t":"byte","b":[124,243,246,70,245,0,26,1]},{"a":42725,"t":"byte","b":[245,3,24,246,68,2,7,245]},{"a":42733,"t":"byte","b":[8,24,3,7,245,13,24,4]},{"a":42741,"t":"byte","b":[7,245,18,24,3,47,244,5]},{"a":42749,"t":"byte","b":[243,6,7]},{"a":42752,"c":"Message $05","t":"byte","b":[124,245,0,24,246,0,0,8]},{"a":42760,"t":"byte","b":[47,8,47,8,47,8,47,8]},{"a":42768,"t":"byte","b":[47,8,47,8,47,8,47,8]},{"a":42776,"t":"byte","b":[47,8,47,8,47,8]},{"a":42782,"c":"Message $06: SELECT / OPTION","t":"byte","b":[124,245,0,26,246,68,1,245]},{"a":42790,"t":"byte","b":[2,24,246,69,9,47,10,250]},{"a":42798,"t":"byte","b":[245,2,30,246,71,71,251,62]},{"a":42806,"c":"Message $07: SELECT","t":"byte","b":[124,9,47]},{"a":42809,"c":"Message $08: INFO","t":"byte","b":[124,246,69,69,11,47]},{"a":42815,"c":"Message $09: NEXTUNIT / SCANNER / END TURN / CANCEL","t":"byte","b":[124,246,68,68,243,12,4,47]},{"a":42823,"t":"byte","b":[246,67,67,13,47,246,66,66]},{"a":42831,"t":"byte","b":[14,32,15,47,246,71,71,16]},{"a":42839,"c":"Message $0A: AP / S / MORALE / STAMINA / WOUN / BURD / OBJECT / TERRAIN / PROT","t":"byte","b":[124,246,68,68,245,4,24,17]},{"a":42847,"t":"byte","b":[245,9,24,243,18,7,47,47]},{"a":42855,"t":"byte","b":[19,7,47,47,20,7,47,21]},{"a":42863,"t":"byte","b":[7,47,3,7,245,18,24,22]},{"a":42871,"t":"byte","b":[7,47,47,47,23,7]},{"a":42877,"c":"Message $0B: (the frame's characters)","t":"byte","b":[124,251,246,66,245,4,27,112]},{"a":42885,"t":"byte","b":[113,115,92,93,47,114,32,32]},{"a":42893,"t":"byte","b":[32,95,47,94,32,91,32,116]},{"a":42901,"t":"byte","b":[47,120,32,32,32,117,47,122]},{"a":42909,"t":"byte","b":[123,121,118,119,246,70,251]},{"a":42916,"c":"Message $0C: APS","t":"byte","b":[124,245,5,29,104]},{"a":42921,"c":"Message $0D: AMM","t":"byte","b":[124,245,5,30,105]},{"a":42926,"c":"Message $0E: SHOT","t":"byte","b":[124,245,6,30,106]},{"a":42931,"c":"Message $0F: ACC AP","t":"byte","b":[124,245,7,30,107]},{"a":42936,"c":"Message $10: N.A.","t":"byte","b":[124,245,7,29,108]},{"a":42941,"c":"Message $11: AMMO","t":"byte","b":[124,245,7,28,109]},{"a":42946,"c":"Message $12: HOW","t":"byte","b":[124,245,6,28,110]},{"a":42951,"c":"Message $13: MANY","t":"byte","b":[124,245,5,28,111]},{"a":42956,"c":"Message $14: NOT / ENOUGH / ACTION / POINTS","t":"byte","b":[124,24,47,25,47,26,47,27]},{"a":42964,"c":"Message $15","t":"byte","b":[124,8,47,8]},{"a":42968,"c":"Message $16","t":"byte","b":[124,245,22,24,8,47,8]},{"a":42975,"c":"Message $17: ENEMY","t":"byte","b":[124,246,114,114,245,22,26,41]},{"a":42983,"c":"Message $18: OPPORTUNITY FIRE","t":"byte","b":[124,245,0,3,243,28,30,31]},{"a":42991,"t":"byte","b":[32,36,29]},{"a":42994,"c":"Message $19: SPOTTED / BY","t":"byte","b":[124,245,0,24,33,47,34]},{"a":43001,"c":"Message $1A: PRESS / FIRE TO / CONTINUE","t":"byte","b":[124,246,69,245,21,24,35,47]},{"a":43009,"t":"byte","b":[36,37,47,38]},{"a":43013,"c":"Message $1B: END OF / OPPOR - / TUNITY / FIRE","t":"byte","b":[124,245,0,24,14,39,47,30]},{"a":43021,"t":"byte","b":[42,47,31,47,36]},{"a":43026,"c":"Message $1C: END MOVE","t":"byte","b":[124,246,66,66,14,32,40,47]},{"a":43034,"c":"Message $1D: FIRE","t":"byte","b":[124,246,70,70,36,47]},{"a":43040,"c":"Message $1E: CHANGE","t":"byte","b":[124,246,69,69,43,47]},{"a":43046,"c":"Message $1F: PICK UP","t":"byte","b":[124,246,69,69,44,32,45,47]},{"a":43054,"c":"Message $20: DROP","t":"byte","b":[124,246,69,69,46,47]},{"a":43060,"c":"Message $21: LOAD","t":"byte","b":[124,246,70,70,48,47]},{"a":43066,"c":"Message $22: PRIME","t":"byte","b":[124,246,70,70,49,47]},{"a":43072,"c":"Message $23: OPEN","t":"byte","b":[124,246,68,68,50,47]},{"a":43078,"c":"Message $24: LOCK","t":"byte","b":[124,246,68,68,51,47]},{"a":43084,"c":"Message $25: CLOSE","t":"byte","b":[124,246,68,68,52,47]},{"a":43090,"c":"Message $26: UN LOCK","t":"byte","b":[124,246,68,68,53,51,47]},{"a":43097,"c":"Message $27: SCANNER","t":"byte","b":[124,246,67,67,13,47]},{"a":43103,"c":"Message $28: CANCEL","t":"byte","b":[124,246,71,71,16,47]},{"a":43109,"c":"Message $29: CHANGE OBJECT IN USE / OBJECT NAME / AM: WT: SZ: / NO OBJECT IN USE","t":"byte","b":[124,245,0,3,246,69,43,3]},{"a":43117,"t":"byte","b":[5,6,47,246,68,3,54,245]},{"a":43125,"t":"byte","b":[1,21,55,56,57,245,2,3]},{"a":43133,"t":"byte","b":[250,246,70,70,58,3,5,6]},{"a":43141,"c":"Message $2A: PICK UP OBJECT / OBJECT NAME / AM: WT: SZ: / CANCEL","t":"byte","b":[124,245,0,3,246,69,44,45]},{"a":43149,"t":"byte","b":[3,47,246,68,3,54,245,1]},{"a":43157,"t":"byte","b":[21,55,56,57,245,2,3,250]},{"a":43165,"t":"byte","b":[246,67,66,16]},{"a":43169,"c":"Message $2B: OBJECT / IS TOO / HEAVY / TO PICK / UP","t":"byte","b":[124,3,47,59,60,47,61,47]},{"a":43177,"t":"byte","b":[37,44,47,45]},{"a":43181,"c":"Message $2C: OBJECT / IS TOO / BIG TO / PICK UP","t":"byte","b":[124,3,47,59,60,47,62,37]},{"a":43189,"t":"byte","b":[47,44,45]},{"a":43192,"c":"Message $2D: NOT / ENOUGH / ACTION / POINTS / FOR / CLOSE / COMBAT","t":"byte","b":[124,24,47,25,47,26,47,27]},{"a":43200,"t":"byte","b":[47,74,47,75,47,76]},{"a":43206,"c":"Message $2E: PANICKED","t":"byte","b":[124,246,214,63]},{"a":43210,"c":"Message $2F: SCARED","t":"byte","b":[124,64]},{"a":43212,"c":"Message $30: AFRAID","t":"byte","b":[124,65]},{"a":43214,"c":"Message $31: POOR","t":"byte","b":[124,66]},{"a":43216,"c":"Message $32: OK","t":"byte","b":[124,67]},{"a":43218,"c":"Message $33: GOOD","t":"byte","b":[124,68]},{"a":43220,"c":"Message $34: GREAT","t":"byte","b":[124,69]},{"a":43222,"c":"Message $35: SUPERB","t":"byte","b":[124,70]},{"a":43224,"c":"Message $36: FEEBLE","t":"byte","b":[124,246,205,71]},{"a":43228,"c":"Message $37: WEAK","t":"byte","b":[124,72]},{"a":43230,"c":"Message $38: TIRING","t":"byte","b":[124,73]},{"a":43232,"c":"Message $39: POOR","t":"byte","b":[124,66]},{"a":43234,"c":"Message $3A: OK","t":"byte","b":[124,67]},{"a":43236,"c":"Message $3B: GOOD","t":"byte","b":[124,68]},{"a":43238,"c":"Message $3C: GREAT","t":"byte","b":[124,69]},{"a":43240,"c":"Message $3D: SUPERB","t":"byte","b":[124,70]},{"a":43242,"c":"Message $3E: WEAPON / ACCURACY / COST / DAMAGE / LOCATION","t":"byte","b":[124,245,0,24,246,68,243,77]},{"a":43250,"t":"byte","b":[7,245,6,24,78,245,10,24]},{"a":43258,"t":"byte","b":[79,7,245,14,24,80,7,245]},{"a":43266,"t":"byte","b":[19,24,81]},{"a":43269,"c":"Message $3F: UNARMED","t":"byte","b":[124,82]},{"a":43271,"c":"Message $40: FRONT","t":"byte","b":[124,83]},{"a":43273,"c":"Message $41: RIGHT / SIDE","t":"byte","b":[124,250,84,47,87]},{"a":43278,"c":"Message $42: REAR","t":"byte","b":[124,250,86]},{"a":43281,"c":"Message $43: LEFT / SIDE","t":"byte","b":[124,250,85,47,87]},{"a":43286,"c":"Message $44: MISS","t":"byte","b":[124,88]},{"a":43288,"c":"Message $45: STRATEGIC SCANNER / PRESS FIRE / TO RETURN","t":"byte","b":[124,245,0,1,250,246,67,66]},{"a":43296,"t":"byte","b":[89,13,249,246,67,245,21,21]},{"a":43304,"t":"byte","b":[35,36,47,37,90]},{"a":43309,"c":"Message $46: UNIT / ARMOUR / REAR / RIGHT / LEFT / FRONT / WT: / WEAPON SKILL / CLOSE COMBAT / AGILITY / STRENGTH / CONSTITUTION / ACTION PT.S / MORALE / STAMINA","t":"byte","b":[124,246,68,68,243,245,0,0]},{"a":43317,"t":"byte","b":[4,99,245,0,11,91,245,0]},{"a":43325,"t":"byte","b":[26,92,86,245,3,11,84,245]},{"a":43333,"t":"byte","b":[3,27,85,245,6,26,92,83]},{"a":43341,"t":"byte","b":[249,245,6,11,56,245,2,20]},{"a":43349,"t":"byte","b":[246,66,93,246,68,250,245,8]},{"a":43357,"t":"byte","b":[0,77,32,94,99,47,75,32]},{"a":43365,"t":"byte","b":[76,99,245,12,5,95,99,245]},{"a":43373,"t":"byte","b":[14,4,96,99,245,16,0,97]},{"a":43381,"t":"byte","b":[99,47,32,26,32,98,99,245]},{"a":43389,"t":"byte","b":[20,6,18,99,245,22,5,19]},{"a":43397,"t":"byte","b":[99]},{"a":43398,"c":"Message $47: AUTO","t":"byte","b":[124,250,100,47]},{"a":43402,"c":"Message $48: SNAP","t":"byte","b":[124,250,101,47]},{"a":43406,"c":"Message $49: AIM","t":"byte","b":[124,250,102,47]},{"a":43410,"c":"Message $4A: THROW","t":"byte","b":[124,250,103,47]},{"a":43414,"c":"Message $4B: END FIRE / CANCEL","t":"byte","b":[124,246,66,66,243,14,32,36]},{"a":43422,"t":"byte","b":[47,246,71,71,16]},{"a":43427,"c":"Message $4C: APS / AMM / AUTOSHOT / ACC AP / SNAPSHOT / ACC AP / AIM SHOT / ACC AP / THROW / ACC AP","t":"byte","b":[124,245,4,24,243,246,68,68]},{"a":43435,"t":"byte","b":[104,99,47,105,99,47,249,246]},{"a":43443,"t":"byte","b":[69,100,106,47,107,47,47,47]},{"a":43451,"t":"byte","b":[101,106,47,107,47,47,47,102]},{"a":43459,"t":"byte","b":[32,106,47,107,47,47,47,103]},{"a":43467,"t":"byte","b":[47,107,250,246,6,70]},{"a":43473,"c":"Message $4D: N.A.","t":"byte","b":[124,246,66,66,108,246,70,70]},{"a":43481,"c":"Message $4E: NO AMMO / IN / WEAPON","t":"byte","b":[124,58,109,47,5,47,77]},{"a":43488,"c":"Message $4F: PRESS / FIRE TO / SELECT / SECOND / POINT","t":"byte","b":[124,245,0,24,246,69,5,35]},{"a":43496,"t":"byte","b":[47,36,37,47,9,47,113,47]},{"a":43504,"t":"byte","b":[114]},{"a":43505,"c":"Message $50: HOW MANY / ROUNDS ?","t":"byte","b":[124,245,0,24,246,69,5,110]},{"a":43513,"t":"byte","b":[111,47,112]},{"a":43516,"c":"Message $51: CAUGHT / BY","t":"byte","b":[124,245,0,24,115,47,116]},{"a":43523,"c":"Message $52: CANCEL / END TURN","t":"byte","b":[124,246,71,71,16,47,246,66]},{"a":43531,"t":"byte","b":[66,243,14,32,15]},{"a":43536,"c":"Message $53: LASER / SQUAD","t":"byte","b":[124,246,70,245,2,5,1,245]},{"a":43544,"t":"byte","b":[2,23,1,250,246,67,66,245]},{"a":43552,"t":"byte","b":[2,10,117,245,2,17,118]},{"a":43559,"c":"Message $54: PLAYER / TURN / TURNS LEFT","t":"byte","b":[124,243,246,68,68,245,6,5]},{"a":43567,"t":"byte","b":[119,99,245,9,5,15,99,245]},{"a":43575,"t":"byte","b":[9,14,15,120,85,99]},{"a":43581,"c":"Message $55: SET / TIMER","t":"byte","b":[124,245,0,26,246,6,68,122]},{"a":43589,"t":"byte","b":[47,123,246,69,69]},{"a":43594,"c":"Message $56: WEAPON / IS / LOADED","t":"byte","b":[124,245,0,24,77,47,59,47]},{"a":43602,"t":"byte","b":[125]},{"a":43603,"c":"Message $57: NO / YES / DO YOU / WANT TO / HIDE / THIS / OBJECT ?","t":"byte","b":[124,58,47,246,68,68,126,47]},{"a":43611,"t":"byte","b":[47,246,66,3,127,128,47,129]},{"a":43619,"t":"byte","b":[37,47,130,47,131,47,3,132]},{"a":43627,"c":"Message $58: SIDE / CREDS","t":"byte","b":[124,243,245,0,0,246,68,68]},{"a":43635,"t":"byte","b":[87,99,245,0,23,133,99,246]},{"a":43643,"t":"byte","b":[70,70]},{"a":43645,"c":"Message $59: PRESS FIRE TO END SELECTION","t":"byte","b":[124,243,246,77,77,245,2,0]},{"a":43653,"t":"byte","b":[35,32,36,32,37,32,14,32]},{"a":43661,"t":"byte","b":[9,138,32,32,32,32,32]},{"a":43668,"c":"Message $5A: SELECT ARMOUR / TYPE: 1 2 3 4 / FRONT / LEFT / RIGHT / REAR / WEIGHT / CARRY / COST","t":"byte","b":[124,245,4,13,246,5,69,9]},{"a":43676,"t":"byte","b":[91,249,246,68,245,7,13,134]},{"a":43684,"t":"byte","b":[47,47,83,47,85,47,84,47]},{"a":43692,"t":"byte","b":[86,47,47,135,47,136,47,47]},{"a":43700,"t":"byte","b":[79]},{"a":43701,"c":"Message $5B: OBJECT COST","t":"byte","b":[124,243,245,2,0,3,32,32]},{"a":43709,"t":"byte","b":[32,99,32,32,92,8,32,32]},{"a":43717,"t":"byte","b":[137,99]},{"a":43719,"c":"Message $5C: OBJECT IS TOO HEAVY","t":"byte","b":[124,243,246,86,86,245,2,0]},{"a":43727,"t":"byte","b":[3,32,59,32,60,32,61,8]},{"a":43735,"t":"byte","b":[32,32,32,32,32]},{"a":43740,"c":"Message $5D: OBJECT IS TOO BIG","t":"byte","b":[124,243,246,86,86,245,2,0]},{"a":43748,"t":"byte","b":[3,32,59,32,60,32,62,8]},{"a":43756,"t":"byte","b":[32,32,32,32,32,32,32]},{"a":43763,"c":"Message $5E: HOW MANY PLAYERS ? / (PRESS 1 OR 2)","t":"byte","b":[124,245,10,7,110,111,243,119]},{"a":43771,"t":"byte","b":[120,132,246,4,68,47,139,35]},{"a":43779,"t":"byte","b":[140]},{"a":43780,"c":"Message $5F: WHICH LEVEL ? / (PRESS 1 TO / )","t":"byte","b":[124,245,10,7,141,142,132,47]},{"a":43788,"t":"byte","b":[246,4,68,243,139,35,143,245]},{"a":43796,"t":"byte","b":[12,20,144]},{"a":43799,"c":"Message $60: PLAYER / DEPLOY / OBJECT / PRESS / FIRE TO / DEPLOY","t":"byte","b":[124,245,0,24,119,47,243,246]},{"a":43807,"t":"byte","b":[4,68,145,99,245,9,24,3]},{"a":43815,"t":"byte","b":[99,245,21,24,249,244,246,67]},{"a":43823,"t":"byte","b":[35,47,36,37,47,145]},{"a":43829,"c":"Message $61: HAS / PANICKED","t":"byte","b":[124,245,5,24,146,47,63]},{"a":43836,"c":"Message $62: VICTORY TO","t":"byte","b":[124,245,7,5,121,243,37,99]},{"a":43844,"t":"byte","b":[246,71,71]},{"a":43847,"c":"Message $63: LASER SQUAD / GAME OVER","t":"byte","b":[124,246,70,245,2,5,1,245]},{"a":43855,"t":"byte","b":[2,23,1,250,246,67,66,245]},{"a":43863,"t":"byte","b":[0,10,117,243,32,118,245,3]},{"a":43871,"t":"byte","b":[11,147,148]},{"a":43874,"c":"Message $64: GAME IS DRAWN","t":"byte","b":[124,245,7,9,147,59,149]},{"a":43881,"c":"Message $65: LASER SQUAD / HIDDEN / MOVEMENT","t":"byte","b":[124,243,246,67,66,245,6,6]},{"a":43889,"t":"byte","b":[117,32,32,118,245,13,9,150]},{"a":43897,"t":"byte","b":[245,16,8,151,249,246,70,245]},{"a":43905,"t":"byte","b":[10,10,1]},{"a":43908,"c":"Message $66: NP","t":"byte","b":[124,246,66,67,152]},{"a":43913,"c":"Message $67: NOT IN / FIELD OF / VISION","t":"byte","b":[124,24,5,47,153,39,47,154]},{"a":43921,"c":"Message $68: VICTORY POINTS / PRESS FIRE TO CONTINUE","t":"byte","b":[124,243,250,246,68,68,245,13]},{"a":43929,"t":"byte","b":[5,121,32,27,99,245,16,9]},{"a":43937,"t":"byte","b":[99,245,19,9,99,249,244,246]},{"a":43945,"t":"byte","b":[67,245,23,5,35,36,37,38]},{"a":43953,"t":"byte","b":[250,246,70,70]},{"a":43957,"c":"Message $69: WHICH CONTROLS ? / 1: SINCLAIR JOYSTICK / 2: KEMPSTON JOYSTICK / 3: PROTEK, AGF / 4: KEYBOARD","t":"byte","b":[124,245,6,5,141,155,246,69]},{"a":43965,"t":"byte","b":[5,245,9,5,156,157,47,158]},{"a":43973,"t":"byte","b":[157,47,159,47,160]},{"a":43978,"c":"Message $6A: TAPE ERROR PRESS ANY KEY","t":"byte","b":[124,245,11,4,161,162,99,35]},{"a":43986,"t":"byte","b":[164,165]},{"a":43988,"c":"Message $6B: VERIFY OK PRESS ANY KEY","t":"byte","b":[124,246,71,7,245,11,4,163]},{"a":43996,"t":"byte","b":[67,99,35,164,165]},{"a":44001,"c":"Message $6C: WHICH SCENARIO ? / 1: THE ASSASSINS / 2: MOONBASE ASSAULT / 3: RESCUE FROM THE MINES / 4: SAVED GAME / 5: THE CYBER HORDES / 6: PARADISE VALLEY","t":"byte","b":[124,245,6,5,141,166,245,9]},{"a":44009,"t":"byte","b":[5,246,69,5,167]},{"a":44014,"c":"Message $6D: WHICH OPTION ? / 1: CHANGE CONTROLS / 2: SAVE / 3: LOAD / 4: VERIFY / PRESS FIRE TO CONTINUE","t":"byte","b":[124,245,6,5,141,168,245,9]},{"a":44022,"t":"byte","b":[5,246,69,5,169,245,19,5]},{"a":44030,"t":"byte","b":[246,68,4,35,36,37,38,124]},{"a":44038,"l":"engineWords","c":"The engine's dictionary: word A is the bytes after the A-th $7C, characters of the font, with codes from $80 for colours inside a word (the arrows of the readouts) and '/' for a new line; a space follows each word unless bit 1 of $5D09 is set. The engine's messages use it, and a scenario's through code $FF or $FD. First, word $01 (the frame's or the logo's characters, or codes only)","t":"byte","b":[124,96,97,100,101,47,98,99]},{"a":44046,"t":"byte","b":[102,103]},{"a":44048,"c":"Word $02: MAP","t":"byte","b":[124,77,65,80]},{"a":44052,"c":"Word $03: OBJECT","t":"byte","b":[124,79,66,74,69,67,84]},{"a":44059,"c":"Word $04: UNIT","t":"byte","b":[124,85,78,73,84]},{"a":44064,"c":"Word $05: IN","t":"byte","b":[124,73,78]},{"a":44067,"c":"Word $06: USE","t":"byte","b":[124,85,83,69]},{"a":44071,"c":"Word $07: [colours $45]\u25b6[colours $44]","t":"byte","b":[124,246,69,62,246,68]},{"a":44077,"c":"Word $08 (the frame's or the logo's characters, or codes only)","t":"byte","b":[124,32,32,32,32,32,32,32]},{"a":44085,"t":"byte","b":[32]},{"a":44086,"c":"Word $09: SELECT","t":"byte","b":[124,83,69,76,69,67,84]},{"a":44093,"c":"Word $0A: OPTION","t":"byte","b":[124,79,80,84,73,79,78]},{"a":44100,"c":"Word $0B: INFO","t":"byte","b":[124,73,78,70,79]},{"a":44105,"c":"Word $0C: NEXT","t":"byte","b":[124,78,69,88,84]},{"a":44110,"c":"Word $0D: SCANNER","t":"byte","b":[124,83,67,65,78,78,69,82]},{"a":44118,"c":"Word $0E: END","t":"byte","b":[124,69,78,68]},{"a":44122,"c":"Word $0F: TURN","t":"byte","b":[124,84,85,82,78]},{"a":44127,"c":"Word $10: CANCEL","t":"byte","b":[124,67,65,78,67,69,76]},{"a":44134,"c":"Word $11: AP[single height][to row 5, column 26]S","t":"byte","b":[124,65,80,249,245,5,26,83]},{"a":44142,"c":"Word $12: MORALE","t":"byte","b":[124,77,79,82,65,76,69]},{"a":44149,"c":"Word $13: STAMINA","t":"byte","b":[124,83,84,65,77,73,78,65]},{"a":44157,"c":"Word $14: WOUN","t":"byte","b":[124,87,79,85,78]},{"a":44162,"c":"Word $15: BURD","t":"byte","b":[124,66,85,82,68]},{"a":44167,"c":"Word $16: TERRAIN","t":"byte","b":[124,84,69,82,82,65,73,78]},{"a":44175,"c":"Word $17: PROT","t":"byte","b":[124,80,82,79,84]},{"a":44180,"c":"Word $18: NOT","t":"byte","b":[124,78,79,84]},{"a":44184,"c":"Word $19: ENOUGH","t":"byte","b":[124,69,78,79,85,71,72]},{"a":44191,"c":"Word $1A: ACTION","t":"byte","b":[124,65,67,84,73,79,78]},{"a":44198,"c":"Word $1B: POINTS","t":"byte","b":[124,80,79,73,78,84,83]},{"a":44205,"c":"Word $1C: [colours $46](the left end of a bar)[colours $72]","t":"byte","b":[124,246,70,125,246,114]},{"a":44211,"c":"Word $1D: [colours $46](the right end of a bar)","t":"byte","b":[124,246,70,126]},{"a":44215,"c":"Word $1E: OPPOR","t":"byte","b":[124,79,80,80,79,82]},{"a":44221,"c":"Word $1F: TUNITY","t":"byte","b":[124,84,85,78,73,84,89]},{"a":44228,"c":"Word $20 (the frame's or the logo's characters, or codes only)","t":"byte","b":[124,32]},{"a":44230,"c":"Word $21: SPOTTED","t":"byte","b":[124,83,80,79,84,84,69,68]},{"a":44238,"c":"Word $22: BY","t":"byte","b":[124,66,89]},{"a":44241,"c":"Word $23: PRESS","t":"byte","b":[124,80,82,69,83,83]},{"a":44247,"c":"Word $24: FIRE","t":"byte","b":[124,70,73,82,69]},{"a":44252,"c":"Word $25: TO","t":"byte","b":[124,84,79]},{"a":44255,"c":"Word $26: CONTINUE","t":"byte","b":[124,67,79,78,84,73,78,85]},{"a":44263,"t":"byte","b":[69]},{"a":44264,"c":"Word $27: OF","t":"byte","b":[124,79,70]},{"a":44267,"c":"Word $28: MOVE","t":"byte","b":[124,77,79,86,69]},{"a":44272,"c":"Word $29: \u25c0ENEMY","t":"byte","b":[124,60,69,78,69,77,89]},{"a":44279,"c":"Word $2A: -","t":"byte","b":[124,45]},{"a":44281,"c":"Word $2B: CHANGE","t":"byte","b":[124,67,72,65,78,71,69]},{"a":44288,"c":"Word $2C: PICK","t":"byte","b":[124,80,73,67,75]},{"a":44293,"c":"Word $2D: UP","t":"byte","b":[124,85,80]},{"a":44296,"c":"Word $2E: DROP","t":"byte","b":[124,68,82,79,80]},{"a":44301,"c":"Word $2F (the frame's or the logo's characters, or codes only)","t":"byte","b":[124]},{"a":44302,"c":"Word $30: LOAD","t":"byte","b":[124,76,79,65,68]},{"a":44307,"c":"Word $31: PRIME","t":"byte","b":[124,80,82,73,77,69]},{"a":44313,"c":"Word $32: OPEN","t":"byte","b":[124,79,80,69,78]},{"a":44318,"c":"Word $33: LOCK","t":"byte","b":[124,76,79,67,75]},{"a":44323,"c":"Word $34: CLOSE","t":"byte","b":[124,67,76,79,83,69]},{"a":44329,"c":"Word $35: UN","t":"byte","b":[124,85,78]},{"a":44332,"c":"Word $36: NAME","t":"byte","b":[124,78,65,77,69]},{"a":44337,"c":"Word $37: AM:","t":"byte","b":[124,65,77,58]},{"a":44341,"c":"Word $38: WT:","t":"byte","b":[124,87,84,58]},{"a":44345,"c":"Word $39: SZ:","t":"byte","b":[124,83,90,58]},{"a":44349,"c":"Word $3A: NO","t":"byte","b":[124,78,79]},{"a":44352,"c":"Word $3B: IS","t":"byte","b":[124,73,83]},{"a":44355,"c":"Word $3C: TOO","t":"byte","b":[124,84,79,79]},{"a":44359,"c":"Word $3D: HEAVY","t":"byte","b":[124,72,69,65,86,89]},{"a":44365,"c":"Word $3E: BIG","t":"byte","b":[124,66,73,71]},{"a":44369,"c":"Word $3F: PANICKED","t":"byte","b":[124,80,65,78,73,67,75,69]},{"a":44377,"t":"byte","b":[68]},{"a":44378,"c":"Word $40: SCARED","t":"byte","b":[124,83,67,65,82,69,68]},{"a":44385,"c":"Word $41: AFRAID","t":"byte","b":[124,65,70,82,65,73,68]},{"a":44392,"c":"Word $42: POOR","t":"byte","b":[124,80,79,79,82]},{"a":44397,"c":"Word $43: OK","t":"byte","b":[124,79,75]},{"a":44400,"c":"Word $44: GOOD","t":"byte","b":[124,71,79,79,68]},{"a":44405,"c":"Word $45: GREAT","t":"byte","b":[124,71,82,69,65,84]},{"a":44411,"c":"Word $46: SUPERB","t":"byte","b":[124,83,85,80,69,82,66]},{"a":44418,"c":"Word $47: FEEBLE","t":"byte","b":[124,70,69,69,66,76,69]},{"a":44425,"c":"Word $48: WEAK","t":"byte","b":[124,87,69,65,75]},{"a":44430,"c":"Word $49: TIRING","t":"byte","b":[124,84,73,82,73,78,71]},{"a":44437,"c":"Word $4A: FOR","t":"byte","b":[124,70,79,82]},{"a":44441,"c":"Word $4B: CLOSE","t":"byte","b":[124,67,76,79,83,69]},{"a":44447,"c":"Word $4C: COMBAT","t":"byte","b":[124,67,79,77,66,65,84]},{"a":44454,"c":"Word $4D: WEAPON","t":"byte","b":[124,87,69,65,80,79,78]},{"a":44461,"c":"Word $4E: ACCURACY","t":"byte","b":[124,65,67,67,85,82,65,67]},{"a":44469,"t":"byte","b":[89]},{"a":44470,"c":"Word $4F: COST","t":"byte","b":[124,67,79,83,84]},{"a":44475,"c":"Word $50: DAMAGE","t":"byte","b":[124,68,65,77,65,71,69]},{"a":44482,"c":"Word $51: LOCATION","t":"byte","b":[124,76,79,67,65,84,73,79]},{"a":44490,"t":"byte","b":[78]},{"a":44491,"c":"Word $52: UNARMED","t":"byte","b":[124,85,78,65,82,77,69,68]},{"a":44499,"c":"Word $53: FRONT","t":"byte","b":[124,70,82,79,78,84]},{"a":44505,"c":"Word $54: RIGHT","t":"byte","b":[124,82,73,71,72,84]},{"a":44511,"c":"Word $55: LEFT","t":"byte","b":[124,76,69,70,84]},{"a":44516,"c":"Word $56: REAR","t":"byte","b":[124,82,69,65,82]},{"a":44521,"c":"Word $57: SIDE","t":"byte","b":[124,83,73,68,69]},{"a":44526,"c":"Word $58: MISS","t":"byte","b":[124,77,73,83,83]},{"a":44531,"c":"Word $59: STRATEGIC","t":"byte","b":[124,83,84,82,65,84,69,71]},{"a":44539,"t":"byte","b":[73,67]},{"a":44541,"c":"Word $5A: RETURN","t":"byte","b":[124,82,69,84,85,82,78]},{"a":44548,"c":"Word $5B: ARMOUR","t":"byte","b":[124,65,82,77,79,85,82]},{"a":44555,"c":"Word $5C: [colours $45, $45]\u25c0[colours $44, $44], printed in double height, where a colour code takes two bytes","t":"byte","b":[124,246,69,69,60,246,68,68]},{"a":44563,"c":"Word $5D (the frame's or the logo's characters, or codes only)","t":"byte","b":[124,112,113,92,93,47,114,32]},{"a":44571,"t":"byte","b":[32,95,47,120,32,32,117,47]},{"a":44579,"t":"byte","b":[122,123,118,119]},{"a":44583,"c":"Word $5E: SKILL","t":"byte","b":[124,83,75,73,76,76]},{"a":44589,"c":"Word $5F: AGILITY","t":"byte","b":[124,65,71,73,76,73,84,89]},{"a":44597,"c":"Word $60: STRENGTH","t":"byte","b":[124,83,84,82,69,78,71,84]},{"a":44605,"t":"byte","b":[72]},{"a":44606,"c":"Word $61: CONSTITUTION","t":"byte","b":[124,67,79,78,83,84,73,84]},{"a":44614,"t":"byte","b":[85,84,73,79,78]},{"a":44619,"c":"Word $62: PT.S","t":"byte","b":[124,80,84,46,83]},{"a":44624,"c":"Word $63: [colours $45, $45]\u25b6[colours $44, $44], printed in double height, where a colour code takes two bytes","t":"byte","b":[124,246,69,69,62,246,68,68]},{"a":44632,"c":"Word $64: AUTO","t":"byte","b":[124,65,85,84,79]},{"a":44637,"c":"Word $65: SNAP","t":"byte","b":[124,83,78,65,80]},{"a":44642,"c":"Word $66: AIM","t":"byte","b":[124,65,73,77]},{"a":44646,"c":"Word $67: THROW","t":"byte","b":[124,84,72,82,79,87]},{"a":44652,"c":"Word $68: APS","t":"byte","b":[124,65,80,83]},{"a":44656,"c":"Word $69: AMM","t":"byte","b":[124,65,77,77]},{"a":44660,"c":"Word $6A: SHOT","t":"byte","b":[124,83,72,79,84]},{"a":44665,"c":"Word $6B: [colours $44]ACC[colours $46]\u25b6[colours $44] AP[colours $46]\u25b6[colours $45]","t":"byte","b":[124,246,68,65,67,67,246,70]},{"a":44673,"t":"byte","b":[62,246,68,32,65,80,246,70]},{"a":44681,"t":"byte","b":[62,246,69]},{"a":44684,"c":"Word $6C: N.A.","t":"byte","b":[124,78,46,65,46]},{"a":44689,"c":"Word $6D: AMMO","t":"byte","b":[124,65,77,77,79]},{"a":44694,"c":"Word $6E: HOW","t":"byte","b":[124,72,79,87]},{"a":44698,"c":"Word $6F: MANY","t":"byte","b":[124,77,65,78,89]},{"a":44703,"c":"Word $70: ROUNDS ?","t":"byte","b":[124,82,79,85,78,68,83,32]},{"a":44711,"t":"byte","b":[63]},{"a":44712,"c":"Word $71: SECOND","t":"byte","b":[124,83,69,67,79,78,68]},{"a":44719,"c":"Word $72: POINT","t":"byte","b":[124,80,79,73,78,84]},{"a":44725,"c":"Word $73: CAUGHT","t":"byte","b":[124,67,65,85,71,72,84]},{"a":44732,"c":"Word $74: BY","t":"byte","b":[124,66,89]},{"a":44735,"c":"Word $75: LASER","t":"byte","b":[124,76,65,83,69,82]},{"a":44741,"c":"Word $76: SQUAD","t":"byte","b":[124,83,81,85,65,68]},{"a":44747,"c":"Word $77: PLAYER","t":"byte","b":[124,80,76,65,89,69,82]},{"a":44754,"c":"Word $78: S","t":"byte","b":[124,83,32]},{"a":44757,"c":"Word $79: VICTORY","t":"byte","b":[124,86,73,67,84,79,82,89]},{"a":44765,"c":"Word $7A: SET","t":"byte","b":[124,83,69,84]},{"a":44769,"c":"Word $7B: TIMER","t":"byte","b":[124,84,73,77,69,82]},{"a":44775,"c":"Word $7C (the frame's or the logo's characters, or codes only)","t":"byte","b":[124]},{"a":44776,"c":"Word $7D: LOADED","t":"byte","b":[124,76,79,65,68,69,68]},{"a":44783,"c":"Word $7E: YES","t":"byte","b":[124,89,69,83]},{"a":44787,"c":"Word $7F: DO","t":"byte","b":[124,68,79]},{"a":44790,"c":"Word $80: YOU","t":"byte","b":[124,89,79,85]},{"a":44794,"c":"Word $81: WANT","t":"byte","b":[124,87,65,78,84]},{"a":44799,"c":"Word $82: HIDE","t":"byte","b":[124,72,73,68,69]},{"a":44804,"c":"Word $83: THIS","t":"byte","b":[124,84,72,73,83]},{"a":44809,"c":"Word $84: ?","t":"byte","b":[124,63]},{"a":44811,"c":"Word $85: CREDS","t":"byte","b":[124,67,82,69,68,83]},{"a":44817,"c":"Word $86: TYPE: 1 2 3 4","t":"byte","b":[124,84,89,80,69,58,32,32]},{"a":44825,"t":"byte","b":[49,32,32,50,32,32,51,32]},{"a":44833,"t":"byte","b":[32,52]},{"a":44835,"c":"Word $87: WEIGHT","t":"byte","b":[124,87,69,73,71,72,84]},{"a":44842,"c":"Word $88: CARRY","t":"byte","b":[124,67,65,82,82,89]},{"a":44848,"c":"Word $89: COST","t":"byte","b":[124,67,79,83,84,32]},{"a":44854,"c":"Word $8A: ION","t":"byte","b":[124,73,79,78]},{"a":44858,"c":"Word $8B: (","t":"byte","b":[124,40]},{"a":44860,"c":"Word $8C: 1 OR 2)","t":"byte","b":[124,32,49,32,79,82,32,50]},{"a":44868,"t":"byte","b":[41]},{"a":44869,"c":"Word $8D: WHICH","t":"byte","b":[124,87,72,73,67,72]},{"a":44875,"c":"Word $8E: LEVEL","t":"byte","b":[124,76,69,86,69,76]},{"a":44881,"c":"Word $8F: 1 TO","t":"byte","b":[124,32,49,32,84,79,32]},{"a":44888,"c":"Word $90: )","t":"byte","b":[124,41]},{"a":44890,"c":"Word $91: DEPLOY","t":"byte","b":[124,68,69,80,76,79,89]},{"a":44897,"c":"Word $92: HAS","t":"byte","b":[124,72,65,83]},{"a":44901,"c":"Word $93: GAME","t":"byte","b":[124,71,65,77,69]},{"a":44906,"c":"Word $94: OVER","t":"byte","b":[124,32,32,79,86,69,82]},{"a":44913,"c":"Word $95: DRAWN","t":"byte","b":[124,68,82,65,87,78]},{"a":44919,"c":"Word $96: HIDDEN","t":"byte","b":[124,72,73,68,68,69,78]},{"a":44926,"c":"Word $97: MOVEMENT","t":"byte","b":[124,77,79,86,69,77,69,78]},{"a":44934,"t":"byte","b":[84]},{"a":44935,"c":"Word $98: NP","t":"byte","b":[124,78,80]},{"a":44938,"c":"Word $99: FIELD","t":"byte","b":[124,70,73,69,76,68]},{"a":44944,"c":"Word $9A: VISION","t":"byte","b":[124,86,73,83,73,79,78]},{"a":44951,"c":"Word $9B: CONTROLS ?","t":"byte","b":[124,67,79,78,84,82,79,76]},{"a":44959,"t":"byte","b":[83,32,63]},{"a":44962,"c":"Word $9C: 1: SINCLAIR","t":"byte","b":[124,49,58,32,83,73,78,67]},{"a":44970,"t":"byte","b":[76,65,73,82]},{"a":44974,"c":"Word $9D: JOYSTICK","t":"byte","b":[124,74,79,89,83,84,73,67]},{"a":44982,"t":"byte","b":[75]},{"a":44983,"c":"Word $9E: 2: KEMPSTON","t":"byte","b":[124,50,58,32,75,69,77,80]},{"a":44991,"t":"byte","b":[83,84,79,78]},{"a":44995,"c":"Word $9F: 3: PROTEK, AGF","t":"byte","b":[124,51,58,32,80,82,79,84]},{"a":45003,"t":"byte","b":[69,75,44,32,65,71,70]},{"a":45010,"c":"Word $A0: 4: KEYBOARD","t":"byte","b":[124,52,58,32,75,69,89,66]},{"a":45018,"t":"byte","b":[79,65,82,68]},{"a":45022,"c":"Word $A1: TAPE","t":"byte","b":[124,84,65,80,69]},{"a":45027,"c":"Word $A2: ERROR","t":"byte","b":[124,69,82,82,79,82]},{"a":45033,"c":"Word $A3: VERIFY","t":"byte","b":[124,86,69,82,73,70,89]},{"a":45040,"c":"Word $A4: ANY","t":"byte","b":[124,65,78,89]},{"a":45044,"c":"Word $A5: KEY","t":"byte","b":[124,75,69,89]},{"a":45048,"c":"Word $A6: SCENARIO ?","t":"byte","b":[124,83,67,69,78,65,82,73]},{"a":45056,"t":"byte","b":[79,32,63]},{"a":45059,"c":"Word $A7: 1: THE ASSASSINS / 2: MOONBASE ASSAULT / 3: RESCUE FROM THE MINES / 4: SAVED GAME / 5: THE CYBER HORDES / 6: PARADISE VALLEY","t":"byte","b":[124,49,58,32,84,72,69,32]},{"a":45067,"t":"byte","b":[65,83,83,65,83,83,73,78]},{"a":45075,"t":"byte","b":[83,47,50,58,32,77,79,79]},{"a":45083,"t":"byte","b":[78,66,65,83,69,32,65,83]},{"a":45091,"t":"byte","b":[83,65,85,76,84,47,51,58]},{"a":45099,"t":"byte","b":[32,82,69,83,67,85,69,32]},{"a":45107,"t":"byte","b":[70,82,79,77,32,84,72,69]},{"a":45115,"t":"byte","b":[32,77,73,78,69,83,47,52]},{"a":45123,"t":"byte","b":[58,32,83,65,86,69,68,32]},{"a":45131,"t":"byte","b":[71,65,77,69,47,53,58,32]},{"a":45139,"t":"byte","b":[84,72,69,32,67,89,66,69]},{"a":45147,"t":"byte","b":[82,32,72,79,82,68,69,83]},{"a":45155,"t":"byte","b":[47,54,58,32,80,65,82,65]},{"a":45163,"t":"byte","b":[68,73,83,69,32,86,65,76]},{"a":45171,"t":"byte","b":[76,69,89]},{"a":45174,"c":"Word $A8: OPTION ?","t":"byte","b":[124,79,80,84,73,79,78,32]},{"a":45182,"t":"byte","b":[63]},{"a":45183,"c":"Word $A9: 1: CHANGE CONTROLS / 2: SAVE / 3: LOAD / 4: VERIFY","t":"byte","b":[124,49,58,32,67,72,65,78]},{"a":45191,"t":"byte","b":[71,69,32,67,79,78,84,82]},{"a":45199,"t":"byte","b":[79,76,83,47,50,58,32,83]},{"a":45207,"t":"byte","b":[65,86,69,47,51,58,32,76]},{"a":45215,"t":"byte","b":[79,65,68,47,52,58,32,86]},{"a":45223,"t":"byte","b":[69,82,73,70,89,124]},{"a":45229,"l":"chooseControls","c":"The controls, 1 to 4 (message $69): $B0C7 the option, 0 to 3.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24140,45593]},{"a":45232,"t":"code","b":[62,83],"m":"ld","o":"a,$53"},{"a":45234,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":45237,"t":"code","b":[62,105],"m":"ld","o":"a,$69"},{"a":45239,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":45242,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":45244,"t":"code","b":[50,246,93],"m":"ld","oa":24054,"o":"($5DF6),a"},{"a":45247,"t":"code","b":[205,118,162],"m":"call","oa":41590,"o":"menuChoice"},{"a":45250,"t":"code","b":[61],"m":"dec","o":"a"},{"a":45251,"t":"code","b":[50,199,176],"m":"ld","oa":45255,"o":"(controlOption),a"},{"a":45254,"t":"code","b":[201],"m":"ret"},{"a":45255,"l":"controlOption","c":"The controls chosen: 0 Sinclair joysticks, 1 Kempston joystick, 2 cursor keys, 3 Q, A, O, P and SPACE.","t":"byte","b":[0],"x":[45251,45261]},{"a":45256,"l":"readControls","c":"Read the controls by the option chosen, through the readers' table at $B0E0, into $5D2A: a bit each, clear when held: fire 0, up 1, down 2, right 3, left 4.","t":"code","b":[33,224,176],"m":"ld","o":"hl,$B0E0","x":[25074,25120,26353,26827,27264,27881,28061,30717,31637,34132,37658,40369,40461,41604]},{"a":45259,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":45261,"t":"code","b":[58,199,176],"m":"ld","oa":45255,"o":"a,(controlOption)"},{"a":45264,"t":"code","b":[135],"m":"add","o":"a,a"},{"a":45265,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45266,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":45267,"t":"code","b":[94],"m":"ld","o":"e,(hl)"},{"a":45268,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":45269,"t":"code","b":[86],"m":"ld","o":"d,(hl)"},{"a":45270,"t":"code","b":[235],"m":"ex","o":"de,hl"},{"a":45271,"t":"code","b":[17,220,176],"m":"ld","o":"de,$B0DC"},{"a":45274,"t":"code","b":[213],"m":"push","o":"de"},{"a":45275,"t":"code","b":[233],"m":"jp","o":"(hl)"},{"a":45276,"l":"readersEnd","c":"The readers return here (LD ($5D2A),A; RET), then the readers' addresses.","t":"byte","b":[50,42,93,201,232,176,253,176]},{"a":45284,"t":"byte","b":[23,177,54,177]},{"a":45288,"l":"readSinclair","c":"The Sinclair joysticks: keys 6 to 0 and 1 to 5, the second's bits reversed into the first's order and both together.","t":"code","b":[62,239],"m":"ld","o":"a,$EF"},{"a":45290,"t":"code","b":[219,254],"m":"in","o":"a,($FE)"},{"a":45292,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45293,"t":"code","b":[62,247],"m":"ld","o":"a,$F7"},{"a":45295,"t":"code","b":[219,254],"m":"in","o":"a,($FE)"},{"a":45297,"t":"code","b":[6,5],"m":"ld","o":"b,$05"},{"a":45299,"t":"code","b":[31],"m":"rra","x":[45302]},{"a":45300,"t":"code","b":[203,17],"m":"rl","o":"c"},{"a":45302,"t":"code","b":[16,251],"m":"djnz","oa":45299,"o":"$B0F3"},{"a":45304,"t":"code","b":[121],"m":"ld","o":"a,c"},{"a":45305,"t":"code","b":[163],"m":"and","o":"e"},{"a":45306,"t":"code","b":[246,224],"m":"or","o":"$E0"},{"a":45308,"t":"code","b":[201],"m":"ret"},{"a":45309,"l":"readKempston","c":"The Kempston joystick, port $1F, its bits set when held, turned into the game's order and sense.","t":"code","b":[219,31],"m":"in","o":"a,($1F)"},{"a":45311,"t":"code","b":[6,0],"m":"ld","o":"b,$00"},{"a":45313,"t":"code","b":[31],"m":"rra"},{"a":45314,"t":"code","b":[203,24],"m":"rr","o":"b"},{"a":45316,"t":"code","b":[31],"m":"rra"},{"a":45317,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":45319,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":45321,"t":"code","b":[31],"m":"rra"},{"a":45322,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":45324,"t":"code","b":[31],"m":"rra"},{"a":45325,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":45327,"t":"code","b":[31],"m":"rra"},{"a":45328,"t":"code","b":[203,16],"m":"rl","o":"b"},{"a":45330,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":45331,"t":"code","b":[47],"m":"cpl"},{"a":45332,"t":"code","b":[246,224],"m":"or","o":"$E0"},{"a":45334,"t":"code","b":[201],"m":"ret"},{"a":45335,"l":"readCursor","c":"The cursor keys, 5 (left), 6 (down), 7 (up), 8 (right) and 0 (fire), and SPACE.","t":"code","b":[1,254,247],"m":"ld","o":"bc,$F7FE"},{"a":45338,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45340,"t":"code","b":[6,239],"m":"ld","o":"b,$EF"},{"a":45342,"t":"code","b":[176],"m":"or","o":"b"},{"a":45343,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45344,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45346,"t":"code","b":[87],"m":"ld","o":"d,a"},{"a":45347,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":45349,"t":"code","b":[163],"m":"and","o":"e"},{"a":45350,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45351,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":45352,"t":"code","b":[246,231],"m":"or","o":"$E7"},{"a":45354,"t":"code","b":[15],"m":"rrca"},{"a":45355,"t":"code","b":[15],"m":"rrca"},{"a":45356,"t":"code","b":[163],"m":"and","o":"e"},{"a":45357,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45358,"t":"code","b":[122],"m":"ld","o":"a,d"},{"a":45359,"t":"code","b":[246,251],"m":"or","o":"$FB"},{"a":45361,"t":"code","b":[7],"m":"rlca"},{"a":45362,"t":"code","b":[163],"m":"and","o":"e"},{"a":45363,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45364,"t":"code","b":[24,29],"m":"jr","oa":45395,"o":"$B153"},{"a":45366,"l":"readKeys","c":"The keys Q (up), A (down), O (left), P (right) and SPACE (fire), the last read at $B153, where the cursor keys' reader ends too.","t":"code","b":[1,254,253],"m":"ld","o":"bc,$FDFE"},{"a":45369,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45371,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":45373,"t":"code","b":[7],"m":"rlca"},{"a":45374,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45375,"t":"code","b":[6,251],"m":"ld","o":"b,$FB"},{"a":45377,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45379,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":45381,"t":"code","b":[163],"m":"and","o":"e"},{"a":45382,"t":"code","b":[7],"m":"rlca"},{"a":45383,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45384,"t":"code","b":[6,223],"m":"ld","o":"b,$DF"},{"a":45386,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45388,"t":"code","b":[246,252],"m":"or","o":"$FC"},{"a":45390,"t":"code","b":[7],"m":"rlca"},{"a":45391,"t":"code","b":[7],"m":"rlca"},{"a":45392,"t":"code","b":[7],"m":"rlca"},{"a":45393,"t":"code","b":[163],"m":"and","o":"e"},{"a":45394,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":45395,"t":"code","b":[6,127],"m":"ld","o":"b,$7F","x":[45364]},{"a":45397,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45399,"t":"code","b":[246,254],"m":"or","o":"$FE"},{"a":45401,"t":"code","b":[163],"m":"and","o":"e"},{"a":45402,"t":"code","b":[201],"m":"ret"},{"a":45403,"l":"tapeFailed","c":"0 after a load from tape that worked, 1 otherwise.","t":"byte","b":[0],"x":[45410,45457,45538]},{"a":45404,"l":"tape","c":"The tape, for $49DF bytes at $B621 with the flag B: A 1 loads, 2 checks what is in memory against the tape, 0 saves. A load or check that fails shows message $6A, a check that passes message $6B, until a key.","t":"code","b":[103],"m":"ld","o":"h,a","x":[45534,45608,45620]},{"a":45405,"t":"code","b":[50,194,177],"m":"ld","oa":45506,"o":"(tapeOp),a"},{"a":45408,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":45410,"t":"code","b":[50,91,177],"m":"ld","oa":45403,"o":"(tapeFailed),a"},{"a":45413,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":45414,"t":"code","b":[17,223,73],"m":"ld","o":"de,$49DF"},{"a":45417,"t":"code","b":[221,33,33,182],"m":"ld","o":"ix,$B621"},{"a":45421,"t":"code","b":[55],"m":"scf"},{"a":45422,"t":"code","b":[37],"m":"dec","o":"h"},{"a":45423,"t":"code","b":[40,8],"m":"jr","oa":45433,"o":"z,$B179"},{"a":45425,"t":"code","b":[167],"m":"and","o":"a"},{"a":45426,"t":"code","b":[37],"m":"dec","o":"h"},{"a":45427,"t":"code","b":[40,4],"m":"jr","oa":45433,"o":"z,$B179"},{"a":45429,"t":"code","b":[205,153,177],"m":"call","oa":45465,"o":"tapeSave"},{"a":45432,"t":"code","b":[201],"m":"ret"},{"a":45433,"t":"code","b":[205,160,177],"m":"call","oa":45472,"o":"tapeLoad","x":[45423,45427]},{"a":45436,"t":"code","b":[56,15],"m":"jr","oa":45453,"o":"c,$B18D"},{"a":45438,"t":"code","b":[62,106],"m":"ld","o":"a,$6A"},{"a":45440,"t":"code","b":[245],"m":"push","o":"af","x":[45463]},{"a":45441,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45442,"t":"code","b":[205,45,96],"m":"call","oa":24621,"o":"clearScreenA"},{"a":45445,"t":"code","b":[241],"m":"pop","o":"af"},{"a":45446,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":45449,"t":"code","b":[205,8,107],"m":"call","oa":27400,"o":"waitKey"},{"a":45452,"t":"code","b":[201],"m":"ret"},{"a":45453,"t":"code","b":[58,194,177],"m":"ld","oa":45506,"o":"a,(tapeOp)","x":[45436]},{"a":45456,"t":"code","b":[61],"m":"dec","o":"a"},{"a":45457,"t":"code","b":[50,91,177],"m":"ld","oa":45403,"o":"(tapeFailed),a"},{"a":45460,"t":"code","b":[200],"m":"ret","o":"z"},{"a":45461,"t":"code","b":[62,107],"m":"ld","o":"a,$6B"},{"a":45463,"t":"code","b":[24,231],"m":"jr","oa":45440,"o":"$B180"},{"a":45465,"l":"tapeSave","c":"SA-BYTES, in the ROM, returning to $B1AE.","t":"code","b":[33,174,177],"m":"ld","o":"hl,$B1AE","x":[45429]},{"a":45468,"t":"code","b":[229],"m":"push","o":"hl"},{"a":45469,"t":"code","b":[195,198,4],"m":"jp","oa":1222,"o":"$04C6"},{"a":45472,"l":"tapeLoad","c":"LD-BYTES, in the ROM past its start (the flag in A', the carry for a load), the border white, returning to $B1AE.","t":"code","b":[20],"m":"inc","o":"d","x":[45433]},{"a":45473,"t":"code","b":[8],"m":"ex","o":"af,af'"},{"a":45474,"t":"code","b":[21],"m":"dec","o":"d"},{"a":45475,"t":"code","b":[62,15],"m":"ld","o":"a,$0F"},{"a":45477,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":45479,"t":"code","b":[33,174,177],"m":"ld","o":"hl,$B1AE"},{"a":45482,"t":"code","b":[229],"m":"push","o":"hl"},{"a":45483,"t":"code","b":[195,98,5],"m":"jp","oa":1378,"o":"$0562"},{"a":45486,"l":"tapeBreak","c":"After the tape: the border black, and SPACE (BREAK) held is waited for to be let go; then the return address is dropped, so $B15C ends at once with $B15B still 1.","t":"code","b":[245],"m":"push","o":"af"},{"a":45487,"t":"code","b":[1,254,127],"m":"ld","o":"bc,$7FFE"},{"a":45490,"t":"code","b":[175],"m":"xor","o":"a"},{"a":45491,"t":"code","b":[237,121],"m":"out","o":"(c),a"},{"a":45493,"t":"code","b":[237,120],"m":"in","o":"a,(c)"},{"a":45495,"t":"code","b":[31],"m":"rra"},{"a":45496,"t":"code","b":[56,6],"m":"jr","oa":45504,"o":"c,$B1C0"},{"a":45498,"t":"code","b":[237,120],"m":"in","o":"a,(c)","x":[45501]},{"a":45500,"t":"code","b":[31],"m":"rra"},{"a":45501,"t":"code","b":[48,251],"m":"jr","oa":45498,"o":"nc,$B1BA"},{"a":45503,"t":"code","b":[225],"m":"pop","o":"hl"},{"a":45504,"t":"code","b":[241],"m":"pop","o":"af","x":[45496]},{"a":45505,"t":"code","b":[201],"m":"ret"},{"a":45506,"l":"tapeOp","c":"What $B15C was asked: 0, 1 or 2.","t":"byte","b":[0],"x":[45405,45453]},{"a":45507,"l":"mainMenu","c":"The main menu (message $6C), 1 to 6: a scenario's block (flag $63 + choice) loaded from tape, the menu again if it did not load. Choice 4 is a saved game, which goes on from the menu between turns; the others start a new game.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24125,42295,45542,45587]},{"a":45510,"t":"code","b":[62,83],"m":"ld","o":"a,$53"},{"a":45512,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":45515,"t":"code","b":[62,108],"m":"ld","o":"a,$6C"},{"a":45517,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":45520,"t":"code","b":[62,6],"m":"ld","o":"a,$06"},{"a":45522,"t":"code","b":[50,246,93],"m":"ld","oa":24054,"o":"($5DF6),a"},{"a":45525,"t":"code","b":[205,118,162],"m":"call","oa":41590,"o":"menuChoice"},{"a":45528,"t":"code","b":[245],"m":"push","o":"af"},{"a":45529,"t":"code","b":[198,99],"m":"add","o":"a,$63"},{"a":45531,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":45532,"t":"code","b":[62,1],"m":"ld","o":"a,$01"},{"a":45534,"t":"code","b":[205,92,177],"m":"call","oa":45404,"o":"tape"},{"a":45537,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":45538,"t":"code","b":[58,91,177],"m":"ld","oa":45403,"o":"a,(tapeFailed)"},{"a":45541,"t":"code","b":[183],"m":"or","o":"a"},{"a":45542,"t":"code","b":[32,219],"m":"jr","oa":45507,"o":"nz,mainMenu"},{"a":45544,"t":"code","b":[49,57,94],"m":"ld","o":"sp,$5E39"},{"a":45547,"t":"code","b":[120],"m":"ld","o":"a,b"},{"a":45548,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":45550,"t":"code","b":[194,76,94],"m":"jp","oa":24140,"o":"nz,newGame"},{"a":45553,"t":"code","b":[205,136,116],"m":"call","oa":29832,"o":"tableUnits"},{"a":45556,"t":"code","b":[195,146,94],"m":"jp","oa":24210,"o":"turns"},{"a":45559,"l":"turnMenu","c":"The menu between turns (message $6D): fire plays on; 1 the controls; 2 saves the game (flag $67), every unit put on the map first; 3 leaves for the main menu; 4 checks the saved game against memory.","t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[24210,45596,45611,45623]},{"a":45562,"t":"code","b":[62,83],"m":"ld","o":"a,$53"},{"a":45564,"t":"code","b":[205,108,103],"m":"call","oa":26476,"o":"text"},{"a":45567,"t":"code","b":[62,109],"m":"ld","o":"a,$6D"},{"a":45569,"t":"code","b":[205,94,103],"m":"call","oa":26462,"o":"infoText"},{"a":45572,"t":"code","b":[62,4],"m":"ld","o":"a,$04"},{"a":45574,"t":"code","b":[50,246,93],"m":"ld","oa":24054,"o":"($5DF6),a"},{"a":45577,"t":"code","b":[205,111,162],"m":"call","oa":41583,"o":"menuFireChoice"},{"a":45580,"t":"code","b":[200],"m":"ret","o":"z"},{"a":45581,"t":"code","b":[254,2],"m":"cp","o":"$02"},{"a":45583,"t":"code","b":[40,13],"m":"jr","oa":45598,"o":"z,$B21E"},{"a":45585,"t":"code","b":[254,3],"m":"cp","o":"$03"},{"a":45587,"t":"code","b":[40,174],"m":"jr","oa":45507,"o":"z,mainMenu"},{"a":45589,"t":"code","b":[254,4],"m":"cp","o":"$04"},{"a":45591,"t":"code","b":[40,20],"m":"jr","oa":45613,"o":"z,$B22D"},{"a":45593,"t":"code","b":[205,173,176],"m":"call","oa":45229,"o":"chooseControls"},{"a":45596,"t":"code","b":[24,217],"m":"jr","oa":45559,"o":"turnMenu"},{"a":45598,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[45583]},{"a":45601,"t":"code","b":[205,215,113],"m":"call","oa":29143,"o":"showAllUnits"},{"a":45604,"t":"code","b":[62,0],"m":"ld","o":"a,$00"},{"a":45606,"t":"code","b":[6,103],"m":"ld","o":"b,$67"},{"a":45608,"t":"code","b":[205,92,177],"m":"call","oa":45404,"o":"tape"},{"a":45611,"t":"code","b":[24,202],"m":"jr","oa":45559,"o":"turnMenu"},{"a":45613,"t":"code","b":[205,44,96],"m":"call","oa":24620,"o":"clearScreen","x":[45591]},{"a":45616,"t":"code","b":[62,2],"m":"ld","o":"a,$02"},{"a":45618,"t":"code","b":[6,103],"m":"ld","o":"b,$67"},{"a":45620,"t":"code","b":[205,92,177],"m":"call","oa":45404,"o":"tape"},{"a":45623,"t":"code","b":[24,190],"m":"jr","oa":45559,"o":"turnMenu"},{"a":45625,"l":"font","c":"The font: eight bytes, top line first, for each of the characters $20 to $7E, printChar ($6072) and printCharDouble ($64F7) reading character A at $B139 + 8 x A. Past the letters, $5B to $5F and $70 to $7B draw the frames of the screens and the panels, $60 to $67 the logo, $68 to $6F arrows pointing eight ways, and $7D and $7E the rounded ends of a bar; $7C, the end of a message, is blank.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45633,"t":"byte","b":[0,24,24,24,0,24,24,0]},{"a":45641,"t":"byte","b":[0,102,102,102,0,0,0,0]},{"a":45649,"t":"byte","b":[0,36,126,36,36,126,36,0]},{"a":45657,"t":"byte","b":[0,8,126,104,126,10,126,8]},{"a":45665,"t":"byte","b":[0,98,100,8,16,38,70,0]},{"a":45673,"t":"byte","b":[0,16,40,16,42,68,58,0]},{"a":45681,"t":"byte","b":[0,8,16,0,0,0,0,0]},{"a":45689,"t":"byte","b":[0,6,12,12,12,12,6,0]},{"a":45697,"t":"byte","b":[0,96,48,48,48,48,96,0]},{"a":45705,"t":"byte","b":[0,0,36,24,126,24,36,0]},{"a":45713,"t":"byte","b":[0,0,24,24,126,24,24,0]},{"a":45721,"t":"byte","b":[0,0,0,0,0,24,24,48]},{"a":45729,"t":"byte","b":[0,0,0,0,126,0,0,0]},{"a":45737,"t":"byte","b":[0,0,0,0,0,24,24,0]},{"a":45745,"t":"byte","b":[1,3,6,12,24,48,96,64]},{"a":45753,"t":"byte","b":[0,60,70,78,86,102,60,0]},{"a":45761,"t":"byte","b":[0,24,40,8,24,24,60,0]},{"a":45769,"t":"byte","b":[0,60,70,6,60,96,126,0]},{"a":45777,"t":"byte","b":[0,60,70,12,6,70,60,0]},{"a":45785,"t":"byte","b":[0,12,20,36,76,126,12,0]},{"a":45793,"t":"byte","b":[0,126,64,124,6,70,60,0]},{"a":45801,"t":"byte","b":[0,60,96,124,102,102,60,0]},{"a":45809,"t":"byte","b":[0,126,6,4,8,24,24,0]},{"a":45817,"t":"byte","b":[0,60,102,60,102,102,60,0]},{"a":45825,"t":"byte","b":[0,60,102,102,62,6,60,0]},{"a":45833,"t":"byte","b":[0,64,96,112,112,96,64,0]},{"a":45841,"t":"byte","b":[0,24,24,0,0,24,24,48]},{"a":45849,"t":"byte","b":[0,2,6,14,14,6,2,0]},{"a":45857,"t":"byte","b":[0,0,0,62,0,62,0,0]},{"a":45865,"t":"byte","b":[0,64,96,112,112,96,64,0]},{"a":45873,"t":"byte","b":[60,70,6,12,24,0,24,0]},{"a":45881,"t":"byte","b":[0,60,74,86,94,64,60,0]},{"a":45889,"t":"byte","b":[0,60,70,70,126,102,102,0]},{"a":45897,"t":"byte","b":[0,124,70,124,102,102,124,0]},{"a":45905,"t":"byte","b":[0,60,66,64,96,98,60,0]},{"a":45913,"t":"byte","b":[0,124,70,70,102,102,124,0]},{"a":45921,"t":"byte","b":[0,126,64,120,96,96,126,0]},{"a":45929,"t":"byte","b":[0,126,64,96,120,96,96,0]},{"a":45937,"t":"byte","b":[0,60,66,64,102,98,60,0]},{"a":45945,"t":"byte","b":[0,66,66,126,102,102,102,0]},{"a":45953,"t":"byte","b":[0,60,8,8,24,24,60,0]},{"a":45961,"t":"byte","b":[0,2,2,2,6,70,60,0]},{"a":45969,"t":"byte","b":[0,66,68,120,100,102,102,0]},{"a":45977,"t":"byte","b":[0,64,64,96,96,96,126,0]},{"a":45985,"t":"byte","b":[0,102,90,66,102,102,102,0]},{"a":45993,"t":"byte","b":[0,98,114,106,102,102,102,0]},{"a":46001,"t":"byte","b":[0,60,70,70,102,102,60,0]},{"a":46009,"t":"byte","b":[0,124,70,70,124,96,96,0]},{"a":46017,"t":"byte","b":[0,60,66,66,106,102,60,0]},{"a":46025,"t":"byte","b":[0,124,70,70,124,108,102,0]},{"a":46033,"t":"byte","b":[0,60,96,60,6,70,60,0]},{"a":46041,"t":"byte","b":[0,126,8,8,24,24,24,0]},{"a":46049,"t":"byte","b":[0,70,70,102,102,102,60,0]},{"a":46057,"t":"byte","b":[0,102,102,102,102,60,24,0]},{"a":46065,"t":"byte","b":[0,102,102,66,90,102,66,0]},{"a":46073,"t":"byte","b":[0,102,60,24,24,60,102,0]},{"a":46081,"t":"byte","b":[0,66,36,24,24,24,24,0]},{"a":46089,"t":"byte","b":[0,126,12,8,16,48,126,0]},{"a":46097,"t":"byte","b":[60,126,255,255,255,255,126,60]},{"a":46105,"t":"byte","b":[62,126,126,0,106,84,42,0]},{"a":46113,"t":"byte","b":[232,228,234,5,224,245,242,117]},{"a":46121,"t":"byte","b":[104,116,104,116,104,116,104,116]},{"a":46129,"t":"byte","b":[0,117,114,117,114,117,54,0]},{"a":46137,"t":"byte","b":[0,0,0,0,0,255,71,63]},{"a":46145,"t":"byte","b":[0,128,224,248,3,247,236,236]},{"a":46153,"t":"byte","b":[17,15,4,3,0,0,0,0]},{"a":46161,"t":"byte","b":[238,238,110,247,3,28,7,1]},{"a":46169,"t":"byte","b":[0,1,7,31,192,239,55,55]},{"a":46177,"t":"byte","b":[0,0,0,0,0,255,226,252]},{"a":46185,"t":"byte","b":[119,119,118,239,192,56,224,128]},{"a":46193,"t":"byte","b":[136,240,32,192,0,0,0,0]},{"a":46201,"t":"byte","b":[0,8,28,62,127,8,8,0]},{"a":46209,"t":"byte","b":[0,0,124,60,28,44,68,0]},{"a":46217,"t":"byte","b":[0,8,12,14,127,14,12,8]},{"a":46225,"t":"byte","b":[0,68,44,28,60,124,0,0]},{"a":46233,"t":"byte","b":[0,8,8,127,62,28,8,0]},{"a":46241,"t":"byte","b":[0,34,52,56,60,62,0,0]},{"a":46249,"t":"byte","b":[0,8,24,56,126,56,24,8]},{"a":46257,"t":"byte","b":[0,0,62,60,56,52,34,0]},{"a":46265,"t":"byte","b":[23,55,119,240,5,234,229,234]},{"a":46273,"t":"byte","b":[124,126,126,2,86,42,84,0]},{"a":46281,"t":"byte","b":[0,234,228,234,228,234,124,0]},{"a":46289,"t":"byte","b":[0,255,255,85,170,85,0,0]},{"a":46297,"t":"byte","b":[52,58,52,58,52,58,52,58]},{"a":46305,"t":"byte","b":[0,62,117,114,117,114,117,0]},{"a":46313,"t":"byte","b":[0,62,126,126,64,106,84,42]},{"a":46321,"t":"byte","b":[117,242,245,240,5,170,68,168]},{"a":46329,"t":"byte","b":[0,108,234,228,234,228,234,0]},{"a":46337,"t":"byte","b":[0,0,255,255,85,170,85,0]},{"a":46345,"t":"byte","b":[238,239,239,7,160,85,34,21]},{"a":46353,"t":"byte","b":[0,124,126,126,0,86,42,84]},{"a":46361,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46369,"t":"byte","b":[31,63,127,127,127,127,127,63]},{"a":46377,"t":"byte","b":[248,252,254,254,254,254,254,252]},{"a":46385,"l":"soundEffects","c":"The sound effects, ten bytes each, 0 to 12, for sound ($B5BE): how many times, the passes each time, then four tones of two bytes, how far its pitch moves each time and the pitch (playSound, $B5D5). First, effect 0: 15 times, 1 pass each, tones 10 (moving 8), 10 (moving 8), 10 (moving 5), 10 (moving 5); played by waitKey ($6B08), waitFire ($77F7) and the menus' choice (menuChoice, $A276, and menuFireChoice, $A26F)","t":"byte","b":[15,1,8,10,8,10,5,10]},{"a":46393,"t":"byte","b":[5,10]},{"a":46395,"c":"Effect 1: 10 times, 1 pass each, tones 20 (moving 2), 20 (moving 4), 20 (moving 8), 20 (moving 16); played by chooseLoop, chooseRounds, sellBack","t":"byte","b":[10,1,2,20,4,20,8,20]},{"a":46403,"t":"byte","b":[16,20]},{"a":46405,"c":"Effect 2: 30 times, 1 pass each, tones 1 (moving 1), 1 (moving 2), 1 (moving 6), 1 (moving 11); played by buy, chooseLoop, chooseRounds","t":"byte","b":[30,1,1,1,2,1,6,1]},{"a":46413,"t":"byte","b":[11,1]},{"a":46415,"c":"Effect 3: 6 times, 1 pass each, tones 60 (moving 12), 60 (moving 12), 60 (moving 16), 60 (moving 16); played by closeCombat, makeStep, shotUnit","t":"byte","b":[6,1,12,60,12,60,16,60]},{"a":46423,"t":"byte","b":[16,60]},{"a":46425,"c":"Effect 4: 6 times, 1 pass each, tones 0 (moving -12), 0 (moving 12), 0 (moving -50), 0 (moving 50); played by afterAction","t":"byte","b":[6,1,244,0,12,0,206,0]},{"a":46433,"t":"byte","b":[50,0]},{"a":46435,"c":"Effect 5: 3 times, 1 pass each, tones 180 (moving -12), 180 (moving -12), 200 (moving -20), 200 (moving -20); played by menuSelect","t":"byte","b":[3,1,244,180,244,180,236,200]},{"a":46443,"t":"byte","b":[236,200]},{"a":46445,"c":"Effect 6: 16 times, 3 passes each, tones 120 (moving -8), 140 (moving -9), 110 (moving -3), 180 (moving -14); played by placeUnits","t":"byte","b":[16,3,248,120,247,140,253,110]},{"a":46453,"t":"byte","b":[242,180]},{"a":46455,"c":"Effect 7: 10 times, 1 pass each, tones 100 (moving -2), 120 (moving -2), 80 (moving -2), 80 (moving -2); played by seenCount","t":"byte","b":[10,1,254,100,254,120,254,80]},{"a":46463,"t":"byte","b":[254,80]},{"a":46465,"c":"Effect 8: 20 times, 2 passes each, tones 1 (moving 3), 1 (moving 3), 1 (moving 13), 1 (moving 29); played by sparks","t":"byte","b":[20,2,3,1,3,1,13,1]},{"a":46473,"t":"byte","b":[29,1]},{"a":46475,"c":"Effect 9: 3 times, 2 passes each, tones 51 (moving 3), 51 (moving 3), 51 (moving 12), 51 (moving 23); played by blowShow, explode, hitShow","t":"byte","b":[3,2,3,51,3,51,12,51]},{"a":46483,"t":"byte","b":[23,51]},{"a":46485,"c":"Effect 10: 5 times, 3 passes each, tones 4 (moving 4), 4 (moving 4), 12 (moving 9), 24 (moving 29); played by deathShow","t":"byte","b":[5,3,4,4,4,4,9,12]},{"a":46493,"t":"byte","b":[29,24]},{"a":46495,"c":"Effect 11: 30 times, 4 passes each, tones 20 (moving 2), 30 (moving 3), 70 (moving 8), 130 (moving 19); played by buy, errorText","t":"byte","b":[30,4,2,20,3,30,8,70]},{"a":46503,"t":"byte","b":[19,130]},{"a":46505,"c":"Effect 12: once, 2 passes each, tones 250 (moving 0), 250 (moving 0), 249 (moving 0), 249 (moving 0); played by deathShow","t":"byte","b":[1,2,0,250,0,250,0,249]},{"a":46513,"t":"byte","b":[0,249]},{"a":46515,"l":"effectNow","c":"The effect being played, its ten bytes copied here by sound ($B5BE) and its pitches moved on by playSound; $B5BD the last byte sent to port $FE, its speaker bit turned over at each wait.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[46549]},{"a":46523,"t":"byte","b":[0,0,0]},{"a":46526,"l":"sound","c":"Sound effect A: its ten bytes from $B531 + 10 x A copied to $B5B3, and played.","t":"code","b":[111],"m":"ld","o":"l,a","x":[26891,27413,28039,28630,30032,30732,30743,31649,31699,32666,33163,33676,33704,33762,37275,37652,37670,38007,38843,41281,41386,41475,41645,42081]},{"a":46527,"t":"code","b":[38,0],"m":"ld","o":"h,$00"},{"a":46529,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46530,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46531,"t":"code","b":[41],"m":"add","o":"hl,hl"},{"a":46532,"t":"code","b":[95],"m":"ld","o":"e,a"},{"a":46533,"t":"code","b":[22,0],"m":"ld","o":"d,$00"},{"a":46535,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46536,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46537,"t":"code","b":[17,49,181],"m":"ld","o":"de,$B531"},{"a":46540,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46541,"t":"code","b":[17,179,181],"m":"ld","o":"de,$B5B3"},{"a":46544,"t":"code","b":[1,10,0],"m":"ld","o":"bc,$000A"},{"a":46547,"t":"code","b":[237,176],"m":"ldir"},{"a":46549,"l":"playSound","c":"Play the effect at $B5B3: ($B5B3) times ($B5B4) passes over four tones, each a wait of its pitch byte ($B5B6, $B5B8, $B5BA, $B5BC) in loops of three and then the speaker's bit in $B5BD turned over; after each of the ($B5B3), each pitch moves on by the byte before it.","t":"code","b":[58,179,181],"m":"ld","oa":46515,"o":"a,(effectNow)","x":[26897,30038,32689,33685,33695,33738,33791,38856,38864]},{"a":46552,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":46553,"t":"code","b":[197],"m":"push","o":"bc","x":[46609]},{"a":46554,"t":"code","b":[58,180,181],"m":"ld","oa":46516,"o":"a,($B5B4)"},{"a":46557,"t":"code","b":[71],"m":"ld","o":"b,a"},{"a":46558,"t":"code","b":[197],"m":"push","o":"bc","x":[46591]},{"a":46559,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":46561,"t":"code","b":[33,182,181],"m":"ld","o":"hl,$B5B6"},{"a":46564,"t":"code","b":[17,2,0],"m":"ld","o":"de,$0002"},{"a":46567,"t":"code","b":[197],"m":"push","o":"bc","x":[46588]},{"a":46568,"t":"code","b":[70],"m":"ld","o":"b,(hl)"},{"a":46569,"t":"code","b":[14,3],"m":"ld","o":"c,$03","x":[46574]},{"a":46571,"t":"code","b":[13],"m":"dec","o":"c","x":[46572]},{"a":46572,"t":"code","b":[32,253],"m":"jr","oa":46571,"o":"nz,$B5EB"},{"a":46574,"t":"code","b":[16,249],"m":"djnz","oa":46569,"o":"$B5E9"},{"a":46576,"t":"code","b":[58,189,181],"m":"ld","oa":46525,"o":"a,($B5BD)"},{"a":46579,"t":"code","b":[238,16],"m":"xor","o":"$10"},{"a":46581,"t":"code","b":[50,189,181],"m":"ld","oa":46525,"o":"($B5BD),a"},{"a":46584,"t":"code","b":[211,254],"m":"out","o":"($FE),a"},{"a":46586,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":46587,"t":"code","b":[25],"m":"add","o":"hl,de"},{"a":46588,"t":"code","b":[16,233],"m":"djnz","oa":46567,"o":"$B5E7"},{"a":46590,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":46591,"t":"code","b":[16,221],"m":"djnz","oa":46558,"o":"$B5DE"},{"a":46593,"t":"code","b":[33,181,181],"m":"ld","o":"hl,$B5B5"},{"a":46596,"t":"code","b":[6,4],"m":"ld","o":"b,$04"},{"a":46598,"t":"code","b":[17,2,0],"m":"ld","o":"de,$0002"},{"a":46601,"t":"code","b":[126],"m":"ld","o":"a,(hl)","x":[46606]},{"a":46602,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":46603,"t":"code","b":[134],"m":"add","o":"a,(hl)"},{"a":46604,"t":"code","b":[119],"m":"ld","o":"(hl),a"},{"a":46605,"t":"code","b":[35],"m":"inc","o":"hl"},{"a":46606,"t":"code","b":[16,249],"m":"djnz","oa":46601,"o":"$B609"},{"a":46608,"t":"code","b":[193],"m":"pop","o":"bc"},{"a":46609,"t":"code","b":[16,198],"m":"djnz","oa":46553,"o":"$B5D9"},{"a":46611,"t":"code","b":[201],"m":"ret"},{"a":46612,"l":"padding","c":"Thirteen bytes of 0 that no instruction of the engine refers to, between the sound's code and the scenario's block, loaded from tape at $B621.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46620,"t":"byte","b":[0,0,0,0,0]},{"a":46625,"t":"gap","n":18911,"x":[24432]}]}