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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? boot5402.asm

?? dsp ti的5402的boot程序
?? ASM
?? 第 1 頁 / 共 3 頁
字號:
                                ;The dummy words are read to maintain
                                ; hex converter compatibility with
                                ; the 548/549

        call    DBsreadA        ; call SP double read byte from DRR
        stl     a, @temp0       ; save DUMMY WORD value in temp0
        call    DBsreadA        ; call SP double read byte from DRR
        stl     a, @temp1       ; save DUMMY WORD value in temp1
        call    DBsreadA        ; call SP double read byte from DRR
        stl     a, @temp2       ; save DUMMY WORD value in temp2
        call    DBsreadA        ; call SP double read byte from DRR
        stl     a, @temp3       ; save DUMMY WORD value in temp3

        call    DBsreadA        ; call SP double read byte from DRR
        stl     a, @xentry      ; save XPC entry point

        call    DBsreadA        ; call SP double read byte from DRR
        stl     a, @entry       ; save entry point

SP08_1  call    DBsreadA        ; call SP double read byte from DRR
                                ; read section size
        bcd     endboot,aeq     ; section size =0 indicate boot end
        sub     #1,a,b          ; brc = section size - 1
        stlm    b, brc          ; update block repeat counter register
        call    DBsreadA        ; call SP double read byte from DRR
                                ; read XPC of destination address
        stl     a,@dest         ; XPC of destination
        call    DBsreadA        ; call SP double read byte from DRR
                                ; read destination address
        add     @dest, 16, a    ;
        rptb    sfxr08-1
        call    ser_in          ; call SP input sub
        ld      *ar1, 8, b      ; acc B <-- junkbyte.high byte
        and     #0ff00h, b      ; acc B <-- high.byte
        stl     b, @hbyte       ; save high byte
        call    ser_in          ; call SP input sub
        ldu     *ar1, b         ; acc B <-- junkbyte.low byte
        and     #0ffh, b        ; acc B <-- low byte
        or      @hbyte, b       ; acc B <-- high byte.low byte
        writa   @BL             ; [acc A] <-- acc BL
        add     #1, a           ; increment dest add
sfxr08
        b       SP08_1          ; check next section


*************************************************************************
*** SPIBOOT - This routine reads a boot-table from an SPI EEPROM through
***           McBSP1.                                        1/27/99 RDP
*************************************************************************
SPIBOOT
*** Initialize the McBSP1 for SPI mode. ******************************
        stm     SPSA1, ar4      ;AR4->SPSA1
        stm     dxr11-1, ar5    ;AR5->DXR21
        ld      #249, a         ;Bit-rate divisor (.4Mhz @100MIPs)
        ssbx    XF              ;Drive XF high - optional hold feature.
        call    SPI_INIT        ;Initialize McBSP.
***************************************************
***** Start reading EEPROM.                   *****
***************************************************
        stm     #0, AR3         ;Init address to read from.
        call    SPI_READ        ;Read address 0.
        xor     #08h,a          ;Checking for boot-table (08AAh)
        bc      parallel, aneq  ;If not 08h, no-go. Branch to parallel.
        mar     *AR3+           ;increment address
        call    SPI_READ        ;Read address 1.
        xor     #0AAh,a         ;Checking for boot-table (08AAh)
        bc      parallel, aneq  ;If not AAh, no-go. Branch to serial init.
***************************************************
***** If here then booting.************************
***** The next eight addresses are skipped    *****
***** to maintain hex converter compatibility *****
***** with the 548/549 serial boot-table      *****
***************************************************
        stm     #0ah, AR3       ;Init address to read from.
        call    SPI_READ        ;Read address 0ah.
        stl     a, 8, xentry    ;Store xentry high-byte.
        mar     *ar3+           ;increment address
        call    SPI_READ        ;Read address 0fh.
        or      xentry, a       ;And xentry high-byte and low-byte.
        stl     a, xentry       ;Store XPC entry point.

        mar     *ar3+           ;Increment address.
        call    SPI_READ        ;Read address 010h.
        stl     a, 8, entry     ;Store entry high-byte.
        mar     *ar3+           ;increment address
        call    SPI_READ        ;Read address 011h.
        or      entry, a        ;And entry high-byte and low-byte.
        stl     a, entry        ;Store PC entry point.
        mar     *ar3+           ;increment address        

SPISECT call    SPI_READ        ;Read address 0ch.
        stl     a, 8, temp0     ;Store size high-byte.
        mar     *ar3+           ;Increment address.
        call    SPI_READ        ;Read address 0dh.
        or      temp0, a        ;And size high-byte and low-byte.
        bc      SPIEND, aeq     ;If size = 0, done.
        sub     #1,a            ;Section size - 1.
        stlm    a, brc          ;Update block repeat counter register.

        mar     *ar3+           ;Increment address.
        call    SPI_READ        ;Read address 0eh.
        stl     a, 8, xdest     ;Store xdest high-byte.
        mar     *ar3+           ;increment address
        call    SPI_READ        ;Read address 0fh.
        or      xdest, a        ;And xdest high-byte and low-byte.
        stl     a, xdest        ;Store XPC entry point.

        mar     *ar3+           ;Increment address.
        call    SPI_READ        ;Read address 010h.
        stl     a, 8, dest      ;Store dest high-byte.
        mar     *ar3+           ;increment address
        call    SPI_READ        ;Read address 011h.
        or      dest, a         ;And dest high-byte and low-byte.
        stl     a, dest         ;Store PC dest point.
*********This is the loop for reading a section**************
        rptb    SPILOOP-1
        mar     *ar3+           ;Increment address.
        call    SPI_READ        ;Read high-byte.
        stl     a, 8, temp0     ;Store high-byte.
        mar     *ar3+           ;increment address
        call    SPI_READ        ;Read address low-byte.
        or      temp0, a        ;And high-byte and low-byte.
        stl     a, temp0        ;Temporarily save it. 
        dld     xdest, a        ;Get destination address.
        writa   temp0           ;[acc A] <-- acc BL
        add     #1, a           ;increment dest add
        dst     a, xdest        ;Save destination address.
SPILOOP mar     *ar3+           ;Increment address.
        b       SPISECT         ;Read next section.
SPIEND  rsbx    XF              ;Drive XF low - optional hold feature.
        b       endboot         ;Branch to loaded code.


*****************************************************************
*       Bootload from parallel I/O port (pa0)
*****************************************************************

pasyini
        call    handshake
        portr   pa0, @temp0     ; read BSW 10AAh or 8AAh
        ld      @temp0, a       ; check BSW
        sub     #10aah, a, b    ; acc A = 10aah ?
        bcd     pasync16, beq   ;
        and     #0ffh, a        ; check acc AL = 08
        sub     #8,a            ;
        bc      endboot, aneq   ; not a boot mode
        call    handshake 
        portr   pa0, @temp0     ; read BSW 10AAh or 8AAh
        ld      @temp0, a       ; check BSW
        and     #0ffh, a        ; check acc AL = 08
        sub     #0aah, a        ; acc A = 0aah ?
        bc      pasync08, aeq   ;
        b       endboot

*****************************************************************
*       Bootload from I/O port (8-bit parallel), MS byte first
*****************************************************************

pasync08
        call    handshake8
        stl     b, @swwsr       ; save swwsr ini-value to SWWSR

        call    handshake8
        stl     b, @bscr        ; save bscr ini-value to BSCR

        call    handshake8
        stl     b, @xentry      ; save XPC of entry point

        call    handshake8
        stl     b, @entry       ; save entry point
pasy08_1
        ld      #0, b           ; b=0, Rev1.02 to fix 8bitI/O bug.
        call    handshake8
        bc      endboot, beq    ; if size = 0, branch to endboot
        sub     #1, b           ; otherwise, subtract 1 from block size
        stlm    b, brc          ; set brc to correct block size

        call    handshake8
*********************** Bug fix ***********************************
        stl     b, @temp0	  ; save XPC of destination addr
        ld      @temp0,16,a     ;added to correctly calculate the 
					  ;extended address of the section
					  ;PMJ2(11/10/99) 1.03
        call    handshake8
        add     b,a             ; acc A <-- destination address
*******************************************************************

        rptb    pfxr08-1
        call    handshake8

        ssbx    xf              ; acknowledge byte as soon as it's read

        bc             $,bio    ;wait until BIO high to write data

        writa   BL              ; write code word to program memory
        add     #1, a           ; increment destination address
pfxr08
        b        pasy08_1       ; branch to next section

*****************************************************************
*       Bootload from I/O port (16-bit parallel)
*****************************************************************

pasync16
        call    handshake
        portr   pa0, @swwsr     ; read word from port to SWWSR
        call    handshake
        portr   pa0, @bscr      ; read word from port to BSCR
        call    handshake
        portr   pa0, @xentry    ; read word from port to XPC of
                                ; entry point
        call    handshake
        portr   pa0, @entry     ; read word from port to entry
pasy16_1
        call    handshake
        portr   pa0, @lngth     ; read word from port to length
        ldu     @lngth, a       ; check size
        bcd     endboot, aeq    ; size = 0, end of boot
        sub     #1, a, b        ;
        stlm    b, brc
        call    handshake
        portr   pa0, @dest      ; read word from port to XPC of
                                ; destination addr
        call    handshake
        portr   pa0, @temp0     ; read from port to temp for
                                ; destiantion addr
        ldu     @temp0, a       ; acc A <-- destination address
        add     @dest, 16, a    ;

        rptb    pfxr16-1
        call   handshake        ; check BIO low ?
        portr  pa0, @temp0      ; read word from port to temp
        ssbx   xf               ; acknowledge word as soon as it's read

        bc             $,bio    ; wait until BIO high to write data

        writa  @temp0           ; write word to destination
        add    #1, a            ; increment destination address
pfxr16
        b       pasy16_1

*       Handshake with BIO signal using XF

handshake
        ssbx    xf              ; acknowledge previous data word
        bc      $,bio           ; wait till host sends request
        rsbx    xf              ; indicate ready to receive new data
        rc      bio             ; wait till new data ready
        b       $-1

handshake8
        ssbx    xf              ; acknowledge previous data word
        bc      $,bio           ; wait till host sends request
        rsbx    xf              ; indicate ready to receive new data
        bc      $,nbio          ; wait till new data ready

        portr   pa0, BL         ;read high byte into accumulator A
************* Bug fix ******************************************************
	  and     #0ffh,b		;force BG, BH to zero for correct evaluation
					;(11/10/99 PMJ2) 1.03
****************************************************************************
        sftl    b,8             ;left shift by 8 bits

        ssbx    xf              ; acknowledge previous data word
        bc      $,bio           ; wait till host sends request
        rsbx    xf              ; indicate ready to receive new data
        bc      $,nbio          ; wait till new data ready

        portr   pa0, @temp0
        andm    #0ffh,temp0     ; clear upper byte
        or      @temp0, b       ; combine high and low byte
        ret

bootend
        .end


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲成人自拍| 久久亚洲二区三区| 一区二区三区在线免费观看| av电影天堂一区二区在线| 欧美激情在线一区二区| 成人禁用看黄a在线| 亚洲精品国产精华液| 欧美日韩二区三区| 日本欧美久久久久免费播放网| 91精品国产综合久久精品app| 久久国产乱子精品免费女| www久久久久| 91在线视频在线| 午夜精品成人在线视频| 欧美精品一区二区在线播放| 国产高清成人在线| 一个色在线综合| 日韩一卡二卡三卡| 成人av综合一区| 亚洲va天堂va国产va久| 久久久久青草大香线综合精品| 成人av电影在线网| 天天综合网 天天综合色| 日韩欧美国产系列| 91日韩一区二区三区| 日本成人在线网站| 亚洲视频免费在线| 日韩一区二区三免费高清| 成人av手机在线观看| 日韩激情av在线| 中文字幕中文在线不卡住| 91精品国产黑色紧身裤美女| 成人av资源网站| 另类成人小视频在线| 亚洲欧美日韩国产综合在线| 欧美电影免费观看完整版| 91女神在线视频| 激情偷乱视频一区二区三区| 一二三四社区欧美黄| 国产区在线观看成人精品| 欧美视频中文字幕| 成人毛片老司机大片| 麻豆一区二区三区| 亚洲一区二区中文在线| 中文字幕永久在线不卡| 久久综合色婷婷| 欧美丰满少妇xxxbbb| 日本道色综合久久| 国产a区久久久| 久久国产精品第一页| 亚洲制服丝袜av| 国产精品免费av| 精品福利一区二区三区 | 精品99一区二区三区| 91黄色激情网站| 99麻豆久久久国产精品免费| 国内精品伊人久久久久av影院| 亚洲成在人线免费| 亚洲激情欧美激情| 中文字幕在线不卡一区二区三区| 久久久精品免费网站| 精品国免费一区二区三区| 欧美一二三在线| 4hu四虎永久在线影院成人| 在线观看不卡一区| 色综合久久中文综合久久97| 丁香天五香天堂综合| 国产激情视频一区二区三区欧美| 卡一卡二国产精品| 男人操女人的视频在线观看欧美 | 亚洲成人一二三| 一区二区三区中文字幕| 亚洲视频在线一区观看| 国产精品久久看| 中文字幕精品一区| 国产精品网站一区| 国产精品欧美经典| 亚洲欧美日本在线| 亚洲一区二区视频| 亚洲影视在线播放| 视频一区免费在线观看| 日日夜夜一区二区| 久久精品久久精品| 国产成人夜色高潮福利影视| 国产精品一级二级三级| 国产乱子伦视频一区二区三区| 国产福利一区二区三区视频在线| 国产精品一品视频| 91丨九色porny丨蝌蚪| 97久久超碰国产精品| 欧美色综合天天久久综合精品| 欧美色精品在线视频| 3d动漫精品啪啪1区2区免费| 日韩无一区二区| 国产片一区二区三区| 国产精品二三区| 亚洲香蕉伊在人在线观| 日韩国产一二三区| 国产乱码精品1区2区3区| 国产91精品入口| 欧美性高清videossexo| 91精选在线观看| 久久午夜老司机| 亚洲欧美日韩国产另类专区| 青青草一区二区三区| 国产mv日韩mv欧美| 欧美日韩国产一二三| 26uuu另类欧美| 日韩一区有码在线| 日本欧美一区二区三区| 不卡区在线中文字幕| 欧美性感一区二区三区| 国产亚洲污的网站| 亚洲综合在线免费观看| 久久精品99国产国产精| 97国产一区二区| 欧美大片在线观看一区二区| 中文字幕av资源一区| 日韩在线一区二区| 成人免费黄色在线| 欧美一区国产二区| 亚洲色欲色欲www| 久久99久久99| 欧美日韩一区二区三区四区| 久久久久久久久97黄色工厂| 亚洲综合一二区| 国产成人精品综合在线观看| 欧美猛男男办公室激情| 国产精品伦一区| 久久av老司机精品网站导航| 色老综合老女人久久久| 国产亚洲欧美中文| 日韩国产欧美三级| 色94色欧美sute亚洲线路一ni | 亚洲欧洲99久久| 久久er99热精品一区二区| 欧美私模裸体表演在线观看| 国产午夜精品福利| 蜜桃av噜噜一区| 欧美日韩夫妻久久| 一区二区三区欧美日韩| 成人国产精品视频| 国产欧美一区在线| 国模大尺度一区二区三区| 欧美日精品一区视频| 日韩理论片中文av| 成人妖精视频yjsp地址| 日韩精品资源二区在线| 婷婷六月综合网| 欧美性生活一区| 一区二区三区视频在线看| 成人免费看片app下载| 国产视频亚洲色图| 国产精品乡下勾搭老头1| 精品sm捆绑视频| 久久99久久99精品免视看婷婷| 在线成人av影院| 天天操天天干天天综合网| 欧美色视频在线| 午夜久久久久久| 6080国产精品一区二区| 午夜精品在线视频一区| 欧美在线免费观看亚洲| 亚洲观看高清完整版在线观看| 色妞www精品视频| 亚洲美女视频在线观看| 日本韩国欧美在线| 亚洲香肠在线观看| 欧美日韩精品久久久| 婷婷六月综合亚洲| 日韩午夜在线观看视频| 国产一区二区91| 亚洲国产成人一区二区三区| 国产91富婆露脸刺激对白| 国产精品不卡一区二区三区| www.99精品| 亚洲综合色婷婷| 久久久亚洲国产美女国产盗摄| 麻豆精品久久精品色综合| 日韩一级完整毛片| 国产精品18久久久久久久网站| 国产欧美精品一区二区色综合| 成人激情小说网站| 亚洲伊人伊色伊影伊综合网| 日韩一区二区三区视频在线观看| 奇米精品一区二区三区在线观看 | 欧美国产欧美综合| 91麻豆高清视频| 亚洲成人自拍网| 日韩视频在线永久播放| 国产在线看一区| 日韩一区有码在线| 91精品国产福利在线观看 | 成人午夜在线视频| 亚洲欧美精品午睡沙发| 欧美人成免费网站| 国产成人在线观看| 亚洲自拍偷拍九九九| xnxx国产精品| 色婷婷av一区二区三区大白胸|