From: Hugo Villeneuve Date: Wed, 27 Nov 2013 04:39:17 +0000 (-0500) Subject: Add PC check for all tests X-Git-Tag: v2.0.0~47 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=1a20c858a966bc61b48cce36846e6ed426d62644;p=emu8051.git Add PC check for all tests --- diff --git a/tests/anl.asm b/tests/anl.asm index 6bb5561..fb97c17 100644 --- a/tests/anl.asm +++ b/tests/anl.asm @@ -1,6 +1,7 @@ ; Test program to verify correct emu8051 operation ; ; Test desc: ANL +; Test output0: PC = $FFF0 ; Test output1: A = $60 ; Test output2: B = $60 ; Test output3: PSW = $E0 diff --git a/tests/div.asm b/tests/div.asm index 116c3e2..77c5a6a 100644 --- a/tests/div.asm +++ b/tests/div.asm @@ -1,6 +1,7 @@ ; Test program to verify correct emu8051 operation ; ; Test desc: DIV AB +; Test output0: PC = $FFF0 ; Test output1: A = $3C ; Test output2: B = $00 ; Test output3: PSW = $00 diff --git a/tests/mov.asm b/tests/mov.asm index aacafb3..9e52978 100644 --- a/tests/mov.asm +++ b/tests/mov.asm @@ -1,6 +1,7 @@ ; Test program to verify correct emu8051 operation ; ; Test desc: MOV +; Test output0: PC = $FFF0 ; Test output1: A = $66 ; Test output2: B = $98 ; Test output3: PSW = $00 diff --git a/tests/mul1.asm b/tests/mul1.asm index b56857f..9872989 100644 --- a/tests/mul1.asm +++ b/tests/mul1.asm @@ -1,6 +1,7 @@ ; Test program to verify correct emu8051 operation ; ; Test desc: MUL AB (no overflow) +; Test output0: PC = $FFF0 ; Test output1: A = $C2 ; Test output2: B = $00 ; Test output3: PSW = $01 diff --git a/tests/mul2.asm b/tests/mul2.asm index 1925d28..a7e27c1 100644 --- a/tests/mul2.asm +++ b/tests/mul2.asm @@ -1,6 +1,7 @@ ; Test program to verify correct emu8051 operation ; ; Test desc: MUL AB (overflow) +; Test output0: PC = $FFF0 ; Test output1: A = $5B ; Test output2: B = $0B ; Test output3: PSW = $05 diff --git a/tests/orl.asm b/tests/orl.asm index 43e00b6..28da253 100644 --- a/tests/orl.asm +++ b/tests/orl.asm @@ -1,6 +1,7 @@ ; Test program to verify correct emu8051 operation ; ; Test desc: ORL +; Test output0: PC = $FFF0 ; Test output1: A = $60 ; Test output2: PSW = $E0 ; Test output3: TCON = $01