From 064eaaed391835d0e0d057466f6f552e43e79bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Wed, 27 May 2009 16:43:43 +0200 Subject: add cdatset --- ue4/mycpu/instructions.h | 80 ++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'ue4/mycpu/instructions.h') diff --git a/ue4/mycpu/instructions.h b/ue4/mycpu/instructions.h index fcff3e7..3f2fd51 100644 --- a/ue4/mycpu/instructions.h +++ b/ue4/mycpu/instructions.h @@ -19,7 +19,7 @@ * Syntax: inc R1 * (R1++) */ -template +template, int width=0> class CInstructionInc : public CInstruction { @@ -45,7 +45,7 @@ class CInstructionInc /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionInc::compile(std::list& params) { if (params.size() != 1) @@ -56,7 +56,7 @@ void CInstructionInc::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionInc::execute(CCPU *cpu) { assert(cpu != NULL); @@ -74,7 +74,7 @@ void CInstructionInc::execute(CCPU *cpu) * Syntax: dec R1 * (R1--) */ -template +template, int width=0> class CInstructionDec : public CInstruction { @@ -100,7 +100,7 @@ class CInstructionDec /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionDec::compile(std::list& params) { if (params.size() != 1) @@ -111,7 +111,7 @@ void CInstructionDec::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionDec::execute(CCPU *cpu) { assert(cpu != NULL); @@ -129,7 +129,7 @@ void CInstructionDec::execute(CCPU *cpu) * Syntax: add R1, R2, R3 * (R1 = R2 + R3) */ -template +template, int width=0> class CInstructionAdd : public CInstruction { @@ -159,7 +159,7 @@ class CInstructionAdd /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionAdd::compile(std::list& params) { if (params.size() != 3) @@ -174,7 +174,7 @@ void CInstructionAdd::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionAdd::execute(CCPU *cpu) { assert(cpu != NULL); @@ -195,7 +195,7 @@ void CInstructionAdd::execute(CCPU *cpu) * Syntax: sub R1, R2, R3 * (R1 = R2 - R3) */ -template +template, int width=0> class CInstructionSub : public CInstruction { @@ -225,7 +225,7 @@ class CInstructionSub /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionSub::compile(std::list& params) { if (params.size() != 3) @@ -240,7 +240,7 @@ void CInstructionSub::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionSub::execute(CCPU *cpu) { assert(cpu != NULL); @@ -261,7 +261,7 @@ void CInstructionSub::execute(CCPU *cpu) * Syntax: mul R1, R2, R3 * (R1 = R2 * R3) */ -template +template, int width=0> class CInstructionMul : public CInstruction { @@ -291,7 +291,7 @@ class CInstructionMul /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionMul::compile(std::list& params) { if (params.size() != 3) @@ -306,7 +306,7 @@ void CInstructionMul::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionMul::execute(CCPU *cpu) { super::checkRegister(cpu, m_regidx1); @@ -325,7 +325,7 @@ void CInstructionMul::execute(CCPU *cpu) * Syntax: div R1, R2, R3 * (R1 = R2 / R3) */ -template +template, int width=0> class CInstructionDiv : public CInstruction { @@ -355,7 +355,7 @@ class CInstructionDiv /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionDiv::compile(std::list& params) { if (params.size() != 3) @@ -370,7 +370,7 @@ void CInstructionDiv::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionDiv::execute(CCPU *cpu) { assert(cpu != NULL); @@ -391,7 +391,7 @@ void CInstructionDiv::execute(CCPU *cpu) * Syntax: load R1, R2 * (R1 = memory[R2]) */ -template +template, int width=0> class CInstructionLoad : public CInstruction { @@ -419,7 +419,7 @@ class CInstructionLoad /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionLoad::compile(std::list& params) { if (params.size() != 2) @@ -432,7 +432,7 @@ void CInstructionLoad::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionLoad::execute(CCPU *cpu) { assert(cpu != NULL); @@ -453,7 +453,7 @@ void CInstructionLoad::execute(CCPU *cpu) * Syntax: store R1, R2 * (memory[R2] = R1) */ -template +template, int width=0> class CInstructionStore : public CInstruction { @@ -481,7 +481,7 @@ class CInstructionStore /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionStore::compile(std::list& params) { if (params.size() != 2) @@ -494,7 +494,7 @@ void CInstructionStore::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionStore::execute(CCPU *cpu) { assert(cpu != NULL); @@ -515,7 +515,7 @@ void CInstructionStore::execute(CCPU *cpu) * Syntax: test R1 * (R1 == 0: zeroflag: true, R1 < 0: signflag: true) */ -template +template, int width=0> class CInstructionTest : public CInstruction { @@ -541,7 +541,7 @@ class CInstructionTest /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionTest::compile(std::list& params) { if (params.size() != 1) @@ -552,7 +552,7 @@ void CInstructionTest::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionTest::execute(CCPU *cpu) { assert(cpu != NULL); @@ -572,7 +572,7 @@ void CInstructionTest::execute(CCPU *cpu) * Implementation of assembler command "label" * Syntax: label name: */ -template +template, int width=0> class CInstructionLabel : public CInstruction { @@ -604,7 +604,7 @@ class CInstructionLabel * Syntax: jumpa labelname * (jump to labelname) */ -template +template, int width=0> class CInstructionJumpA : public CInstruction { @@ -630,7 +630,7 @@ class CInstructionJumpA /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionJumpA::compile(std::list& params) { if (params.size() != 1) @@ -641,7 +641,7 @@ void CInstructionJumpA::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionJumpA::execute(CCPU *cpu) { assert(cpu != NULL); @@ -661,7 +661,7 @@ void CInstructionJumpA::execute(CCPU *cpu) * Syntax: jumpz labelname * (jump to labelname if zeroflag) */ -template +template, int width=0> class CInstructionJumpZ : public CInstruction { @@ -687,7 +687,7 @@ class CInstructionJumpZ /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionJumpZ::compile(std::list& params) { if (params.size() != 1) @@ -698,7 +698,7 @@ void CInstructionJumpZ::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionJumpZ::execute(CCPU *cpu) { assert(cpu != NULL); @@ -720,7 +720,7 @@ void CInstructionJumpZ::execute(CCPU *cpu) * Syntax: jumps labelname * (jump to labelname if signflag) */ -template +template, int width=0> class CInstructionJumpS : public CInstruction { @@ -746,7 +746,7 @@ class CInstructionJumpS /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionJumpS::compile(std::list& params) { if (params.size() != 1) @@ -757,7 +757,7 @@ void CInstructionJumpS::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionJumpS::execute(CCPU *cpu) { assert(cpu != NULL); @@ -779,7 +779,7 @@ void CInstructionJumpS::execute(CCPU *cpu) * Syntax: write DEV, R1 * (write R1 to DEV, which is a name of a display) */ -template +template, int width=0> class CInstructionWrite : public CInstruction { @@ -808,7 +808,7 @@ class CInstructionWrite /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionWrite::compile(std::list& params) { if (params.size() != 2) @@ -821,7 +821,7 @@ void CInstructionWrite::compile(std::list& params) /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CInstructionWrite::execute(CCPU *cpu) { assert(cpu != NULL); -- cgit v1.2.3