ZXPE - My pascal emulator
ZXNet echo conference «zxnet.pc»
From Father Frost → To All 30 August 2006
Hello, All
ZX-Spectrum pascal emul - developed it a long time ago... but got stuck in
in one place, a reset occurs and then it works incorrectly =(
There is a suspicion:
1. I don't work well with flags
2. I implemented indexes incorrectly
in the source code processor.inc performs actions similar to a real processor
(there are practically no comments, but if you take a quick look, you can immediately
understand the operating principle and everything else), i.e. parses each command
Beaten up!
I analyzed the entire list of existing commands and chose this pattern:
in some cases for example: 3 bits from the command selected a register (total of them
it turned out 8) and meant the register number from the register array (i.e. not by
letters, but by numbers).
I hope you can help me fix my emulator =)
The archive also contains my homemade SCR viewer. (works in text
mode!)
http://gssoft.front.ru/files/progz/spectrum.zip
PS. I'm waiting for at least some phrase from you =)
From Vladimir Kladov → To All 15 October 2006
Hello, DDMZ
DDM> ZX-Spectrum pascal emul - developed it a long time ago... but
DDM> stuck in one place, reset occurs and then it works
DDM> incorrect =(
DDM> There is a suspicion:
DDM> 1. I don't work well with flags
DDM> 2. I implemented indexes incorrectly
DDM>
do you want to fix it? there is one way. Take emuzwin and load it into it
a certain state (or vice versa, save this state). And turn it on
tracing in the debugger with the formation of a log file. Then you stop
trace, look at this log file, study the format (it’s simple, but it depends
from the options when starting tracing). Then he makes the same tracing for himself. Code
yours, dumping everything that is done into a log file, figure out where to squeeze it in. And then
compare. Moreover, you can use a ready-made text file comparer, or
write your own comparison tool (I use my own, it has no problems working with
gigabyte logs. But I won’t give it to you because I’m greedy). And you determine very quickly
the team that caused the discrepancy.
But no one will do anything for you anyway. And few people are interested in pascal.
I’m a delfist and a libelist too, but I have everything on ASMA, except for the interface.