0090h or 0066h一寸等于多少厘米

微机原理程序_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
文档贡献者贡献于
评价文档:
108页免费63页免费6页免费7页免费6页免费6页免费12页1下载券3页免费5页免费4页免费
喜欢此文档的还喜欢4页免费11页免费15页3下载券14页7下载券4页1下载券
微机原理程序|陈​红​卫​主​编​的​微​机​原​理​与​接​口​技​术​的​实​验​程​序​代​码​!
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
大小:18.52KB
登录百度文库,专享文档复制特权,财富值每天免费拿!
你可能喜欢精华区文章阅读
Crack 版 (精华区)
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&┌┐┌┐∞
【&80386&保护模式简介五&】&&&&&&&&&&&&&&&&&&&&&┘└┘└┘
==========================================================================
&&&&底下是进入保护模式、进入&V86&的精简范例&,执行前请确定&CPU&是处在真实模
式&,程式码因为用到&386&指令&,请用&TASM&3.1&来编译。
--------------------------------------------------------------------------
┌――――――┐
│进入保护模式│
└――――――┘
&&&&进入保护模式的程式范例&,其目地是进入保护模式&,并在保护模式下用绝对记忆
体读写的方式&,直接将&'Protection&Mode&!'&字串写入&Video&Ram&(B800:0000)&,
本程式以最精简的方式撰写&,没有任何错误处理&,因此请确定电脑现在处在真实模式
下才可执行本程式。(禁挂&EMM&系保护模式软体)
&&&&程式流程如下:(底下所指记忆体位址皆为&32bit&绝对位址)
&&&&&&&&1.&设定&GDTtab&表所在的记忆体位址填入&GDTadds
&&&&&&&&2.&设定&Selector&0008&的记忆体起始位址就是现在&CS&的记忆体位址
&&&&&&&&&&&设定&Selector&0010&的记忆体起始位址就是现在&CS&的记忆体位址
&&&&&&&&&&&&&&&&Selector&0018&的记忆体起始位址就是&000B8000&=&(B800:0000)
&&&&&&&&3.&执行&LGDT&FWORD&PTR&CS:GDTadds&告诉&CPU&一但进入保护模式&,各
&&&&&&&&&&&&&&&&区段的记忆体起始位址、长度
&&&&&&&&4.&设定&CR0&的&Bit0&=&'1'&,并透过&JMP&指令进入保护模式
&&&&&&&&&&&&&※&进入保护模式後&,DS.ES.SS.CS.GS.FS&等等暂存器定址方式不再
&&&&&&&&&&&&&&&&是&Segment&,而变成&Selector
&&&&&&&&5.&秀字&将&0010:MSG_1&搬到&
&&&&&&&&&&&&&&&&意即将&'Protection&Mode&!'&字串搬到&Video&Ram&去
&&&&&&&&6.&设定&CR0&的&Bit0&=&'0'&,并透过&JMP&指令回到真实模式
&&&&&&&&&&&&&※&回到真实模式後&,DS.ES.SS.CS.GS.FS&等等暂存器定址方式不再
&&&&&&&&&&&&&&&&是&Selector&,而变成&Segment
&&&&&&&&5.&秀字&将&CS:MSG_2&搬到&B800:00A0
&&&&&&&&&&&&&&&&意即将&'Return&Real&Mode&!'&字串搬到&Video&Ram&去
&&&&&&&&6.&结束程式
-----------------------------&&P.ASM&&------------------------------------
code&&&&segment
&&&&&&&&assume&&cs:code,ds:code
start&&&proc&&&&near
&&&&&&&&jmp&&&&&next
gdtadds&dw&&&&&&001fh,h
gdttab&&db&&&&&&000h,000h,00h,00h,00h,00h,00h,00h&;00&Null
&&&&&&&&db&&&&&&0ffh,0ffh,00h,00h,00h,9bh,00h,00h&;08&PRG&Seg
&&&&&&&&db&&&&&&0ffh,0ffh,00h,00h,00h,93h,00h,00h&;10&PRG&Seg
&&&&&&&&db&&&&&&0ffh,0ffh,00h,80h,0bh,93h,00h,00h&;18&B8000
msg_1&&&db&&&&&&'Protection&Mode&!'
msg_2&&&db&&&&&&'Return&Real&Mode&!'
&&&&&&&&xor&&&&&eax,eax&&&&&&&&&&&&&&&&&;
&&&&&&&&xor&&&&&ebx,ebx&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,cs&&&&&&&&&&&&&&&&&&&;设定&GDTadds
&&&&&&&&shl&&&&&eax,04h&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&bx,offset&gdttab&&&&&&&&;
&&&&&&&&add&&&&&eax,ebx&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&di,offset&gdtadds+02h&&&;
&&&&&&&&mov&&&&&cs:[di],eax&&&&&&&&&&&&&;
&&&&&&&&NOP
&&&&&&&&xor&&&&&eax,eax&&&&&&&&&&&&&&&&&;
&&&&&&&&xor&&&&&ebx,ebx&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,cs&&&&&&&&&&&&&&&&&&&;
&&&&&&&&shl&&&&&eax,04h&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&di,offset&gdttab+08h&&&&;设定&GDTtab&内的
&&&&&&&&mov&&&&&si,offset&gdttab+10h&&&&;Selector&0008&及&0010
&&&&&&&&mov&&&&&cs:[di+02h],ax&&&&&&&&&&;两个段落的记忆体起始位址
&&&&&&&&mov&&&&&cs:[si+02h],ax&&&&&&&&&&;
&&&&&&&&shr&&&&&eax,10h&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&cs:[di+04h],al&&&&&&&&&&;
&&&&&&&&mov&&&&&cs:[si+04h],al&&&&&&&&&&;
&&&&&&&&mov&&&&&cs:[di+07h],ah&&&&&&&&&&;
&&&&&&&&mov&&&&&cs:[si+07h],ah&&&&&&&&&&;
&&&&&&&&NOP
&&&&&&&&cli
&&&&&&&&lgdt&&&&fword&ptr&cs:gdtadds&&&&;载入&GDT&表格
&&&&&&&&mov&&&&&eax,cr0&&&&&&&&&&&&&;
&&&&&&&&or&&&&&&al,01h&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&cr0,eax&&&&&&&&&&&&&;
&&&&&&&&jmp&&&&&protection_mode&&&&&;进入保护模式
protection_mode&:&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,0010h&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ds,ax&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&si,offset&msg_1&&&&&&&&&;
&&&&&&&&mov&&&&&ax,0018h&&&&&&&&&&&&&&&&;将&0010:MSG_1&搬到&
&&&&&&&&mov&&&&&es,ax&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&di,0000h&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ah,70h&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&cx,0011h&&&&&&&&&&&&&&&&;
&&&&&&&&cld&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;
L1&:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&lodsb&&&&&&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&stosw&&&&&&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&loop&&&&L1&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&NOP
&&&&&&&&mov&&&&&eax,cr0&&&&&&&&&&&&&;
&&&&&&&&and&&&&&al,0feh&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&cr0,eax&&&&&&&&&&&&&;回到真实模式
&&&&&&&&jmp&&&&&return_real_mode&&&&;
return_real_mode&:&&&&&&&&&&&&&&&&&&;
&&&&&&&&sti
&&&&&&&&mov&&&&&ax,cs&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ds,ax&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&si,offset&msg_2&&&&&&&&&;
&&&&&&&&mov&&&&&ax,0b800h&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&es,ax&&&&&&&&&&&&&&&&&&&;将&CS:MSG_2&搬到&B800:00A0
&&&&&&&&mov&&&&&di,00a0h&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ah,70h&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&cx,0012h&&&&&&&&&&&&&&&&;
&&&&&&&&cld&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;
L2&:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&lodsb&&&&&&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&stosw&&&&&&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&loop&&&&L2&&&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,4cffh
&&&&&&&&int&&&&&21h
start&&&endp
code&&&&ends
&&&&&&&&end&&&&&start
--------------------------------------------------------------------------
&&&&因为保护模式下不能呼叫真实模式下的中断&,所以笔者以直接填写显示卡记忆体
的方式秀字。这是一个简单、尚未使用中断向量表的范例。
注:&所谓一山不容二虎&,如果已载入其它保护模式的程式&,那本程式将会与它打架&,
&&&&造成电脑当机。
┌――――――――┐
│进入虚拟&86&模式│&&&&&&&&&&&&为求精简&,本程式毫无错误处理能力
└――――――――┘
------------------------&&V86.ASM&&---------------------------------------
code&&&&segment
&&&&&&&&assume&&cs:code,ds:code
start&&&proc&&&&near
&&&&&&&&jmp&&&&&next
gdtadds&dw&&&&&&002fh,h
gdttab&&db&&&&&&000h,000h,000h,000h,000h,000h,000h,000h&;00&Null
&&&&&&&&db&&&&&&0ffh,0ffh,000h,000h,000h,09bh,000h,000h&;08&PRG&Seg
&&&&&&&&db&&&&&&0ffh,0ffh,000h,000h,000h,093h,08fh,000h&;10&Dos=Page
&&&&&&&&db&&&&&&0ffh,0ffh,000h,000h,000h,089h,000h,000h&;18&TSSltr
&&&&&&&&db&&&&&&0ffh,0ffh,000h,000h,000h,089h,000h,000h&;20&TSSjmp
&&&&&&&&db&&&&&&0ffh,003h,000h,000h,000h,093h,000h,000h&;28&Stack&(1K)
tssltr&&dd&&&&&&h
&&&&&&&&dd&&&&&&000003ffh&&&&&&&;ESP
&&&&&&&&dw&&&&&&h&&&&&;SS.0
&&&&&&&&dd&&&&&&0,0,0,0,0
&&&&&&&&dw&&&&&&offset&enter_v86,0000h&&&&&&;EIP
&&&&&&&&dd&&&&&&h&&&&&&&;EFlag
&&&&&&&&dd&&&&&&0,0,0,0
&&&&&&&&dd&&&&&&000003ffh&&&&&&&;ESP
&&&&&&&&dd&&&&&&0,0,0
&&&&&&&&dw&&&&&&h&&&&&;ES.0
&&&&&&&&dw&&&&&&h&&&&&;CS.0
&&&&&&&&dw&&&&&&h&&&&&;SS.0
&&&&&&&&dw&&&&&&h&&&&&;DS,0
&&&&&&&&dw&&&&&&h&&&&&;FS.0
&&&&&&&&dw&&&&&&h&&&&&;GS.0
&&&&&&&&dw&&&&&&h&&&&&;LDT.0
&&&&&&&&dw&&&&&&h&&&&&;0.IOMAP
&&&&&&&&dw&&&&&&0ffffh
tssjmp&&dd&&&&&&h
&&&&&&&&dd&&&&&&000003ffh&&&&&&&;ESP
&&&&&&&&dw&&&&&&h&&&&&;SS.0
&&&&&&&&dd&&&&&&0,0,0,0,0
&&&&&&&&dw&&&&&&offset&enter_v86,0000h&&&&&&;EIP
&&&&&&&&dd&&&&&&h&&&&&&&;EFlag
&&&&&&&&dd&&&&&&0,0,0,0
&&&&&&&&dd&&&&&&000003ffh&&&&&&&;ESP
&&&&&&&&dd&&&&&&0,0,0
&&&&&&&&dw&&&&&&h&&&&&;ES.0
&&&&&&&&dw&&&&&&h&&&&&;CS.0
&&&&&&&&dw&&&&&&h&&&&&;SS.0
&&&&&&&&dw&&&&&&h&&&&&;DS,0
&&&&&&&&dw&&&&&&h&&&&&;FS.0
&&&&&&&&dw&&&&&&h&&&&&;GS.0
&&&&&&&&dw&&&&&&h&&&&&;LDT.0
&&&&&&&&dw&&&&&&h&&&&&;0.IOMAP
iomap&&&db&&&&&&1000h&dup&(0)
&&&&&&&&dw&&&&&&0ffffh
buffer1&db&&&&&&0400h&dup&(0)&&&&&&&&&&&;Stack
idtadds&dw&&&&&&07ffh,h
idttab&&dw&&&&&&offset&new_00,h,0000h,offset&
new_01,h,0000h
&&&&&&&&dw&&&&&&offset&new_02,h,0000h,offset&
new_03,h,0000h
&&&&&&&&dw&&&&&&offset&new_04,h,0000h,offset&
new_05,h,0000h
&&&&&&&&dw&&&&&&offset&new_06,h,0000h,offset&
new_07,h,0000h
&&&&&&&&dw&&&&&&offset&new_08,h,0000h,offset&
new_09,h,0000h
&&&&&&&&dw&&&&&&offset&new_0a,h,0000h,offset&
new_0b,h,0000h
&&&&&&&&dw&&&&&&offset&new_0c,h,0000h,offset&
new_0d,h,0000h
&&&&&&&&dw&&&&&&offset&new_0e,h,0000h,offset&
new_0f,h,0000h
&&&&&&&&dw&&&&&&offset&new_10,h,0000h,offset&
new_11,h,0000h
&&&&&&&&dw&&&&&&offset&new_12,h,0000h,offset&
new_13,h,0000h
&&&&&&&&dw&&&&&&offset&new_14,h,0000h,offset&
new_15,h,0000h
&&&&&&&&dw&&&&&&offset&new_16,h,0000h,offset&
new_17,h,0000h
&&&&&&&&dw&&&&&&offset&new_18,h,0000h,offset&
new_19,h,0000h
&&&&&&&&dw&&&&&&offset&new_1a,h,0000h,offset&
new_1b,h,0000h
&&&&&&&&dw&&&&&&offset&new_1c,h,0000h,offset&
new_1d,h,0000h
&&&&&&&&dw&&&&&&offset&new_1e,h,0000h,offset&
new_1f,h,0000h
&&&&&&&&dw&&&&&&offset&new_20,h,0000h,offset&
new_21,h,0000h
&&&&&&&&dw&&&&&&offset&new_22,h,0000h,offset&
new_23,h,0000h
&&&&&&&&dw&&&&&&offset&new_24,h,0000h,offset&
new_25,h,0000h
&&&&&&&&dw&&&&&&offset&new_26,h,0000h,offset&
new_27,h,0000h
&&&&&&&&dw&&&&&&offset&new_28,h,0000h,offset&
new_29,h,0000h
&&&&&&&&dw&&&&&&offset&new_2a,h,0000h,offset&
new_2b,h,0000h
&&&&&&&&dw&&&&&&offset&new_2c,h,0000h,offset&
new_2d,h,0000h
&&&&&&&&dw&&&&&&offset&new_2e,h,0000h,offset&
new_2f,h,0000h
&&&&&&&&dw&&&&&&offset&new_30,h,0000h,offset&
new_31,h,0000h
&&&&&&&&dw&&&&&&offset&new_32,h,0000h,offset&
new_33,h,0000h
&&&&&&&&dw&&&&&&offset&new_34,h,0000h,offset&
new_35,h,0000h
&&&&&&&&dw&&&&&&offset&new_36,h,0000h,offset&
new_37,h,0000h
&&&&&&&&dw&&&&&&offset&new_38,h,0000h,offset&
new_39,h,0000h
&&&&&&&&dw&&&&&&offset&new_3a,h,0000h,offset&
new_3b,h,0000h
&&&&&&&&dw&&&&&&offset&new_3c,h,0000h,offset&
new_3d,h,0000h
&&&&&&&&dw&&&&&&offset&new_3e,h,0000h,offset&
new_3f,h,0000h
&&&&&&&&dw&&&&&&offset&new_40,h,0000h,offset&
new_41,h,0000h
&&&&&&&&dw&&&&&&offset&new_42,h,0000h,offset&
new_43,h,0000h
&&&&&&&&dw&&&&&&offset&new_44,h,0000h,offset&
new_45,h,0000h
&&&&&&&&dw&&&&&&offset&new_46,h,0000h,offset&
new_47,h,0000h
&&&&&&&&dw&&&&&&offset&new_48,h,0000h,offset&
new_49,h,0000h
&&&&&&&&dw&&&&&&offset&new_4a,h,0000h,offset&
new_4b,h,0000h
&&&&&&&&dw&&&&&&offset&new_4c,h,0000h,offset&
new_4d,h,0000h
&&&&&&&&dw&&&&&&offset&new_4e,h,0000h,offset&
new_4f,h,0000h
&&&&&&&&dw&&&&&&offset&new_50,h,0000h,offset&
new_51,h,0000h
&&&&&&&&dw&&&&&&offset&new_52,h,0000h,offset&
new_53,h,0000h
&&&&&&&&dw&&&&&&offset&new_54,h,0000h,offset&
new_55,h,0000h
&&&&&&&&dw&&&&&&offset&new_56,h,0000h,offset&
new_57,h,0000h
&&&&&&&&dw&&&&&&offset&new_58,h,0000h,offset&
new_59,h,0000h
&&&&&&&&dw&&&&&&offset&new_5a,h,0000h,offset&
new_5b,h,0000h
&&&&&&&&dw&&&&&&offset&new_5c,h,0000h,offset&
new_5d,h,0000h
&&&&&&&&dw&&&&&&offset&new_5e,h,0000h,offset&
new_5f,h,0000h
&&&&&&&&dw&&&&&&offset&new_60,h,0000h,offset&
new_61,h,0000h
&&&&&&&&dw&&&&&&offset&new_62,h,0000h,offset&
new_63,h,0000h
&&&&&&&&dw&&&&&&offset&new_64,h,0000h,offset&
new_65,h,0000h
&&&&&&&&dw&&&&&&offset&new_66,h,0000h,offset&
new_67,h,0000h
&&&&&&&&dw&&&&&&offset&new_68,h,0000h,offset&
new_69,h,0000h
&&&&&&&&dw&&&&&&offset&new_6a,h,0000h,offset&
new_6b,h,0000h
&&&&&&&&dw&&&&&&offset&new_6c,h,0000h,offset&
new_6d,h,0000h
&&&&&&&&dw&&&&&&offset&new_6e,h,0000h,offset&
new_6f,h,0000h
&&&&&&&&dw&&&&&&offset&new_70,h,0000h,offset&
new_71,h,0000h
&&&&&&&&dw&&&&&&offset&new_72,h,0000h,offset&
new_73,h,0000h
&&&&&&&&dw&&&&&&offset&new_74,h,0000h,offset&
new_75,h,0000h
&&&&&&&&dw&&&&&&offset&new_76,h,0000h,offset&
new_77,h,0000h
&&&&&&&&dw&&&&&&offset&new_78,h,0000h,offset&
new_79,h,0000h
&&&&&&&&dw&&&&&&offset&new_7a,h,0000h,offset&
new_7b,h,0000h
&&&&&&&&dw&&&&&&offset&new_7c,h,0000h,offset&
new_7d,h,0000h
&&&&&&&&dw&&&&&&offset&new_7e,h,0000h,offset&
new_7f,h,0000h
&&&&&&&&dw&&&&&&offset&new_80,h,0000h,offset&
new_81,h,0000h
&&&&&&&&dw&&&&&&offset&new_82,h,0000h,offset&
new_83,h,0000h
&&&&&&&&dw&&&&&&offset&new_84,h,0000h,offset&
new_85,h,0000h
&&&&&&&&dw&&&&&&offset&new_86,h,0000h,offset&
new_87,h,0000h
&&&&&&&&dw&&&&&&offset&new_88,h,0000h,offset&
new_89,h,0000h
&&&&&&&&dw&&&&&&offset&new_8a,h,0000h,offset&
new_8b,h,0000h
&&&&&&&&dw&&&&&&offset&new_8c,h,0000h,offset&
new_8d,h,0000h
&&&&&&&&dw&&&&&&offset&new_8e,h,0000h,offset&
new_8f,h,0000h
&&&&&&&&dw&&&&&&offset&new_90,h,0000h,offset&
new_91,h,0000h
&&&&&&&&dw&&&&&&offset&new_92,h,0000h,offset&
new_93,h,0000h
&&&&&&&&dw&&&&&&offset&new_94,h,0000h,offset&
new_95,h,0000h
&&&&&&&&dw&&&&&&offset&new_96,h,0000h,offset&
new_97,h,0000h
&&&&&&&&dw&&&&&&offset&new_98,h,0000h,offset&
new_99,h,0000h
&&&&&&&&dw&&&&&&offset&new_9a,h,0000h,offset&
new_9b,h,0000h
&&&&&&&&dw&&&&&&offset&new_9c,h,0000h,offset&
new_9d,h,0000h
&&&&&&&&dw&&&&&&offset&new_9e,h,0000h,offset&
new_9f,h,0000h
&&&&&&&&dw&&&&&&offset&new_a0,h,0000h,offset&
new_a1,h,0000h
&&&&&&&&dw&&&&&&offset&new_a2,h,0000h,offset&
new_a3,h,0000h
&&&&&&&&dw&&&&&&offset&new_a4,h,0000h,offset&
new_a5,h,0000h
&&&&&&&&dw&&&&&&offset&new_a6,h,0000h,offset&
new_a7,h,0000h
&&&&&&&&dw&&&&&&offset&new_a8,h,0000h,offset&
new_a9,h,0000h
&&&&&&&&dw&&&&&&offset&new_aa,h,0000h,offset&
new_ab,h,0000h
&&&&&&&&dw&&&&&&offset&new_ac,h,0000h,offset&
new_ad,h,0000h
&&&&&&&&dw&&&&&&offset&new_ae,h,0000h,offset&
new_af,h,0000h
&&&&&&&&dw&&&&&&offset&new_b0,h,0000h,offset&
new_b1,h,0000h
&&&&&&&&dw&&&&&&offset&new_b2,h,0000h,offset&
new_b3,h,0000h
&&&&&&&&dw&&&&&&offset&new_b4,h,0000h,offset&
new_b5,h,0000h
&&&&&&&&dw&&&&&&offset&new_b6,h,0000h,offset&
new_b7,h,0000h
&&&&&&&&dw&&&&&&offset&new_b8,h,0000h,offset&
new_b9,h,0000h
&&&&&&&&dw&&&&&&offset&new_ba,h,0000h,offset&
new_bb,h,0000h
&&&&&&&&dw&&&&&&offset&new_bc,h,0000h,offset&
new_bd,h,0000h
&&&&&&&&dw&&&&&&offset&new_be,h,0000h,offset&
new_bf,h,0000h
&&&&&&&&dw&&&&&&offset&new_c0,h,0000h,offset&
new_c1,h,0000h
&&&&&&&&dw&&&&&&offset&new_c2,h,0000h,offset&
new_c3,h,0000h
&&&&&&&&dw&&&&&&offset&new_c4,h,0000h,offset&
new_c5,h,0000h
&&&&&&&&dw&&&&&&offset&new_c6,h,0000h,offset&
new_c7,h,0000h
&&&&&&&&dw&&&&&&offset&new_c8,h,0000h,offset&
new_c9,h,0000h
&&&&&&&&dw&&&&&&offset&new_ca,h,0000h,offset&
new_cb,h,0000h
&&&&&&&&dw&&&&&&offset&new_cc,h,0000h,offset&
new_cd,h,0000h
&&&&&&&&dw&&&&&&offset&new_ce,h,0000h,offset&
new_cf,h,0000h
&&&&&&&&dw&&&&&&offset&new_d0,h,0000h,offset&
new_d1,h,0000h
&&&&&&&&dw&&&&&&offset&new_d2,h,0000h,offset&
new_d3,h,0000h
&&&&&&&&dw&&&&&&offset&new_d4,h,0000h,offset&
new_d5,h,0000h
&&&&&&&&dw&&&&&&offset&new_d6,h,0000h,offset&
new_d7,h,0000h
&&&&&&&&dw&&&&&&offset&new_d8,h,0000h,offset&
new_d9,h,0000h
&&&&&&&&dw&&&&&&offset&new_da,h,0000h,offset&
new_db,h,0000h
&&&&&&&&dw&&&&&&offset&new_dc,h,0000h,offset&
new_dd,h,0000h
&&&&&&&&dw&&&&&&offset&new_de,h,0000h,offset&
new_df,h,0000h
&&&&&&&&dw&&&&&&offset&new_e0,h,0000h,offset&
new_e1,h,0000h
&&&&&&&&dw&&&&&&offset&new_e2,h,0000h,offset&
new_e3,h,0000h
&&&&&&&&dw&&&&&&offset&new_e4,h,0000h,offset&
new_e5,h,0000h
&&&&&&&&dw&&&&&&offset&new_e6,h,0000h,offset&
new_e7,h,0000h
&&&&&&&&dw&&&&&&offset&new_e8,h,0000h,offset&
new_e9,h,0000h
&&&&&&&&dw&&&&&&offset&new_ea,h,0000h,offset&
new_eb,h,0000h
&&&&&&&&dw&&&&&&offset&new_ec,h,0000h,offset&
new_ed,h,0000h
&&&&&&&&dw&&&&&&offset&new_ee,h,0000h,offset&
new_ef,h,0000h
&&&&&&&&dw&&&&&&offset&new_f0,h,0000h,offset&
new_f1,h,0000h
&&&&&&&&dw&&&&&&offset&new_f2,h,0000h,offset&
new_f3,h,0000h
&&&&&&&&dw&&&&&&offset&new_f4,h,0000h,offset&
new_f5,h,0000h
&&&&&&&&dw&&&&&&offset&new_f6,h,0000h,offset&
new_f7,h,0000h
&&&&&&&&dw&&&&&&offset&new_f8,h,0000h,offset&
new_f9,h,0000h
&&&&&&&&dw&&&&&&offset&new_fa,h,0000h,offset&
new_fb,h,0000h
&&&&&&&&dw&&&&&&offset&new_fc,h,0000h,offset&
new_fd,h,0000h
&&&&&&&&dw&&&&&&offset&new_fe,h,0000h,offset&
new_ff,h,0000h
&&&&&&&&push&&&&0000h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0001h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0002h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0003h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0004h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0005h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0006h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0007h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0008h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0009h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&000ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&000bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&000ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&000dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&000eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&000fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0010h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0011h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0012h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0013h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0014h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&cmp&&&&&ah,87h
&&&&&&&&jnz&&&&&L3
&&&&&&&&push&&&&bp
&&&&&&&&mov&&&&&bp,sp
&&&&&&&&add&&&&&bp,02h
&&&&&&&&push&&&&eax
&&&&&&&&push&&&&ebx
&&&&&&&&push&&&&ecx
&&&&&&&&push&&&&edx
&&&&&&&&push&&&&edi
&&&&&&&&push&&&&esi
&&&&&&&&mov&&&&&ebx,ss:[bp+14h]
&&&&&&&&shl&&&&&ebx,04h
&&&&&&&&and&&&&&esi,0000ffffh
&&&&&&&&add&&&&&ebx,esi
&&&&&&&&mov&&&&&ax,0010h
&&&&&&&&mov&&&&&ds,ax
&&&&&&&&mov&&&&&es,ax
&&&&&&&&mov&&&&&esi,ds:[ebx+12h]
&&&&&&&&mov&&&&&edi,ds:[ebx+1ah]
&&&&&&&&and&&&&&esi,00ffffffh
&&&&&&&&and&&&&&edi,00ffffffh
&&&&&&&&or&&&&&&cx,cx
&&&&&&&&jz&&&&&&L2
&&&&&&&&mov&&&&&ax,ds:[esi]
&&&&&&&&mov&&&&&es:[edi],ax
&&&&&&&&add&&&&&esi,02h
&&&&&&&&add&&&&&edi,02h
&&&&&&&&loop&&&&L1
&&&&&&&&pop&&&&&esi
&&&&&&&&pop&&&&&edi
&&&&&&&&pop&&&&&edx
&&&&&&&&pop&&&&&ecx
&&&&&&&&pop&&&&&ebx
&&&&&&&&pop&&&&&eax
&&&&&&&&pop&&&&&bp
&&&&&&&&iretd
&&&&&&&&push&&&&0015h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0016h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0017h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0018h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0019h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&001ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&001bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&001ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&001dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&001eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&001fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0020h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0021h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0022h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0023h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0024h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0025h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0026h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0027h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0028h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0029h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&002ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&002bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&002ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&002dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&002eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&002fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0030h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0031h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0032h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0033h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0034h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0035h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0036h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0037h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0038h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0039h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&003ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&003bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&003ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&003dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&003eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&003fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0040h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0041h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0042h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0043h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0044h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0045h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0046h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0047h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0048h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0049h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&004ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&004bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&004ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&004dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&004eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&004fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0050h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0051h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0052h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0053h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0054h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0055h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0056h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0057h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0058h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0059h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&005ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&005bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&005ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&005dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&005eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&005fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0060h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0061h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0062h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0063h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0064h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0065h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0066h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0067h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0068h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0069h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&006ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&006bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&006ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&006dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&006eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&006fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0070h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0071h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0072h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0073h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0074h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0075h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0076h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0077h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0078h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0079h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&007ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&007bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&007ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&007dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&007eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&007fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0080h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0081h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0082h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0083h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0084h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0085h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0086h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0087h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0088h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0089h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&008ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&008bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&008ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&008dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&008eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&008fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0090h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0091h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0092h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0093h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0094h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0095h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0096h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0097h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0098h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&0099h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&009ah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&009bh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&009ch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&009dh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&009eh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&009fh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a0h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a1h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a2h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a3h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a4h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a5h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a6h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a7h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a8h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00a9h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00aah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00abh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00ach
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00adh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00aeh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00afh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b0h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b1h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b2h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b3h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b4h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b5h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b6h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b7h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b8h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00b9h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00bah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00bbh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00bch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00bdh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00beh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00bfh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c0h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c1h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c2h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c3h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c4h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c5h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c6h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c7h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c8h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00c9h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00cah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00cbh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00cch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00cdh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00ceh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00cfh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d0h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d1h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d2h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d3h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d4h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d5h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d6h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d7h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d8h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00d9h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00dah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00dbh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00dch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00ddh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00deh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00dfh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e0h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e1h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e2h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e3h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e4h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e5h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e6h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e7h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e8h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00e9h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00eah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00ebh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00ech
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00edh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00eeh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00efh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f0h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f1h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f2h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f3h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f4h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f5h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f6h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f7h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f8h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00f9h
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00fah
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00fbh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00fch
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00fdh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00feh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&00ffh
&&&&&&&&jmp&&&&&int_emu
&&&&&&&&push&&&&bp
&&&&&&&&mov&&&&&bp,sp
&&&&&&&&add&&&&&bp,04h
&&&&&&&&push&&&&eax
&&&&&&&&push&&&&ebx
&&&&&&&mov&&&&&ax,0010h&&&&&&&&&&&&&&&&&;
&&&&&&&mov&&&&&ds,ax&&&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,ss:[bp+0ch]&&&&&&&&&&;
&&&&&&&&sub&&&&&ax,06h&&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ss:[bp+0ch],ax&&&&&&&&&&;
&&&&&&&&xor&&&&&eax,eax&&&&&&&&&&&&&&&&&;
&&&&&&&&xor&&&&&ebx,ebx&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,ss:[bp+10h]&&&&&&&&&&;V86&下&IRET&要返回的位址
&&&&&&&&shl&&&&&eax,04h&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&bx,ss:[bp+0ch]&&&&&&&&&&;
&&&&&&&&add&&&&&ebx,eax&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,ss:[bp+00h]&&&&&&&&&&;
&&&&&&&&mov&&&&&ds:[ebx],ax&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,ss:[bp+04h]&&&&&&&&&&;
&&&&&&&&mov&&&&&ds:[ebx+02h],ax&&&&&&&&&;
&&&&&&&&mov&&&&&ax,ss:[bp+08h]&&&&&&&&&&;
&&&&&&&&mov&&&&&ds:[ebx+04h],ax&&&&&&&&&;
&&&&&&&&nop
&&&&&&&&xor&&&&&ebx,ebx&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&bx,ss:[bp-02h]&&&&&&&&&&;
&&&&&&&&shl&&&&&ebx,02h&&&&&&&&&&&&&&&&&;
&&&&&&&&mov&&&&&ax,ds:[ebx]&&&&&&&&&&&&&;IRETD後跳到何处执行
&&&&&&&&mov&&&&&ss:[bp+00h],ax&&&&&&&&&&;(查&&的中断表)
&&&&&&&&mov&&&&&ax,ds:[ebx+02h]&&&&&&&&&;
&&&&&&&&mov&&&&&ss:[bp+04h],ax&&&&&&&&&&;
&&&&&&&&mov&&&&&eax,ss:[bp+08h]
&&&&&&&&or&&&&&&eax,h
&&&&&&&&and&&&&&eax,0fffffeffh
&&&&&&&&mov&&&&&ss:[bp+08h],eax
&&&&&&&&pop&&&&&ebx
&&&&&&&&pop&&&&&eax
&&&&&&&&pop&&&&&bp
&&&&&&&&add&&&&&sp,02h
&&&&&&&&iretd
set_base&:
&&&&&&&&mov&&&&&cs:[di+02h],ax
&&&&&&&&shr&&&&&eax,0010h
&&&&&&&&mov&&&&&cs:[di+04h],al
&&&&&&&&mov&&&&&cs:[di+07h],ah
&&&&&&&&ret
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&xor&&&&&ebx,ebx
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&shl&&&&&eax,04h
&&&&&&&&mov&&&&&bx,offset&gdttab
&&&&&&&&add&&&&&eax,ebx
&&&&&&&&mov&&&&&di,offset&gdtadds+02h
&&&&&&&&mov&&&&&cs:[di],eax&&&&&&&&&&&&&&&&&&&&&;设定&gdtadds
&&&&&&&&NOP
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&xor&&&&&ebx,ebx
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&shl&&&&&eax,04h
&&&&&&&&mov&&&&&di,offset&gdttab+08h
&&&&&&&&call&&&&set_base&&&&&&&&&&&&&&&&&&&&&&&&;设定&PRG&Seg&的&Base
&&&&&&&&NOP
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&xor&&&&&ebx,ebx
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&shl&&&&&eax,04h
&&&&&&&&mov&&&&&bx,offset&tssltr
&&&&&&&&add&&&&&eax,ebx
&&&&&&&&mov&&&&&di,offset&gdttab+18h
&&&&&&&&call&&&&set_base
&&&&&&&&NOP&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;设定&TSSltr&的&Base
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&xor&&&&&ebx,ebx
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&shl&&&&&eax,04h
&&&&&&&&mov&&&&&bx,offset&tssjmp
&&&&&&&&add&&&&&eax,ebx
&&&&&&&&mov&&&&&di,offset&gdttab+20h
&&&&&&&&call&&&&set_base
&&&&&&&&NOP&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;设定&TSSjmp&的&Base
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&xor&&&&&ebx,ebx
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&shl&&&&&eax,04h
&&&&&&&&mov&&&&&bx,offset&buffer1
&&&&&&&&add&&&&&eax,ebx
&&&&&&&&mov&&&&&di,offset&gdttab+28h
&&&&&&&&call&&&&set_base
&&&&&&&&NOP&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&;设定&Stack&的&Base
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&xor&&&&&ebx,ebx
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&shl&&&&&eax,04h
&&&&&&&&mov&&&&&bx,offset&idttab
&&&&&&&&add&&&&&eax,ebx
&&&&&&&&mov&&&&&di,offset&idtadds+02h
&&&&&&&&mov&&&&&cs:[di],eax&&&&&&&&&&&&&&&&&&&&&;设定&idtadds
&&&&&&&&NOP
&&&&&&&&cli
&&&&&&&&lgdt&&&&fword&ptr&cs:gdtadds
&&&&&&&&lidt&&&&fword&ptr&cs:idtadds
&&&&&&&&mov&&&&&eax,cr0
&&&&&&&&or&&&&&&al,01h
&&&&&&&&mov&&&&&cr0,eax
&&&&&&&&mov&&&&&bx,0018h
&&&&&&&&ltr&&&&&bx
&&&&&&&&db&&&&&&0eah,00h,00h,20h,00h&&&&&&&&&&&&;根据TSS表可知跳到enter_v86
enter_v86&:
&&&&&&&&mov&&&&&ax,0028h
&&&&&&&&mov&&&&&es,ax
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&mov&&&&&ax,code
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;GS
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;FS
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;DS
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;ES
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;SS
&&&&&&&&mov&&&&&ax,0f000h
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;ESP
&&&&&&&&mov&&&&&eax,h&&&;设定VM=1&&&&等级=3
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;Eflag
&&&&&&&&xor&&&&&eax,eax
&&&&&&&&mov&&&&&ax,code
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;CS
&&&&&&&&mov&&&&&ax,offset&return_dos
&&&&&&&&push&&&&eax&&&&&&&&&&&&&;EIP
&&&&&&&&clts&&&&&&&&&&&&&&&&&&&&;将&387&切换成&32&位元模式
&&&&&&&&iretd&&&&&&&&&&&&&&&&&&&;回到&V86&(共弹出24h&BYTE)
;-------------------------------------------------------------------------
;&&下面的程式便是回到&V86&继续执行的程式
;-------------------------------------------------------------------------
return_dos&:
&&&&&&&&sti
&&&&&&&&mov&&&&&ax,cs
&&&&&&&&mov&&&&&ds,ax
&&&&&&&&mov&&&&&dx,offset&next
&&&&&&&&add&&&&&dx,0200h
&&&&&&&&int&&&&&27h
start&&&endp
code&&&&ends
&&&&&&&&end&&&&&start
;-------------------------------------------------------------------------
&&&&如何侦测现在是在真实模式下或保护模式呢&,重点就在於&CR0&暂存器的&Bit0
是否为&'1'&,若为&'1'&则表示现在在保护模式&,反之则为真实模式&,不过如果要
执行&MOV&EAX,CR0&这个指令必需要在特权等级才能执行&,所以您要侦测这个位元的
话&,可以使用&SMSW&AX&,来读取&CR0&的低位元部份。
┌―――――――――――――――――――――――――――――――――――┐
│&&Soft&Bugger&软体蛀虫&90:90/2&&&&&&&&&&&&&&&&&&&&软体新技术的实行者&&│
│&&BBS:02-HR&&&&&&&&&&ID:Werong&Ho&&&&&&&&&&&&&&&--&软蛀&--&&│
└―――――――――――――――――――――――――――――――――――┘

我要回帖

更多关于 一吨等于多少千克 的文章

 

随机推荐