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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? f_amd_arm.s

?? realview22.rar
?? S
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
; ============================================================================
; F_AMD_ARM - Flash programming algorithm for AMD Flash 
;
; Library Name: Included into container .s file.
;
; Module Name:  F_AMD_ARM.S
; Module Descr: Flash programming for AMD Flash
; Creation Date:2003
; Author:       Nick Milner
;
; THIS INFORMATION IS PROPRIETARY TO
; ARM
; 110 Fulbourn Road
; Cambridge
; CB1 9NJ
; UK
;
; Revisions of F_AMD_ARM.S: (latest revision on top)
; #.#  Name  Date      Description
; ---  ----- --------  -----------------------------------------------------
;
; Implementation notes:
;
; GENERAL
; -------
;
; This file is to be included into another asm file which has the
; board/chip specific knowledge needed for initialization and the like.
; That is, this is the algorithm only.
;
; This file is based on information on AMD flash 
; of various forms. It is generalized to handle x8 and x16 accesses.
; It does not need to know the block sizes or positions as that is all
; passed in. 
;
; This uses the standard RVDEBUG implementation for an API. That
; means that registers are used for passing arguments and returning
; status. The registers used are based on the save/restore list. The
; first registers are assumed to be the ones to use for passing args.
; In the case of ARM, this is R0, R1, R2, R3, etc.
;
; REGISTER MODEL
; --------------
;
;       The register model for this routine is as follows:
;       R0:     Input: page of Flash (not used on ARM)
;               Output:status return to host
;       R1:     Input: base address of Flash block to operate on
;       R2/R3/R4/R5/R8/R9: Input: arguments
;               Typical meanings: R2=Counter
;       R6/R7:Scratch
;
; -----------------------------------------------------------------------------
; Description:
; ----------------------------------------------------------------------------
;                               NOTICE
;
; This code is proprietary and secret; the use of this source is
; restricted, and all rights are reserved.
;
; If reading for interest, enjoy.
;
; If maintaining, read comments carefully! There are some inter-depen-
; dencies and connectivities. Areas with particular connection are marked.
; There are some variable protocols that are not self evident: check all uses
; of variables before making big changes.
; ============================================================================
;

;************************************************************************/
;* DEFINE ENTRY POINTS                                                  */
;************************************************************************/

;       EXPORT          FLASH_init      // provided by asm that includes us
;       EXPORT          FLASH_erase_all // not available
        EXPORT          FLASH_erase
        EXPORT          FLASH_write_erase
        EXPORT          FLASH_write
        EXPORT          FLASH_validate
        EXPORT          FLASH_break
;       EXPORT          FLASH_term      // we do not need one

;************************************************************************/
;* DEFINE MACROS AND EQUATES                                            */
;************************************************************************/

        IF              WIDTH=1
          MACRO
           STORE        $p1,$p2,$p3
            IF "$p3" = ""
             strb       $p1,$p2
            ELSE
             strb       $p1,$p2,$p3
            ENDIF
          MEND
          MACRO
           LOAD         $p1,$p2,$p3
            IF "$p3" = ""
             ldrb       $p1,$p2
            ELSE
             ldrb       $p1,$p2,$p3
            ENDIF
          MEND
        ENDIF

        IF              WIDTH=2
          MACRO
           STORE        $p1,$p2,$p3=0
            IF "$p3" = ""
             strh       $p1,$p2
            ELSE
             strh       $p1,$p2,$p3
            ENDIF
          MEND
          MACRO
           LOAD         $p1,$p2,$p3=0
            IF "$p3" = ""
             ldrh       $p1,$p2
            ELSE
             ldrh       $p1,$p2,$p3
            ENDIF
          MEND
        ENDIF

        IF              WIDTH=4
          MACRO
           STORE        $p1,$p2,$p3=0
            IF "$p3" = ""
             str        $p1,$p2
            ELSE
             str        $p1,$p2,$p3
            ENDIF
          MEND
          MACRO
           LOAD         $p1,$p2,$p3=0
            IF "$p3" = ""
             ldr        $p1,$p2
            ELSE
             ldr        $p1,$p2,$p3
            ENDIF
          MEND
        ENDIF

        IF :DEF: P_WIDTH
          IF P_WIDTH > 1
            MACRO
              EXPAND    $p1
                add $p1, $p1, $p1, lsl #16
                IF P_WIDTH=4
                  add $p1, $p1, $p1, lsl #8
                ENDIF
            MEND
          ENDIF
        ELSE
          MACRO
            EXPAND      $p1
          MEND
        ENDIF

;************************************************************************/
;* THE GLOBAL FUNCTIONS (EXPORTED PUBLICLY)                             */
;************************************************************************/
 
;* -----------------------------------------------------------------------
;  FLASH_erase - erase a Flash sector
;
;  Notes:
;     - this erases a Flash sector on request from host. The host has
;       the information on which end has the boot block and its size,
;       so we do not need to worry about that. 
;     - we may be asked to erase one or a set of blocks, but all will
;       have the same size.
;
;  Input/Output:
;     - In: R1=Base of 1st Flash Block to erase
;           R0=Page of Flash (no meaning for ARM)
;           R2=Count of blocks to do
;           R3=Size of blocks (for iterate)
;     - Out:R0=status code (0=OK, else error)
;     - Scratch: R6,R7
;  ----------------------------------------------------------------------- */

FLASH_erase
        bl      erase_block     ; erase block in R1

        subs    R2,R2,#1        ; count down
        addne   R1,R1,R4        ; setup for next block if more
        bne     FLASH_erase     ; more to do
        b       flash_exit      ; Stop routine on breakpoint

;* -----------------------------------------------------------------------
;  FLASH_write - write to a Flash sector
;  FLASH_write_erase - erase then write
;
;  Notes:
;     - this writes a buffer into a flash sector. The caller is responsible
;       for pre-erasing if needed.
;     - note: this is writing half-words and not bytes
;     - the host knows about block sizes and all, and passes in the needed
;       info.
;     - if we are writing into a later part of the block, this will be
;       handled by the host.
;
;  Input/Output:
;     - In: R1=Base of Flash Block to write
;           R0=Page of Flash (no meaning for ARM)
;           R2=Count of bytes to copy
;           R4=Offset in block to copy into (from base)
;           R5=Address of buffer to copy from
;           R8=Page of buffer (no meaning for ARM)
;           R9=0 if no verify, else same value as R2 (count)
;     - Out:R0=status code (0=OK, else error)
;     - Scratch: R6,R7
;  ----------------------------------------------------------------------- */


FLASH_write_erase
        bl      erase_block                     ; erase block in R1
FLASH_write

        add     R4,R4,R1                        ; compute start address

        mov     r0,r1,LSR#13
        mov     r0,r0,LSL#13                    ; R0 now has sector base with
                                                                                ; use Unlock bypass to shorten program sequence

                
        ldr     R7,=0x555                       ; address msg 1
        add     R7,R0,R7,LSL#2                          
        mov     R6,#0xAA                        ; data msg 1
        EXPAND  R6
        STORE   R6,[R7]                         ; send command
        
        ldr     R7,=0x2AA                       ; address msg 2
        add     R7,R0,R7,LSL#2                          
        mov     R6,#0x55                        ; data msg 2
        EXPAND  R6                                              
        STORE   R6,[R7]                         ; send command

        ldr     R7,=0x555                       ; address msg 3
        add     R7,R0,R7,LSL#2                          
        mov     R6,#0x20                        ; data msg 3
        EXPAND  R6
        STORE   R6,[R7]                         ; send command

write_loop

        LOAD    R7,[R5],#WIDTH                  ; load first value from buffer then inc

        mov     R6,#0xA0                        ; First message for unlock bypass program
        EXPAND  R6
        STORE   R6,[R4]                         ; send command
        
        STORE   R7,[R4],#WIDTH                  ; write value desired then inc

        bl      wait_for_ready_program  ; wait for Flash to finish write
                ;mov     r0,#0x0
        subs    R2,R2,#WIDTH                    ; decrement count, more?

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本午夜精品一区二区三区电影 | 岛国av在线一区| 乱一区二区av| 老司机午夜精品99久久| 开心九九激情九九欧美日韩精美视频电影| 亚洲成人www| 丝袜诱惑亚洲看片| 天天免费综合色| 日本视频一区二区三区| 麻豆视频一区二区| 国产一区二区网址| 丰满亚洲少妇av| 成人黄色免费短视频| 99久久国产综合精品色伊| 91蝌蚪porny九色| 一本一道久久a久久精品 | 久久久精品蜜桃| 国产偷v国产偷v亚洲高清| 国产亚洲一区二区在线观看| 久久精品欧美一区二区三区麻豆 | 麻豆国产欧美日韩综合精品二区 | 91精品国产综合久久小美女| 91麻豆精品久久久久蜜臀| 欧美成人精品3d动漫h| 国产日韩一级二级三级| 国产亚洲成年网址在线观看| 国产精品久久久久精k8 | 天天亚洲美女在线视频| 麻豆成人免费电影| 国产成人av电影在线| 91丝袜呻吟高潮美腿白嫩在线观看| 91色在线porny| 91.麻豆视频| 久久久亚洲精品石原莉奈 | 国产成人福利片| 91丨国产丨九色丨pron| 欧美日韩国产色站一区二区三区| 日韩欧美中文字幕精品| 国产亲近乱来精品视频| 亚洲精品中文在线影院| 日韩电影在线观看一区| 成人一区二区三区视频| 欧美日韩在线一区二区| 久久品道一品道久久精品| 亚洲激情自拍偷拍| 精品一区二区影视| 色呦呦一区二区三区| 精品国产一区二区精华| 亚洲欧洲综合另类| 老司机免费视频一区二区三区| 成人av动漫在线| 91麻豆精品国产91| 中文成人av在线| 爽好多水快深点欧美视频| 成人亚洲一区二区一| 欧美日韩一级视频| 国产精品久久影院| 开心九九激情九九欧美日韩精美视频电影 | 中文字幕一区二区三区在线播放 | 国产原创一区二区| 91成人免费在线视频| 久久久久国色av免费看影院| 亚洲综合激情网| 国产a久久麻豆| 欧美一区二区三区爱爱| 亚洲色图在线播放| 国产精品88888| 欧美一级高清片| 一区二区高清免费观看影视大全| 精品亚洲porn| 精品视频在线视频| 亚洲欧美日韩人成在线播放| 国产在线播精品第三| 在线成人免费观看| 亚洲欧美激情小说另类| 懂色中文一区二区在线播放| 91精品国产综合久久久久久久| 亚洲色欲色欲www在线观看| 国产精品69毛片高清亚洲| 日韩欧美三级在线| 视频在线观看一区| 欧美性受xxxx| 亚洲男人的天堂在线观看| 国产成人亚洲综合色影视| 日韩欧美国产午夜精品| 日韩高清一区二区| 欧美精品色一区二区三区| 亚洲精品国产视频| 91啦中文在线观看| 国产精品久久久久影院色老大| 狠狠色综合日日| 日韩精品一区在线观看| 三级亚洲高清视频| 精品1区2区3区| 亚洲观看高清完整版在线观看| 93久久精品日日躁夜夜躁欧美| 国产视频在线观看一区二区三区| 国产一二三精品| 26uuu亚洲| 国产精一品亚洲二区在线视频| 日韩欧美国产三级电影视频| 蜜桃av一区二区| 精品女同一区二区| 经典三级在线一区| 久久久久久久久久久99999| 国产一区三区三区| 久久婷婷国产综合国色天香| 国产一区二区中文字幕| 久久久综合视频| 国产99精品国产| 国产精品久久夜| 色综合一个色综合| 亚洲国产三级在线| 欧美喷潮久久久xxxxx| 日韩高清一级片| 日韩精品中文字幕一区二区三区| 久久国产精品72免费观看| 26uuu欧美日本| 成人高清视频在线| 亚洲乱码国产乱码精品精的特点 | 精品一区二区国语对白| 久久美女高清视频 | 亚洲国产高清在线观看视频| 大陆成人av片| 亚洲综合色婷婷| 91精品综合久久久久久| 狂野欧美性猛交blacked| 国产日产欧美一区| 一本色道综合亚洲| 午夜精品一区二区三区免费视频 | 91精品欧美福利在线观看| 久久成人免费电影| 国产精品热久久久久夜色精品三区| 99视频在线精品| 亚洲电影第三页| www亚洲一区| 色屁屁一区二区| 三级久久三级久久久| 国产亚洲一区字幕| 在线日韩一区二区| 精油按摩中文字幕久久| 国产精品美女久久久久久久网站| 欧美写真视频网站| 国产真实乱偷精品视频免| 国产精品福利影院| 欧美精品亚洲二区| 处破女av一区二区| 午夜精品在线视频一区| 国产欧美视频一区二区三区| 91在线观看地址| 久久国产精品色婷婷| 亚洲精品国产精华液| 欧美精品一区二区三区很污很色的 | 中文字幕在线免费不卡| 欧美日韩高清一区二区三区| 国产激情偷乱视频一区二区三区| 夜夜嗨av一区二区三区网页| 精品国产精品网麻豆系列| 91免费版pro下载短视频| 男女男精品视频网| 亚洲日本一区二区| 久久伊人中文字幕| 欧美日韩国产片| 菠萝蜜视频在线观看一区| 日本不卡高清视频| 一区二区三区四区不卡在线| 久久久久国产一区二区三区四区| 欧美日韩一区小说| 99精品视频中文字幕| 久久99精品国产麻豆婷婷| 亚洲综合色成人| 中文字幕一区二区三中文字幕| 日韩一区二区在线观看视频播放| 色婷婷香蕉在线一区二区| 国产成人免费9x9x人网站视频| 亚洲二区在线观看| 日韩伦理av电影| 精品处破学生在线二十三| 5858s免费视频成人| 色哦色哦哦色天天综合| 国产1区2区3区精品美女| 老司机免费视频一区二区| 亚洲国产视频在线| 亚洲视频小说图片| 国产精品久久久久久久裸模| 久久亚洲欧美国产精品乐播| 日韩午夜电影在线观看| 精品视频一区二区不卡| 日本电影欧美片| 91色|porny| proumb性欧美在线观看| 国产成人8x视频一区二区| 精品亚洲成a人在线观看| 奇米精品一区二区三区四区| 午夜久久久久久| 午夜精品123| 五月婷婷久久综合| 亚洲成av人片在线| 天天综合天天综合色| 亚洲一区二区欧美日韩|