当前位置: 首页>>代码示例>>C++>>正文


C++ MemoryBlock::writeLong方法代码示例

本文整理汇总了C++中MemoryBlock::writeLong方法的典型用法代码示例。如果您正苦于以下问题:C++ MemoryBlock::writeLong方法的具体用法?C++ MemoryBlock::writeLong怎么用?C++ MemoryBlock::writeLong使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MemoryBlock的用法示例。


在下文中一共展示了MemoryBlock::writeLong方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Results

void Tester_68k::sampleNot() {
    Results* oObj;
    MemoryBlock* oSampleMem;

    oObj = new Results("NOT.B D0");
    oObj->setRegD(0, 0x12345687);
    oObj->setN();
    oObj->setCycleCount(4);

    oObj = new Results("NOT.W D0");
    oObj->setRegD(0, 0x1234ffff);
    oObj->setN()->setX();
    oObj->setCycleCount(4);

    oObj = new Results("NOT.L D0");
    oObj->setRegD(0, 0x000000ff);
    oObj->setX();
    oObj->setCycleCount(6);
    oObj->setIrqSampleCyclePos(2);

    oObj = new Results("NOT.L ($3000).L");
    oObj->setX();
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0x0ffedcee);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(28);
}
开发者ID:ctessler,项目名称:fork68k,代码行数:27,代码来源:not.cpp

示例2: Results

void Tester_68k::sampleEor() {
    Results* oObj;
    MemoryBlock* oSampleMem;

    oObj = new Results("eor.w D4, D3");
    oObj->setRegD(3, 0x54ff0056);
    oObj->setRegD(4, 0x9853ab9b);
    oObj->setX()->setN();
    oObj->setCycleCount(4);

    oObj = new Results("eor.l D3, (A2)");
    oObj->setRegD(3, 0x54ff0056);
    oObj->setRegA(2, 0x3000);
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0x5bf00f47);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(20);
}
开发者ID:ctessler,项目名称:fork68k,代码行数:18,代码来源:eor.cpp

示例3: Results

void Tester_68k::sampleNeg() {
    Results* oObj;
    MemoryBlock* oSampleMem;

    oObj = new Results("NEG.B D0");
    oObj->setRegD(0, 0x12345688);
    oObj->setC()->setX()->setN();
    oObj->setCycleCount(4);

    oObj = new Results("NEG.B D0 alt");
    oObj->setRegD(0, 0x12345600);
    oObj->setZ();
    oObj->setCycleCount(4);

    oObj = new Results("NEG.B D0 overflow");
    oObj->setRegD(0, 0x12345680);
    oObj->setC()->setX()->setN()->setV();
    oObj->setCycleCount(4);

    oObj = new Results("NEG.W D0 overflow");
    oObj->setRegD(0, 0x12348000);
    oObj->setC()->setX()->setN()->setV();
    oObj->setCycleCount(4);

    oObj = new Results("NEG.L D0");
    oObj->setRegD(0, 0xedcba988);
    oObj->setC()->setX()->setN();
    oObj->setCycleCount(6);
    oObj->setIrqSampleCyclePos(2);

    oObj = new Results("NEG.L D0 alt");
    oObj->setRegD(0, 0x1);
    oObj->setC()->setX();
    oObj->setCycleCount(6);
    oObj->setIrqSampleCyclePos(2);

    oObj = new Results("NEG.L ($3000).L");
    oObj->setC()->setX();
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0x0ffedcef);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(28);
}
开发者ID:ctessler,项目名称:fork68k,代码行数:43,代码来源:neg.cpp

示例4: Results

void Tester_68k::sampleMove() {
    Results* oObj;
    MemoryBlock* oSampleMem;

    oObj = new Results("MOVE.B D1, D2");
    oObj->setRegD(1, 0x12345678);
    oObj->setRegD(2, 0x78);
    oObj->setCycleCount(4);

    oObj = new Results("MOVE.L #$8090fea1, D2");
    oObj->setRegD(2, 0x8090fea1);
    oObj->setN();
    oObj->setCycleCount(12);

    oObj = new Results("MOVE #$0, (A2)");
    oObj->setRegA(2, 0x3000);
    oObj->setZ();
    oSampleMem = new MemoryBlock();
    oSampleMem->writeWord(0x3000, 0);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(12);

    oObj = new Results("MOVE.L (A2)+, (A2)+");
    oObj->setRegA(2, 0x3008);
    oObj->setN();
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0xaaaabbbb);
    oSampleMem->writeLong(0x3004, 0xaaaabbbb);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(20);

    oObj = new Results("MOVE.L (A2)+, -(A2)");
    oObj->setRegA(2, 0x3000);
    oObj->setN();
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0xaaaabbbb);
    oSampleMem->writeLong(0x3004, 0x0);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(20);

    oObj = new Results("MOVE.L -(A2), 4(A2,D1)");
    oObj->setRegA(2, 0x3000);
    oObj->setRegD(1, 0);
    oObj->setN();
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0xaaaabbbb);
    oSampleMem->writeLong(0x3004, 0xaaaabbbb);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(28);

    oObj = new Results("MOVE.W D1, ($3000).L");
    oObj->setRegD(1, 0x5678);
    oSampleMem = new MemoryBlock();
    oSampleMem->writeWord(0x3000, 0x5678);
    oSampleMem->writeWord(0x3002, 0);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(16);

    oObj = new Results("MOVE.L ($3000).L, ($3004).L");
    oSampleMem = new MemoryBlock();
    oSampleMem->writeLong(0x3000, 0xeeee);
    oSampleMem->writeLong(0x3004, 0xeeee);
    oObj->setCodeBlock(oSampleMem);
    oObj->setCycleCount(36);

}
开发者ID:ctessler,项目名称:fork68k,代码行数:66,代码来源:move.cpp


注:本文中的MemoryBlock::writeLong方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。