// Public source: https://vccplus-git.brianholman.com/VCCPlus/VCCPlusOSS/src/branch/main/src/core/mc6809.cpp // Selected code lines: 12; selection, not the full current source. // Original copyright/license notice and selected code follow unchanged. /* Copyright 2015 by Joseph Forgione This file is part of VCC (Virtual Color Computer). VCC (Virtual Color Computer) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. VCC (Virtual Color Computer) is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with VCC (Virtual Color Computer). If not, see . */ case TST_D: //D temp16=dp.Reg |MemRead8(pc.Reg++); // Operand read follows addressing cycles; two internal cycles remain. // MC6809 datasheet, Figure 18, sheets 3-5. Cycles(4); temp8=MemRead8(temp16); cc[Z]= ZTEST(temp8); cc[N]= NTEST8(temp8); cc[V] = false; Cycles(2); break;