Handbook
Glossary
sub-byte-with-carry ( lhs rhs cpu -- result )
Vocabulary
cpu
.
8080
.
emulator
Inputs
lhs
an
object
rhs
an
object
cpu
an
object
Outputs
result
an
object
Definition
USING:
kernel
math
;
IN:
cpu.8080.emulator
:
sub-byte-with-carry
( lhs rhs cpu -- result )
[
2dup
-
]
dip
[
sub-carry
]
keep
[
update-flags
]
2keep
[
update-half-carry-flag
]
2keep
drop
255
bitand
;