This website works better with JavaScript.
Home
Explore
Help
Sign In
forestbelton
/
gbuoy
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Assemble bitwise negation operator
master
Forest Belton
3 years ago
parent
9354d16e57
commit
fa85be2b8c
1 changed files
with
6 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
break
case
'~'
:
state
.
insns
.
push
(
`
CPL
`
)
break
default
:
default
:
throw
new
Error
(
`
unsupported unary op
\`
'
${
ssa
.
op
}
`
)
throw
new
Error
(
`
unsupported unary op
\`
'
${
ssa
.
op
}
`
)
}
}
Write
Preview
Loading…
Cancel
Save