Skip to content

Instantly share code, notes, and snippets.

@toptensoftware
Created September 25, 2016 02:55
Show Gist options
  • Save toptensoftware/e7b7c1c341eb6958a7cff399f03febeb to your computer and use it in GitHub Desktop.
Save toptensoftware/e7b7c1c341eb6958a7cff399f03febeb to your computer and use it in GitHub Desktop.
Typical CPU instruction unit test
[TestMethod]
public void Adc_Eb_Gb()
{
WriteByte(0, 100, 40);
FlagC = true;
al = 20;
emit("adc byte [100], al");
run();
Assert.AreEqual(ReadByte(0, 100), 61);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment