This is a cache of https://vccplus.brianholman.com/publications/vcc-plus-architecture/evidence/snippets/tst-direct-cpp-inc/. It is a snapshot of the page as it appeared on 2026-11-21T00:03:08.163+0000.
snippets/tst-direct.cpp.inc — supporting evidence · VCC Plus
← Supporting evidence

Evidence record

snippets/tst-direct.cpp.inc

From Windows Application to Portable Emulation Platform

1,342 bytes

// 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 <http://www.gnu.org/licenses/>.
*/

	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;

SHA-256cbd97900f89f3584a5cc31978e3c5ba75705f664540174f2c452a2259aed91f8

A closer look

Open original