📄 logicalshift.h
字号:
#define handle_logishift8(opstr,op,imm) \{ \ word __dest = get_op_val(op); \ __asm__("push %%edx\n\t" \ "popfl\n\t" \ #opstr" %%cl,%%al\n\t" \ "pushfl\n\t" \ "pop %%edx\n\t" \ :"=a"(__dest),"=d"(cpu.flags) \ :"a"(__dest),"d"(cpu.flags),"c"(imm)); \ set_op_val(op,__dest); \}#define handle_logishift16(opstr,op,imm) \{ \ word __dest = get_op_val(op); \ __asm__("push %%edx\n\t" \ "popfl\n\t" \ #opstr" %%cl,%%ax\n\t" \ "pushfl\n\t" \ "pop %%edx\n\t" \ :"=a"(__dest),"=d"(cpu.flags) \ :"a"(__dest),"d"(cpu.flags),"c"(imm)); \ set_op_val(op,__dest); \}#define handle_logicalshift(opstr,op,imm,wFlag) \ if(wFlag) \ { \ handle_logishift16(opstr,op,imm) \ } \ else \ { \ handle_logishift8(opstr,op,imm) \ }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -