Browse Source

Assemble bitwise negation operator

master
Forest Belton 2 years ago
parent
commit
fa85be2b8c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      lib/asm.ts

+ 6
- 0
lib/asm.ts View File

@ -136,6 +136,12 @@ export const convertASM_SSA_Unary = (state: ASMState, ssa: SSAUnary): void => {
)
break
case '~':
state.insns.push(
`CPL`
)
break
default:
throw new Error(`unsupported unary op \`'${ssa.op}`)
}

Loading…
Cancel
Save