首页
社区
课程
招聘
[求助]求判断字符串的算法
发表于: 2009-10-19 22:50 4134

[求助]求判断字符串的算法

2009-10-19 22:50
4134
在一个文本框中输入一个汇编的指令,如fld,然后根据这个指令给一个变量设置相应的值,我想过一个办法是通过if(strcmp())来实现,但是觉得太麻烦了,得写好几十个if,是否有比较简单的算法,希望大家指教

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 253
活跃值: (89)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
没有明白楼主的意思......
2009-10-20 08:07
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3

  • Sams Teach Yourself MySQL in 10 Minutes ebook free download
  • MySQL 5.0 Certification Study Guide ebook free download
  • Web Database Applications with PHP & MySQL ebook free download
  • Sams Teach Yourself PHP, MySQL and Apache All in One ebook free download
  • Mysql Pocket Reference SECOND EDITION ebook free download
  • Mysql Enterprise Solutions Alexander “Sasha” Pachev ebook free download
  • The Definitive Guide to MySQL 5, Third Edition ebook free download
  • Learning PHP and MySQL, Second Edition ebook free download
  • Mastering phpMyAdmin 2.11 for Effective MySQL Management ebook free download
  • MySQL and Java Developer’s Guide ebook free download
  • Mysql Administrator's Guide and dLanguage Reference ebook free download
  • PHP and MySQL For Dummies, 2nd Edition  ebook free download
  • Database Design Manual: using MySQL for Windows ebook free download
  • Mastering phpMyAdmin 2.8 for Effective MySQL Management ebook free download
  • Beginning PHP5, Apache, and MySQL Web Development ebook free download
  • MySQL The definitive guide to using, programming, and administering MySQL 4.1 and 5.0 Third Edition ebook free download
  • MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL ebook free download
  • Build Your Own Database-Driven Website Using PHP & MySQL ebook free download
  • Sams Teach Yourself PHP, MySQL and Apache in 24 Hours ebook free download
  • Web Database Applications with PHP & MySQL, 2nd Edition ebook free download
  • JDBC Metadata, MySQL, and Oracle Recipes: A Problem-Solution Approach ebook free download
  • Beginning PHP and MySQL 5: From Novice to Professional, Second Edition ebook free download
  • Practical PHP and MySQL Building Eight Dynamic Web Applications ebook free download
  • Beginning PHP and MySQL: From Novice to Professional, Third Edition ebook free download
  • Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together ebook free download
  • Creating your MySQL Database: Practical Design Tips and Techniques ebook free download
  • Professional LAMP: Linux, Apache, MySQL, and PHP5 Web Development ebook free download
  • Sams Teach Yourself PHP, MySQL And Apache: All in One, Third Edition ebook free download
  • Intrusion Detection Systems with Snort Advanced IDS Techniques Using Snort, Apache, MySQL, PHP, and ACID ebook free download
  • 2009-10-20 08:52
    0
    雪    币: 1022
    活跃值: (31)
    能力值: ( LV4,RANK:50 )
    在线值:
    发帖
    回帖
    粉丝
    4
    假定你要处理的是add,fld...一共n条指令
    1、指令多时对指令进行hash变换,x=hash(instruction),(hash值的比特位最小为log2 n+1);
    再根据生成的x建一个指令处理函数表如:fld指令生成的x1=hash(fld),[基址+x1]就是fld对应的处理函数地址,即jmp [基址+x1]就转到fld指令处理处了。
    2、当然指令少的话直接将指令排好序,放一个表内每条指令都对应一个编号x;
    再根据x的值生成一个指令处理表如:fld指令对应的编号是x2,[基址+x2]就是fld对应的处理函数地址,即jmp [基址+x2]就转到fld指令处理处了。不过使用时要查log2n+1次表,所以指令太多时会耗费大量时间。
    2009-10-20 09:18
    0
    游客
    登录 | 注册 方可回帖
    返回
    //