import type {AssemblyInstructionInfo} from '../../../types/assembly-docs.interfaces.js'; export function getAsmOpcode(opcode: string | undefined): AssemblyInstructionInfo | undefined { if (!opcode) return; switch (opcode.toUpperCase()) { case "ADC": return { "html": "
Add Memory to Accumulator with Carry
", "tooltip": "Add Memory to Accumulator with Carry", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#ADC", }; case "AND": return { "html": "\"AND\" Memory with Accumulator
", "tooltip": "\"AND\" Memory with Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#AND", }; case "ASL": return { "html": "Arithmetic Shift Left
", "tooltip": "Arithmetic Shift Left", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#ASL", }; case "BCC": return { "html": "Branch on Carry Clear
", "tooltip": "Branch on Carry Clear", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BCC", }; case "BCS": return { "html": "Branch on Carry Set
", "tooltip": "Branch on Carry Set", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BCS", }; case "BEQ": return { "html": "Branch on Result Zero
", "tooltip": "Branch on Result Zero", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BEQ", }; case "BIT": return { "html": "Test Bits in Memory with Accumulator
", "tooltip": "Test Bits in Memory with Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BIT", }; case "BMI": return { "html": "Branch on Result Minus
", "tooltip": "Branch on Result Minus", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BMI", }; case "BNE": return { "html": "Branch on Result Not Zero
", "tooltip": "Branch on Result Not Zero", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BNE", }; case "BPL": return { "html": "Branch on Result Plus
", "tooltip": "Branch on Result Plus", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BPL", }; case "BRK": return { "html": "Break Command
", "tooltip": "Break Command", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BRK", }; case "BVC": return { "html": "Branch on Overflow Clear
", "tooltip": "Branch on Overflow Clear", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BVC", }; case "BVS": return { "html": "Branch on Overflow Set
", "tooltip": "Branch on Overflow Set", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BVS", }; case "CLC": return { "html": "Clear Carry Flag
", "tooltip": "Clear Carry Flag", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CLC", }; case "CLD": return { "html": "Clear Decimal Mode
", "tooltip": "Clear Decimal Mode", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CLD", }; case "CLI": return { "html": "Clear Interrupt Disable
", "tooltip": "Clear Interrupt Disable", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CLI", }; case "CLV": return { "html": "Clear Overflow Flag
", "tooltip": "Clear Overflow Flag", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CLV", }; case "CMP": return { "html": "Compare Memory and Accumulator
", "tooltip": "Compare Memory and Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CMP", }; case "CPX": return { "html": "Compare Index Register X To Memory
", "tooltip": "Compare Index Register X To Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CPX", }; case "CPY": return { "html": "Compare Index Register Y To Memory
", "tooltip": "Compare Index Register Y To Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#CPY", }; case "DEC": return { "html": "Decrement Memory By One
", "tooltip": "Decrement Memory By One", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#DEC", }; case "DEX": return { "html": "Decrement Index Register X By One
", "tooltip": "Decrement Index Register X By One", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#DEX", }; case "DEY": return { "html": "Decrement Index Register Y By One
", "tooltip": "Decrement Index Register Y By One", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#DEY", }; case "EOR": return { "html": "\"Exclusive OR\" Memory with Accumulator
", "tooltip": "\"Exclusive OR\" Memory with Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#EOR", }; case "INC": return { "html": "Increment Memory By One
", "tooltip": "Increment Memory By One", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#INC", }; case "INX": return { "html": "Increment Index Register X By One
", "tooltip": "Increment Index Register X By One", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#INX", }; case "INY": return { "html": "Increment Index Register Y By One
", "tooltip": "Increment Index Register Y By One", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#INY", }; case "JMP": return { "html": "JMP Indirect
", "tooltip": "JMP Indirect", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#JMP", }; case "JSR": return { "html": "Jump To Subroutine
", "tooltip": "Jump To Subroutine", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#JSR", }; case "LDA": return { "html": "Load Accumulator with Memory
", "tooltip": "Load Accumulator with Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#LDA", }; case "LDX": return { "html": "Load Index Register X From Memory
", "tooltip": "Load Index Register X From Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#LDX", }; case "LDY": return { "html": "Load Index Register Y From Memory
", "tooltip": "Load Index Register Y From Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#LDY", }; case "LSR": return { "html": "Logical Shift Right
", "tooltip": "Logical Shift Right", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#LSR", }; case "NOP": return { "html": "No Operation
", "tooltip": "No Operation", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#NOP", }; case "ORA": return { "html": "\"OR\" Memory with Accumulator
", "tooltip": "\"OR\" Memory with Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#ORA", }; case "PHA": return { "html": "Push Accumulator On Stack
", "tooltip": "Push Accumulator On Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHA", }; case "PHP": return { "html": "Push Processor Status On Stack
", "tooltip": "Push Processor Status On Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHP", }; case "PLA": return { "html": "Pull Accumulator From Stack
", "tooltip": "Pull Accumulator From Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PLA", }; case "PLP": return { "html": "Pull Processor Status From Stack
", "tooltip": "Pull Processor Status From Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PLP", }; case "ROL": return { "html": "Rotate Left
", "tooltip": "Rotate Left", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#ROL", }; case "ROR": return { "html": "Rotate Right
", "tooltip": "Rotate Right", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#ROR", }; case "RTI": return { "html": "Return From Interrupt
", "tooltip": "Return From Interrupt", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#RTI", }; case "RTS": return { "html": "Return From Subroutine
", "tooltip": "Return From Subroutine", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#RTS", }; case "SBC": return { "html": "Subtract Memory from Accumulator with Borrow
", "tooltip": "Subtract Memory from Accumulator with Borrow", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#SBC", }; case "SEC": return { "html": "Set Carry Flag
", "tooltip": "Set Carry Flag", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#SEC", }; case "SED": return { "html": "Set Decimal Mode
", "tooltip": "Set Decimal Mode", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#SED", }; case "SEI": return { "html": "Set Interrupt Disable
", "tooltip": "Set Interrupt Disable", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#SEI", }; case "STA": return { "html": "Store Accumulator in Memory
", "tooltip": "Store Accumulator in Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#STA", }; case "STX": return { "html": "Store Index Register X In Memory
", "tooltip": "Store Index Register X In Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#STX", }; case "STY": return { "html": "Store Index Register Y In Memory
", "tooltip": "Store Index Register Y In Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#STY", }; case "TAX": return { "html": "Transfer Accumulator To Index X
", "tooltip": "Transfer Accumulator To Index X", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TAX", }; case "TAY": return { "html": "Transfer Accumulator To Index Y
", "tooltip": "Transfer Accumulator To Index Y", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TAY", }; case "TSX": return { "html": "Transfer Stack Pointer To Index X
", "tooltip": "Transfer Stack Pointer To Index X", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TSX", }; case "TXA": return { "html": "Transfer Index X To Accumulator
", "tooltip": "Transfer Index X To Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TXA", }; case "TXS": return { "html": "Transfer Index X To Stack Pointer
", "tooltip": "Transfer Index X To Stack Pointer", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TXS", }; case "TYA": return { "html": "Transfer Index Y To Accumulator
", "tooltip": "Transfer Index Y To Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TYA", }; case "BRA": return { "html": "Branch Always
", "tooltip": "Branch Always", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BRA", }; case "PHX": return { "html": "Push Index Register X On Stack
", "tooltip": "Push Index Register X On Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHX", }; case "PHY": return { "html": "Push Index Register Y On Stack
", "tooltip": "Push Index Register Y On Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHY", }; case "PLX": return { "html": "Pull Index Register X From Stack
", "tooltip": "Pull Index Register X From Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PLX", }; case "PLY": return { "html": "Pull Index Register Y From Stack
", "tooltip": "Pull Index Register Y From Stack", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PLY", }; case "STZ": return { "html": "Store Zero In Memory
", "tooltip": "Store Zero In Memory", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#STZ", }; case "TRB": return { "html": "Test And Reset Memory Bits With Accumulator
", "tooltip": "Test And Reset Memory Bits With Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TRB", }; case "TSB": return { "html": "Test And Set Memory Bits With Accumulator
", "tooltip": "Test And Set Memory Bits With Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TSB", }; case "BRL": return { "html": "Branch Long
", "tooltip": "Branch Long", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#BRL", }; case "COP": return { "html": "Coprocessor
", "tooltip": "Coprocessor", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#COP", }; case "JSL": return { "html": "Jump to Subroutine Long
", "tooltip": "Jump to Subroutine Long", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#JSL", }; case "MVN": return { "html": "Move Memory Negative
", "tooltip": "Move Memory Negative", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#MVN", }; case "MVP": return { "html": "Move Memory Positive
", "tooltip": "Move Memory Positive", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#MVP", }; case "PEA": return { "html": "Push Effective Address
", "tooltip": "Push Effective Address", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PEA", }; case "PEI": return { "html": "Push Effective Indirect Address
", "tooltip": "Push Effective Indirect Address", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PEI", }; case "PER": return { "html": "Push Effective Relative Address
", "tooltip": "Push Effective Relative Address", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PER", }; case "PHB": return { "html": "Push Data Bank Register
", "tooltip": "Push Data Bank Register", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHB", }; case "PHD": return { "html": "Push Direct Register
", "tooltip": "Push Direct Register", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHD", }; case "PHK": return { "html": "Push K Register
", "tooltip": "Push K Register", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PHK", }; case "PLB": return { "html": "Pull Data Bank Register
", "tooltip": "Pull Data Bank Register", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PLB", }; case "PLD": return { "html": "Pull Direct Register
", "tooltip": "Pull Direct Register", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#PLD", }; case "REP": return { "html": "Reset Processor Status Bits
", "tooltip": "Reset Processor Status Bits", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#REP", }; case "RTL": return { "html": "Return From Subroutine Long
", "tooltip": "Return From Subroutine Long", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#RTL", }; case "SEP": return { "html": "Set Processor Status Bits
", "tooltip": "Set Processor Status Bits", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#SEP", }; case "STP": return { "html": "Stop the Clock
", "tooltip": "Stop the Clock", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#STP", }; case "TCD": return { "html": "Transfer C Accumulator to Direct Register
", "tooltip": "Transfer C Accumulator to Direct Register", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TCD", }; case "TCS": return { "html": "Transfer C Accumulator to Stack Pointer
", "tooltip": "Transfer C Accumulator to Stack Pointer", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TCS", }; case "TDC": return { "html": "Transfer Direct Register to C Accumulator
", "tooltip": "Transfer Direct Register to C Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TDC", }; case "TSC": return { "html": "Transfer Stack Pointer to C Accumulator
", "tooltip": "Transfer Stack Pointer to C Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TSC", }; case "TXY": return { "html": "Transfer X to Y
", "tooltip": "Transfer X to Y", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TXY", }; case "TYX": return { "html": "Transfer Y to X
", "tooltip": "Transfer Y to X", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#TYX", }; case "WAI": return { "html": "Wait for Interrupt
", "tooltip": "Wait for Interrupt", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#WAI", }; case "WDM": return { "html": "William D. Mensch, Jr.
", "tooltip": "William D. Mensch, Jr.", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#WDM", }; case "XBA": return { "html": "Exchange B and A Accumulator
", "tooltip": "Exchange B and A Accumulator", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#XBA", }; case "XCE": return { "html": "Exchange Carry and Emulation Flags
", "tooltip": "Exchange Carry and Emulation Flags", "url": "https://www.pagetable.com/c64ref/6502/?cpu=65c816&tab=2#XCE", }; } }