OpenCores
URL https://opencores.org/ocsvn/tv80/tv80/trunk

Subversion Repositories tv80

[/] [tv80/] [branches/] [s80_env_devel/] [doc/] [tvs80_test_doc.txt] - Blame information for rev 86

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 ghutchis
The tvs80 test was ported from Brian Porcella's environment, and as
2
such has some specific dependencies.  In particular, it is dependent
3
on the as80.exe DOS assembler.
4
 
5
To get this to build under Linux requires using the DOSBOX DOS
6
emulator.  Developent is currently being done with version 0.60.
7
 
8
To build and run the tvs80 test:
9
 
10
chdir tests/tvs80
11
./build
12
cd ../..
13
scripts/run2 tvs80
14
 
15
===================
16
Verification Status
17
===================
18
 
19
test ld_110 fails.  Code executed by ld_110 is:
20
 
21
ld_110:         ld      a,data_55
22
                ld      i,a
23
                ld      a,0
24
                ld      a,i
25
                jr      nz,ld_111
26
 
27
This puts a constant pattern in the A register, moves A into the interrupt
28
page register, clears A, then moves I back to A.  This looks like it's testing
29
for a side-effect in the original Z80, because moving data to the interrupt
30
page shouldn't clear the Z flag, but the test is expecting this.
31
 
32
Tests ld_110 through ld_116 all appear to test for the same behavior.
33 18 ghutchis
 
34
SP Increment/Decrement:
35
Tests inc_60 and dec_52 look like they test for the increment and
36
decrement instructions decrementing both halves of the SP register;
37
i.e. SP = SP - 0101 instead of SP = SP - 0001
38
 
39
Fixed these tests by setting the initial value of SP to +/- 100

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.