65816 has two software interrupt instructions: BRK and COP. Each has its own vector in memory. BRK is usually meant for inserting breakpoints. COP is nominally meant for invoking coprocessor functionality, but no such coprocessors exist. Of the two, COP is this more useful as your kernel API interrupt.