Created
September 25, 2016 02:55
-
-
Save toptensoftware/e7b7c1c341eb6958a7cff399f03febeb to your computer and use it in GitHub Desktop.
Typical CPU instruction unit test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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