注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

疾风之狼博客

 
 
 

日志

 
 

NES指令机器码  

2007-04-14 12:56:06|  分类: NES资料 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

00 - BRK                        20 - JSR

        01 - ORA - (Indirect,X)         21 - AND - (Indirect,X)

        02 - Future Expansion           22 - Future Expansion

        03 - Future Expansion           23 - Future Expansion

        04 - Future Expansion           24 - BIT - Zero Page

        05 - ORA - Zero Page            25 - AND - Zero Page

        06 - ASL - Zero Page            26 - ROL - Zero Page

        07 - Future Expansion           27 - Future Expansion

        08 - PHP                        28 - PLP

        09 - ORA - Immediate            29 - AND - Immediate

        0A - ASL - Accumulator          2A - ROL - Accumulator

        0B - Future Expansion           2B - Future Expansion

        0C - Future Expansion           2C - BIT - Absolute

        0D - ORA - Absolute             2D - AND - Absolute

        0E - ASL - Absolute             2E - ROL - Absolute

        0F - Future Expansion           2F - Future Expansion

        10 - BPL                        30 - BMI

        11 - ORA - (Indirect),Y         31 - AND - (Indirect),Y

        12 - Future Expansion           32 - Future Expansion

        13 - Future Expansion           33 - Future Expansion

        14 - Future Expansion           34 - Future Expansion

        15 - ORA - Zero Page,X          35 - AND - Zero Page,X

        16 - ASL - Zero Page,X          36 - ROL - Zero Page,X

        17 - Future Expansion           37 - Future Expansion

        18 - CLC                        38 - SEC

        19 - ORA - Absolute,Y           39 - AND - Absolute,Y

        1A - Future Expansion           3A - Future Expansion

        1B - Future Expansion           3B - Future Expansion

        1C - Future Expansion           3C - Future Expansion

        1D - ORA - Absolute,X           3D - AND - Absolute,X

        1E - ASL - Absolute,X           3E - ROL - Absolute,X

        1F - Future Expansion           3F - Future Expansion

        40 - RTI                        60 - RTS

        41 - EOR - (Indirect,X)         61 - ADC - (Indirect,X)

        42 - Future Expansion           62 - Future Expansion

        43 - Future Expansion           63 - Future Expansion

        44 - Future Expansion           64 - Future Expansion

        45 - EOR - Zero Page            65 - ADC - Zero Page

        46 - LSR - Zero Page            66 - ROR - Zero Page

        47 - Future Expansion           67 - Future Expansion

        48 - PHA                        68 - PLA

        49 - EOR - Immediate            69 - ADC - Immediate

        4A - LSR - Accumulator          6A - ROR - Accumulator

        4B - Future Expansion           6B - Future Expansion

        4C - JMP - Absolute             6C - JMP - Indirect

        4D - EOR - Absolute             6D - ADC - Absolute

        4E - LSR - Absolute             6E - ROR - Absolute

        4F - Future Expansion           6F - Future Expansion

        50 - BVC                        70 - BVS

        51 - EOR - (Indirect),Y         71 - ADC - (Indirect),Y

        52 - Future Expansion           72 - Future Expansion

        53 - Future Expansion           73 - Future Expansion

        54 - Future Expansion           74 - Future Expansion

        55 - EOR - Zero Page,X          75 - ADC - Zero Page,X

        56 - LSR - Zero Page,X          76 - ROR - Zero Page,X

        57 - Future Expansion           77 - Future Expansion

        58 - CLI                        78 - SEI

        59 - EOR - Absolute,Y           79 - ADC - Absolute,Y

        5A - Future Expansion           7A - Future Expansion

        5B - Future Expansion           7B - Future Expansion

        5C - Future Expansion           7C - Future Expansion

        5D - EOR - Absolute,X           7D - ADC - Absolute,X

        5E - LSR - Absolute,X           7E - ROR - Absolute,X

        5F - Future Expansion           7F - Future Expansion

        80 - Future Expansion           A0 - LDY - Immediate

        81 - STA - (Indirect,X)         A1 - LDA - (Indirect,X)

        82 - Future Expansion           A2 - LDX - Immediate

        83 - Future Expansion           A3 - Future Expansion

        84 - STY - Zero Page            A4 - LDY - Zero Page

        85 - STA - Zero Page            A5 - LDA - Zero Page

        86 - STX - Zero Page            A6 - LDX - Zero Page

        87 - Future Expansion           A7 - Future Expansion

        88 - DEY                        A8 - TAY

        89 - Future Expansion           A9 - LDA - Immediate

        8A - TXA                        AA - TAX

        8B - Future Expansion           AB - Future Expansion

        8C - STY - Absolute             AC - LDY - Absolute

        8D - STA - Absolute             AD - LDA - Absolute

        8E - STX - Absolute             AE - LDX - Absolute

        8F - Future Expansion           AF - Future Expansion

        90 - BCC                        B0 - BCS

        91 - STA - (Indirect),Y         B1 - LDA - (Indirect),Y

        92 - Future Expansion           B2 - Future Expansion

        93 - Future Expansion           B3 - Future Expansion

        94 - STY - Zero Page,X          B4 - LDY - Zero Page,X

        95 - STA - Zero Page,X          BS - LDA - Zero Page,X

        96 - STX - Zero Page,Y          B6 - LDX - Zero Page,Y

        97 - Future Expansion           B7 - Future Expansion

        98 - TYA                        B8 - CLV

        99 - STA - Absolute,Y           B9 - LDA - Absolute,Y

        9A - TXS                        BA - TSX

        9B - Future Expansion           BB - Future Expansion

        9C - Future Expansion           BC - LDY - Absolute,X

        9D - STA - Absolute,X           BD - LDA - Absolute,X

        9E - Future Expansion           BE - LDX - Absolute,Y

        9F - Future Expansion           BF - Future Expansion

        C0 - Cpy - Immediate            E0 - CPX - Immediate

        C1 - CMP - (Indirect,X)         E1 - SBC - (Indirect,X)

        C2 - Future Expansion           E2 - Future Expansion

        C3 - Future Expansion           E3 - Future Expansion

        C4 - CPY - Zero Page            E4 - CPX - Zero Page

        C5 - CMP - Zero Page            E5 - SBC - Zero Page

        C6 - DEC - Zero Page            E6 - INC - Zero Page

        C7 - Future Expansion           E7 - Future Expansion

        C8 - INY                        E8 - INX

        C9 - CMP - Immediate            E9 - SBC - Immediate

        CA - DEX                        EA - NOP

        CB - Future Expansion           EB - Future Expansion

        CC - CPY - Absolute             EC - CPX - Absolute

        CD - CMP - Absolute             ED - SBC - Absolute

        CE - DEC - Absolute             EE - INC - Absolute

        CF - Future Expansion           EF - Future Expansion

        D0 - BNE                        F0 - BEQ

        D1 - CMP - (Indirect),Y         F1 - SBC - (Indirect),Y

        D2 - Future Expansion           F2 - Future Expansion

        D3 - Future Expansion           F3 - Future Expansion

        D4 - Future Expansion           F4 - Future Expansion

        D5 - CMP - Zero Page,X          F5 - SBC - Zero Page,X

        D6 - DEC - Zero Page,X          F6 - INC - Zero Page,X

        D7 - Future Expansion           F7 - Future Expansion

        D8 - CLD                        F8 - SED

        D9 - CMP - Absolute,Y           F9 - SBC - Absolute,Y

        DA - Future Expansion           FA - Future Expansion

        DB - Future Expansion           FB - Future Expansion

        DC - Future Expansion           FC - Future Expansion

        DD - CMP - Absolute,X           FD - SBC - Absolute,X

        DE - DEC - Absolute,X           FE - INC - Absolute,X

        DF - Future Expansion           FF - Future Expansion

指令寻址方式说明:


(Indirect,X): 先变址X后间址
(Indirect,Y): 后变址Y间址
Zero Page:    零页寻址
Immediate:    立即寻址
Accumulator:  累加器寻址
Absolute:     绝对寻址
Zero Page,X:  零页X变址
Zero Page,Y:  零页Y变址
Absolute,Y:   绝对Y变址
Absolute,X:   绝对X变址
Indirect:

置标志位指令:

1. CLC--清除进位标志         0→C   机器码 18     √

2. SEC--置进位标志C          1→C   机器码 38     √

3. CLD--清除十进制运算标志D  0→D   机器码 D8     ×

4. SED--置十进制运算标志D    1→D   机器码 F8     ×

5. CLV--清除溢出标志V        0→V   机器码 B8

6. CLI--清除中断禁止指令I    0→I   机器码 58     √

7. SEI--置位中断禁止标志I    1→I   机器码 78     √


 

  评论这张
 
阅读(183)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017