• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python ut_helpers_asm.check_instruction函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中ut_helpers_asm.check_instruction函数的典型用法代码示例。如果您正苦于以下问题:Python check_instruction函数的具体用法?Python check_instruction怎么用?Python check_instruction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了check_instruction函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_CLIPU

    def test_CLIPU(self):
        """Test the CLIPU instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("CLIPU $1, 0x2", "f1011011")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例2: test_SSUB

    def test_SSUB(self):
        """Test the SSUB instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("SSUB $1, $2", "f121000a")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例3: test_LHCPM0

    def test_LHCPM0(self):
        """Test the LHCPM0 instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("LHCPM0 $C1, ($2+), 8", "f1255808")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例4: test_SADDU

    def test_SADDU(self):
        """Test the SADDU instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("SADDU $1, $2", "f1210009")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例5: test_LMCPA

    def test_LMCPA(self):
        """Test the LMCPA instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("LMCPA $C1, ($2+), 8", "f1257008")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例6: test_UCI

    def test_UCI(self):
        """Test the UCI instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("UCI $1, $2, 0x3", "f1220003")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例7: test_DSP

    def test_DSP(self):
        """Test the DSP instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("DSP $1, $2, 0x3", "f1200003")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例8: test_MAXU

    def test_MAXU(self):
        """Test the MAXU instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("MAXU $1, $2", "f1210007")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例9: test_SWCPA

    def test_SWCPA(self):
        """Test the SWCPA instruction"""

        # Top instructions
        check_instruction("SWCPA $C10, ($5+), 48", "fa552030")

        # Manually generated instruction
        check_instruction("SWCPA $C1, ($2+), 4", "f1252004")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例10: test_SHCPA

    def test_SHCPA(self):
        """Test the SHCPA instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("SHCPA $C1, ($2+), 6", "f1251006")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例11: test_LWCPM1

    def test_LWCPM1(self):
        """Test the LWCPM1 instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("LWCPM1 $C1, ($2+), 8", "f1256c08")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例12: test_ABS

    def test_ABS(self):
        """Test the ABS instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("ABS $1, $2", "f1210003")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例13: test_LMCPM0

    def test_LMCPM0(self):
        """Test the LMCPM0 instruction"""

        # Top instructions
        check_instruction("LMCPM0 $C3, ($12+), 8", "f3c57808")
        check_instruction("LMCPM0 $C1, ($11+), -32", "f1b578e0")
        check_instruction("LMCPM0 $C3, ($TP+), 48", "f3d57830")
        check_instruction("LMCPM0 $C3, ($GP+), -96", "f3e578a0")
        check_instruction("LMCPM0 $C3, ($SP+), -40", "f3f578d8")
开发者ID:cea-sec,项目名称:miasm,代码行数:9,代码来源:test_major_opcode_15.py


示例14: test_SSARB

    def test_SSARB(self):
        """Test the SSARB instruction"""

        # Top instructions
        check_instruction("SSARB 0($8)", "108c")
        check_instruction("SSARB 3($GP)", "13ec")
        check_instruction("SSARB 0($3)", "103c")
        check_instruction("SSARB 0($TP)", "10dc")
        check_instruction("SSARB 3($0)", "130c")
开发者ID:commial,项目名称:miasm,代码行数:9,代码来源:test_major_opcode_1.py


示例15: test_CMOVC

    def test_CMOVC(self):
        """Test the CMOVC instruction"""

        # No samples were found
        assert(True)

        # Manually generated instruction
        check_instruction("CMOVC $C0, $1", "f017f002")
        check_instruction("CMOVC $2, $C3", "f327f003")
开发者ID:cea-sec,项目名称:miasm,代码行数:9,代码来源:test_major_opcode_15.py


示例16: test_EXTH

    def test_EXTH(self):
        """Test the EXTH instruction"""

        # Top instructions
        check_instruction("EXTH $0", "102d")
        check_instruction("EXTH $11", "1b2d")
        check_instruction("EXTH $2", "122d")
        check_instruction("EXTH $6", "162d")
        check_instruction("EXTH $12", "1c2d")
开发者ID:commial,项目名称:miasm,代码行数:9,代码来源:test_major_opcode_1.py


示例17: test_BCPEQ

    def test_BCPEQ(self):
        """Test the BCPEQ instruction"""

        # Top instructions
        check_instruction("BCPEQ 0xE, 0xA504", "d8e45282")
        check_instruction("BCPEQ 0x4, 0xD5F4", "d8446afa")
        check_instruction("BCPEQ 0xC, 0xAADA", "d8c4556d")
        check_instruction("BCPEQ 0x7, 0xFFFF18F6", "d8748c7b")

        # Randomly chosen instructions
        check_instruction("BCPEQ 0x6, 0xFFFF18CA", "d8648c65")
开发者ID:cea-sec,项目名称:miasm,代码行数:11,代码来源:test_major_opcode_13.py


示例18: test_MADDR

    def test_MADDR(self):
        """Test the MADDR instruction"""

        # Top instructions
        check_instruction("MADDR $12, $3", "fc313006")
        check_instruction("MADDR $10, $2", "fa213006")
        check_instruction("MADDR $6, $12", "f6c13006")
        check_instruction("MADDR $11, $10", "fba13006")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py


示例19: test_SWI

    def test_SWI(self):
        """Test the SWI instruction"""

        # Top instructions
        check_instruction("SWI 0x0", "7006")
        check_instruction("SWI 0x2", "7026")
        check_instruction("SWI 0x1", "7016")
        check_instruction("SWI 0x3", "7036")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_7.py


示例20: test_LMCPM1

    def test_LMCPM1(self):
        """Test the LMCPM1 instruction"""

        # Top instructions
        check_instruction("LMCPM1 $C9, ($4+), 48", "f9457c30")
        check_instruction("LMCPM1 $C4, ($10+), 64", "f4a57c40")
        check_instruction("LMCPM1 $C4, ($TP+), -72", "f4d57cb8")
        check_instruction("LMCPM1 $C4, ($GP+), -32", "f4e57ce0")
开发者ID:cea-sec,项目名称:miasm,代码行数:8,代码来源:test_major_opcode_15.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python ut_helpers_ir.exec_instruction函数代码示例发布时间:2022-05-27
下一篇:
Python utGenerator.run_test函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap