#include "stdafx.h"
#include "..\\MyProject3\\X51.h"

int main()
{
	//subb A, @R0
	X51 x51;
	x51.Code[0] = 0x96;
	x51.Code[1] = 0x62;
	x51.IR = x51.Code[x51.PC++];
	x51.R(0) = 20;
	x51.Data[20] = 32;
	x51.Data[x51.Data[20]] = 15;
	x51.A = 40;
	x51.PSW[7] = 1;
	x51();
	x51();
	x51();
	std::cout << x51.IR << '\n';
	x51();
	std::cout << x51.IR << '\n' ;//<< x51.RR[0] << '\n';
	
	getchar();
	return 0;
}

Соседние файлы в папке Test
  • #
    09.05.201421 б4stdafx.cpp
  • #
    09.05.201455 б4stdafx.h
  • #
    09.05.2014430 б4Test.cpp
  • #
    09.05.20144.7 Кб4Test.vcproj
  • #
    09.05.20141.43 Кб4Test.vcproj.MICROSOF-61AC14.Admin.user
  • #
    09.05.20141.43 Кб4Test.vcproj.WINDOWSXPSP3.Sherhan.user