亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dabort.s

?? GEC2410開發(fā)板嵌如入式操作系統(tǒng)WinCE5.0
?? S
?? 第 1 頁 / 共 5 頁
字號:
;
; * Set the M, P, U and W bits correctly in R0 (1/0/1/1 for POP,
;   1/1/0/1 for PUSH).
; * Set R1 to the correct base register number (R13).

                BIC     R3, R0, #0xFE00
                MOV     R1, #(0xD :SHL: ARM_Rn_pos)
                TST     R0, #Thumb_L_bit
                ORREQ   R0, R0, #ARM_M_bit + ARM_P_bit + ARM_W_bit
                ORRNE   R0, R0, #ARM_M_bit + ARM_U_bit + ARM_W_bit
                B       ARM_LDM_STM_OK

; Analysis of Thumb PC-based LDM/STM instructions
; -----------------------------------------------

Thumb_LDM_STM

; Checks for errors:

; * Empty register mask - register mask gets calculated at the same
;   time and put in R3.

                BICS    R3, R0, #0xFF00
                MOVEQ   R6, #DABORT_ERROR_LDMSTM_EMPTY
                BEQ     CallOSHandlerWithError

; * Writeback and load of the same register. We've definitely got
;   writeback, so it's just a question of whether the base register
;   appears in the register list. First, get the base register number
;   into R1 and put it into ARM base register position (where it is
;   needed later anyway). Then check whether it appears in the
;   register list.

                AND     R1, R0, #Thumb_unusual_reg_mask
                MOV     R1, R1, LSL #(ARM_Rn_pos - Thumb_unusual_reg_pos)

                MOV     R7, R1, LSR #ARM_Rn_pos
                MOV     R7, R3, LSR R7
                TST     R7, #1
                MOVNE   R6, #DABORT_ERROR_LOAD_WB
                BNE     CallOSHandlerWithError

; We will branch into the ARM LDM/STM code at the point where all
; error checks have been performed. The only thing we still need to do
; is set the M, P, U and W bits correctly in R0 (1/0/1/1 for both LDM
; and STM).

                ORR     R0, R0, #ARM_M_bit + ARM_U_bit + ARM_W_bit
                B       ARM_LDM_STM_OK

; Analysis of Thumb LDRx/STRx with register offset
; ------------------------------------------------
;
; R0 bits should be M=0, P=1, U=1, W=0. R1 and R3 are right; R2 value
; should be obtained from the Thumb instruction's Rm field. There are
; no problems with an index register of R15 or with writeback with
; index = base, since the Thumb instruction doesn't permit a "high"
; index register or base register writeback.

Thumb_RegOffset
                ORR     R0, R0, #ARM_P_bit + ARM_U_bit
                AND     R2, R0, #Thumb_usual_Rm_mask
                LDR     R2, [R13, R2, LSR #(Thumb_usual_Rm_pos - 2)]
                B       RegisterAdjust

; Analysis of Thumb SP-based LDR/STR
; ----------------------------------
;
; R0 bits should be M=0, P=1, U=1, W=0. R1 should indicate R13. R3
; should be calculated from the variant Rd position used for this
; instruction. Finally, the offset is extracted from the instruction
; and shifted into "times 4" position.

Thumb_SPbased
                ORR     R0, R0, #ARM_P_bit + ARM_U_bit
                MOV     R1, #(0xD :SHL: ARM_Rn_pos)
                AND     R3, R0, #Thumb_unusual_reg_mask
                MOV     R3, R3, LSL #(ARM_Rd_pos - Thumb_unusual_reg_pos)
                AND     R2, R0, #Thumb_Imm8_mask
                MOV     R2, R2, LSL #(2 - Thumb_Imm8_pos)
                B       RegisterAdjust

; Analysis of Thumb PC-based LDR
; ------------------------------

Thumb_PCbased

; Check instruction is right (not the data processing instructions
; with the same major opcode, which look like PC-based STRs).

                TST     R0, #Thumb_L_bit
                BEQ     ARM_Should_Not_Happen

; R0 bits should be M=0, P=1, U=1, W=0. R1 should indicate R15; the
; "RegisterAdjust" code below will apply the appropriate
; Thumb-specific modifications to it. R3 should be calculated from the
; variant Rd position used for this instruction. Finally, the offset
; is extracted from the instruction and shifted into "times 4"
; position.

                ORR     R0, R0, #ARM_P_bit + ARM_U_bit
                MOV     R1, #(0xF :SHL: ARM_Rn_pos)
                AND     R3, R0, #Thumb_unusual_reg_mask
                MOV     R3, R3, LSL #(ARM_Rd_pos - Thumb_unusual_reg_pos)
                AND     R2, R0, #Thumb_Imm8_mask
                MOV     R2, R2, LSL #(2 - Thumb_Imm8_pos)
                B       RegisterAdjust

; Analysis of Thumb LDR/STR with immediate offset
; -----------------------------------------------
;
; R1 and R3 values are already correct; R0 bits should be M=0, P=1,
; U=1, W=0; offset needs to be extracted from the instruction and
; shifted into "times 4" position.

Thumb_LDR_STR
                ORR     R0, R0, #ARM_P_bit + ARM_U_bit
                AND     R2, R0, #Thumb_Imm5_mask
                MOV     R2, R2, LSR #(Thumb_Imm5_pos - 2)
                B       RegisterAdjust

; Analysis of Thumb LDRB/STRB with immediate offset
; -------------------------------------------------
;
; R1 and R3 values are already correct; R0 bits should be M=0, P=1,
; U=1, W=0; offset needs to be extracted from the instruction and
; shifted into "times 1" position.

Thumb_LDRB_STRB
                ORR     R0, R0, #ARM_P_bit + ARM_U_bit
                AND     R2, R0, #Thumb_Imm5_mask
                MOV     R2, R2, LSR #(Thumb_Imm5_pos - 0)
                B       RegisterAdjust

; Analysis of Thumb LDRH/STRH with immediate offset
; -------------------------------------------------
;
; R1 and R3 values are already correct; R0 bits should be M=0, P=1,
; U=1, W=0; offset needs to be extracted from the instruction and
; shifted into "times 2" position.

Thumb_LDRH_STRH
                ORR     R0, R0, #ARM_P_bit + ARM_U_bit
                AND     R2, R0, #Thumb_Imm5_mask
                MOV     R2, R2, LSR #(Thumb_Imm5_pos - 1)

; Fall through to RegisterAdjust.

          ] ; of SuptThumb section

RegisterAdjust

; *** Live register values at this point are:
;     R0:  M bit (bit 27) indicating multiple vs. single transfer.
;          P bit (bit 24) indicating pre- vs. post-indexing.
;          U bit (bit 23) indicating whether indexing is up or down.
;          W bit (bit 21) indicating whether base register writeback
;            is required.
;          L bit (bit 20) indicating whether a load or a store, at
;            least when writeback is occurring.
;     R1:  Number of base register, still in ARM instruction position.
;     R2:  Offset value.
;     R3:  Number of destination register, still in ARM instruction
;          position.
;     R4:  Pointer to aborting instruction
;     R5:  SPSR value
;     R6:  Error code
;     R8:  Abort model (if relevant)
;     R13: Stack pointer (pointing to register dump)
;
; This code is shared between all instructions except LDM/STMs and
; LDCs/STCs. First, check for the "Load and write back to same
; register" case.

                CMP     R3, R1, LSR #(ARM_Rn_pos - ARM_Rd_pos)
                BNE     RegisterAdjust2
                TST     R0, #ARM_W_bit
                TSTNE   R0, #ARM_L_bit
                MOVNE   R6, #DABORT_ERROR_LOAD_WB
                BNE     CallOSHandlerWithError

RegisterAdjust2

; *** Live register values at this point are:
;     R0:  M bit (bit 27) indicating multiple vs. single transfer.
;          P bit (bit 24) indicating pre- vs. post-indexing.
;          U bit (bit 23) indicating whether indexing is up or down.
;          W bit (bit 21) indicating whether base register writeback
;            is required.
;     R1:  Number of base register, still in ARM instruction position.
;     R2:  Offset value.
;     R4:  Pointer to aborting instruction
;     R5:  SPSR value
;     R6:  Error code
;     R8:  Abort model (if relevant)
;     R13: Stack pointer (pointing to register dump)
;
; If we're required to produce the transfer address, calculate the
; offset from the base address (after it has been corrected) to the
; transfer address.

          [ PassXferAddr
                TST     R0, #ARM_U_bit
                MOVNE   R3, R2
                RSBEQ   R3, R2, #0
                TST     R0, #ARM_P_bit
                MOVEQ   R3, #0
          ]

RegisterAdjust3

; *** Live register values at this point are:
;     R0:  M bit (bit 27) indicating multiple vs. single transfer.
;          P bit (bit 24) indicating pre- vs. post-indexing.
;          U bit (bit 23) indicating whether indexing is up or down.
;          W bit (bit 21) indicating whether base register writeback
;            is required.
;     R1:  Number of base register, still in ARM instruction position.
;     R2:  Offset value.
;     R3:  Transfer address - base address (if "PassXferAddr"
;          specified).
;     R4:  Pointer to aborting instruction
;     R5:  SPSR value
;     R6:  Error code
;     R8:  Abort model (if relevant)
;     R13: Stack pointer (pointing to register dump)
;
; There is one more error to check for, namely use of a base register
; of R15 with writeback. We will get hold of the base register value
; at the same time, as it happens to be convenient to use the R15 test
; for that purpose as well.

                CMP     R1, #0xF :SHL: ARM_Rn_pos
                LDRNE   R7, [R13, R1, LSR #(ARM_Rn_pos - 2)]
                BNE     RegisterAdjust4

                TST     R0, #ARM_W_bit
                MOVNE   R6, #DABORT_ERROR_R15_WB
                BNE     CallOSHandlerWithError

; Add correct offset to instruction pointer to get the right R15 base
; value. For Thumb, the only PC-based load/store instruction also
; clears bit 1.

                ADD     R7, R4, #8
        [ SuptThumb
                TST     R5, #T_bit
                ADDNE   R7, R4, #4
                BICNE   R7, R7, #2
        ]

RegisterAdjust4

; *** Live register values at this point are:
;     R0:  M bit (bit 27) indicating multiple vs. single transfer.
;          U bit (bit 23) indicating whether indexing is up or down.
;          W bit (bit 21) indicating whether base register writeback
;            is required.
;     R1:  Number of base register, still in ARM instruction position.
;     R2:  Offset value.
;     R3:  Transfer address - base address (if "PassXferAddr"
;          specified).
;     R4:  Pointer to aborting instruction
;     R5:  SPSR value
;     R6:  Error code
;     R7:  Value of base register
;     R8:  Abort model (if relevant)
;     R13: Stack pointer (pointing to register dump)
;
; We're finally ready to do base register restoration if required. The
; rules here are:
;
; * If we've got just a single abort model, follow its dictates about
;   base register restoration.
;
; * Otherwise, use the appropriate bit of the abort model number in R8.

          [ AbortModelCount = 1
            [ BaseRestored
                ; Fall through (next chunk of code won't be assembled).
            ]
            [ BaseUpdated
                ; Fall through
            ]
            [ EarlyAbort
                TST     R0, #ARM_M_bit
                BEQ     CallOSHandlerNoError
            ]
          |
                TST     R0, #ARM_M_bit
                MOVEQ   R8, R8, LSR #1
                TST     R8, #1
                BEQ     CallOSHandlerNoError
          ]

          [ :LNOT:((AbortModelCount = 1) :LAND: BaseRestored)

; If we get here, we need to restore the base register value
; appropriately, provided it has actually been written back.

                TST     R0, #ARM_W_bit
                BEQ     CallOSHandlerNoError

                TST     R0, #ARM_U_bit
                ADDEQ   R7, R7, R2      ;Add if originally subtracted
                SUBNE   R7, R7, R2      ; and vice versa
                STR     R7, [R13, R1, LSR #(ARM_Rn_pos - 2)]

          ]

CallOSHandlerNoError

          [ PassXferAddr

; Produce transfer address from corrected base address and previously
; calculated difference.

                ADD     R7, R7, R3

          ]

        ] ; of complex condition saying whether to analyse instruction

CallOSHandlerWithError

; OS-specific handler call
; ========================
;
; *** Live register values at this point are:
;     R4:  Pointer to aborting instruction
;     R5:  SPSR value
;     R6:  Error code
;     R7:  Transfer address (if wanted & relevant; otherwise junk)
;     R13: Stack pointer (pointing to register dump)
;
; Switch into the correct mode (if necessary) - but first we may need
; to put the register dump pointer somewhere safe. R8 is a suitable
; callee-save register.

        [ PassRegDumpAddr :LOR: (HandlerCallMode <> "Abort")
                MOV     R8, R13
        ]

        [ HandlerCallMode <> "Abort"
                MRS     R3, CPSR
                BIC     R3, R3, #Mode_FullMask
                ORR     R3, R3, #Mode_Callee
                MSR     CPSR$all_fields, R3
        ]

; Marshall the arguments required. This uses some rather messy
; conditional assembly, the idea of which is to marshall the arguments
; in reverse order in R0-R3, dumping partial lists to the stack. First
; count the arguments.

                GBLA    ArgCount
ArgCount        SETA    1
        [ PassSPSR
ArgCount        SETA    ArgCount+1
        ]
        [ PassInstrAddr
ArgCount        SETA    ArgCount+1
        ]
        [ PassRegDumpAddr
ArgCount        SETA    ArgCount+1
        ]
        [ PassXferAddr
ArgCount        SETA    ArgCount+1
        ]

; Now ArgVar counts down through the arguments; ArgVar2 determines
; which register each should go to; ArgString contains the arguments
; not yet on the stack, each preceded by a comma (the first comma
; needs stripping before using ArgString in an STMFD instruction.

                GBLA    ArgVar
ArgVar          SETA    ArgCount
                GBLA    ArgVar2
                GBLS    ArgString
ArgString       SETS    ""

        [ PassXferAddr
ArgVar          SETA    ArgVar-1
ArgVar2         SETA    ArgVar :AND: 3
ArgString       SETS    ",R$ArgVar2" :CC: ArgString
                MOV     R$ArgVar2, R7
          [ ArgVar2 = 0 :LAND: ArgVar <> 0
ArgString       SETS    ArgString :RIGHT: (:LEN:ArgString - 1)
                STMFD   R13!,{$ArgString}
ArgString       SETS    ""
          ]
        ]

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天堂久久久久久久| 不卡的av在线| 成人精品视频一区二区三区尤物| av电影天堂一区二区在线| 欧美三级日韩三级| 精品国产成人系列| 综合中文字幕亚洲| 久久电影网站中文字幕| 成人免费视频播放| 欧美日韩国产123区| 久久精品一区八戒影视| 一区二区成人在线| 国产一区二区三区免费| 一本大道综合伊人精品热热| 精品乱人伦小说| 亚洲视频中文字幕| 乱一区二区av| 91国产福利在线| 久久综合色一综合色88| 一区二区三区免费在线观看| 国产在线不卡视频| 欧美三级视频在线观看| 国产日产精品1区| 偷窥国产亚洲免费视频| 成人黄色软件下载| 欧美tickle裸体挠脚心vk| 亚洲另类中文字| 国产精品资源站在线| 欧美精品三级在线观看| 亚洲天堂久久久久久久| 国产精品一卡二卡在线观看| 欧美日韩和欧美的一区二区| 国产精品美女久久久久久久久久久| 天天亚洲美女在线视频| 91麻豆产精品久久久久久| 26uuu色噜噜精品一区| 亚洲一区二区三区在线播放| 成人听书哪个软件好| 亚洲综合视频网| 国产精品996| 欧美电影免费观看高清完整版在线| 亚洲精品成人在线| 成人免费观看视频| 亚洲精品在线免费观看视频| 日本成人在线一区| 欧美亚洲愉拍一区二区| 中文字幕一区二区三| 高清不卡在线观看| 26uuu另类欧美| 美日韩一区二区| 欧美色爱综合网| 一区二区视频免费在线观看| 成人午夜碰碰视频| 亚洲国产高清在线观看视频| 国产一区二区免费看| 欧美大片国产精品| 蜜臀a∨国产成人精品| 在线不卡a资源高清| 亚洲国产综合色| 欧美综合一区二区| 一区二区三区欧美激情| 91免费观看在线| 成人欧美一区二区三区白人 | 欧美亚洲综合色| 亚洲欧美一区二区三区久本道91 | 亚洲视频狠狠干| 成人免费视频视频在线观看免费| 久久众筹精品私拍模特| 久久精品72免费观看| 日韩一区二区不卡| 麻豆国产精品777777在线| 欧美一级片在线观看| 日本aⅴ免费视频一区二区三区| 欧美美女网站色| 青青草精品视频| 欧美刺激午夜性久久久久久久| 欧美a一区二区| 日韩精品综合一本久道在线视频| 日本视频一区二区| 日韩欧美一二三区| 国产一区二区三区美女| 久久久精品tv| 成人v精品蜜桃久久一区| 国产精品美女一区二区三区| 97精品超碰一区二区三区| 亚洲精品亚洲人成人网在线播放| 91国产免费观看| 日韩电影在线一区二区| 精品国产精品网麻豆系列| 高清不卡在线观看av| 亚洲视频在线一区| 欧美日韩国产免费一区二区| 热久久一区二区| 久久久噜噜噜久久中文字幕色伊伊 | 国产精品一区二区三区99| 国产色综合久久| 99re成人在线| 国产iv一区二区三区| 国产精品二区一区二区aⅴ污介绍| 91在线一区二区| 亚洲成av人片一区二区| 精品国产乱子伦一区| 成人小视频免费观看| 亚洲最新视频在线观看| 欧美一级日韩一级| 成人三级伦理片| 亚洲国产精品麻豆| 精品免费国产二区三区| av不卡一区二区三区| 亚洲第一av色| 国产午夜亚洲精品理论片色戒 | 亚洲精品欧美激情| 欧美一级日韩一级| 不卡的av在线播放| 日本欧美一区二区| 国产精品久久久久9999吃药| 欧美日韩一卡二卡| 粉嫩久久99精品久久久久久夜| 一卡二卡三卡日韩欧美| 日韩女同互慰一区二区| 99久久精品情趣| 麻豆成人免费电影| 亚洲日穴在线视频| 精品福利在线导航| 91激情五月电影| 国产毛片精品一区| 亚洲成av人片在www色猫咪| 日本一区二区三区视频视频| 欧美日韩国产免费一区二区| 国产成人免费高清| 午夜精品久久久久久久99水蜜桃| 国产人成一区二区三区影院| 欧洲一区二区三区在线| 国产精品一二三四区| 亚洲成av人片观看| 一区精品在线播放| 2020国产精品自拍| 欧美日韩国产色站一区二区三区| 国产sm精品调教视频网站| 欧美aaaaa成人免费观看视频| 亚洲另类在线一区| 国产亚洲精品超碰| 日韩美女视频在线| 欧美综合一区二区三区| 成人午夜免费av| 国内成人自拍视频| 免费在线观看一区二区三区| 亚洲狼人国产精品| 中文字幕精品综合| 亚洲精品在线观看视频| 91精品国产综合久久精品app| 91麻豆免费看| 成人av免费网站| 国产精品亚洲第一区在线暖暖韩国| 天堂在线亚洲视频| 亚洲综合在线视频| 成人欧美一区二区三区1314| 国产偷国产偷精品高清尤物| 日韩一区二区精品在线观看| 欧美日韩午夜在线| 91久久人澡人人添人人爽欧美| 成人综合婷婷国产精品久久免费| 麻豆国产精品777777在线| 日韩精品1区2区3区| 亚洲一区二区三区小说| 亚洲欧美另类综合偷拍| 国产精品人人做人人爽人人添| 精品国产91亚洲一区二区三区婷婷| 欧美日韩精品欧美日韩精品| 欧美在线观看视频一区二区| 99久久综合99久久综合网站| 粉嫩av亚洲一区二区图片| 国产一区在线看| 精品一区免费av| 91精品午夜视频| 秋霞成人午夜伦在线观看| 成人av在线播放网址| 国产女人水真多18毛片18精品视频| 久久91精品久久久久久秒播| 欧美精品久久一区二区三区| 亚洲激情在线激情| 99久久99久久久精品齐齐| 国产精品传媒在线| 91国在线观看| 无码av免费一区二区三区试看| 91麻豆精品国产91| 另类小说图片综合网| 国产无人区一区二区三区| 国产成人精品免费一区二区| 国产欧美一区二区在线观看| 97久久超碰精品国产| 亚洲自拍偷拍麻豆| 欧美大片拔萝卜| 国产成人亚洲精品青草天美| 日本亚洲欧美天堂免费| 欧美日韩1234| 欧洲在线/亚洲| 91网站最新网址| 国产盗摄一区二区| 欧美a一区二区|