Skip to content

Instantly share code, notes, and snippets.

View cesarjimenez's full-sized avatar

César Jiménez cesarjimenez

View GitHub Profile

ASM

ADC

ADd with Carry

adc a, b     ; A + B + CARRY
adc hl, bc   ; HL + BC + CARRY
import scalaz._
import Scalaz._
/*
* Represents a disjunction: a result that is either an `A` or a `B`.
*
* A common use of a disjunction is to explicitly represent the possibility of failure in a result
* as opposed to throwing an exception (that is a side effect).
*
* `A` [[\/]] `B` is isomorphic to `scala.Either[A, B]`, but [[\/]] is right-biased, so methods such