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

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

?? isr.asi

?? A MP3 Player Source Code, Enjoy it!
?? ASI
?? 第 1 頁 / 共 2 頁
字號:
;interrupt service routines; MP3 Player, Interrupt Service Routines, http://www.pjrc.com/tech/mp3; Copyright (c) 2000, PJRC.COM, LLC; This program is free software; you can redistribute it and/or; modify it under the terms of the GNU General Public License; as published by the Free Software Foundation; either version 2; of the License, or (at your option) any later version.; This program is distributed in the hope that it will be useful,; but WITHOUT ANY WARRANTY; without even the implied warranty of; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the; GNU General Public License for more details.; You should have received a copy of the GNU General Public License; along with this program; if not, write to the Free Software; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.; As a specific exception to the GPL, the executable object code built; from this source code may be combined with hardware configuration data; files.  A hardware configuration data file is a set of data that is; transmitted to an intergrated circuit that is not a general purpose; microprocessor or microcontroller, in order to establish its normal; operation.  The process of combining the executable ojbect code built; from the GPL licensed source code with the hardware configuration data; shall be considered an aggregation of another work not based on the; Program.  While the GPL does not restrict use of the program, any; use restriction associated with the hardware configuration data (for; example, that it only be used with particular hardware) shall apply; to the combined file which includes a copy of the hardware configuration; data.; Contact: paul@pjrc.com.equ    pm2_cout, 0x0030.equ    pm2_phex, 0x0034.equ    pm2_pstr, 0x0038.equ    pm2_pint8, 0x0050.equ    pm2_newline, 0x0048	.org	0x2000	ljmp	0x3040		;in case someone calls here...	.org	0x2003		;int0 interrupt	ljmp	int0_isr	.org	0x200B		;timer0 interrupt (not used)	reti	.org	0x2013		;int1 interrupt	ljmp	int1_isr	.org	0x201B		;timer1 interrupt (timer1 needed for baud rate)	reti	.org	0x2023		;uart interrupt	ljmp	uart_isr	.org	0x202B	ljmp	timer2_isr	;timer2 interrupt        .org    0x202E        ajmp    phex1           ;0x202E        ajmp    cout            ;0x2030	ajmp	cin		;0x2032        ajmp    phex            ;0x2034        ajmp    phex16          ;0x2036        ajmp    pstr            ;0x2038        ajmp    newline         ;0x203A        ajmp    init_uart       ;0x203C	ajmp	timer_setup	;0x203E	ajmp	add_new_event	;0x2040	ajmp	flush		;0x2042; these symbols are grabbed from "drivers.asm" by the asi2asm script.; These interrupt routines really are part of the device drivers, but; they need to be in this separate file, so that can be included in; both code banks.  You never know when an interrupt may happen, and; that means we need to have an identical copy of the interrupt service; routines in both banks.  This "need_equ" is a simple kludge so that; these routines can use the variables from the drivers, and the equates; will automatically update if the memory is rearranged inside of; drivers.asm..need_equ	debug			drivers.asm.need_equ	play_req_tail		drivers.asm.need_equ	play_req_head		drivers.asm.need_equ	play_req_size		drivers.asm.need_equ	play_req		drivers.asm.need_equ	num_blks_played		drivers.asm.need_equ	rx_buffer		drivers.asm.need_equ	rx_buf_head		drivers.asm.need_equ	rx_buf_tail		drivers.asm.need_equ	tx_buffer		drivers.asm.need_equ	tx_buf_head		drivers.asm.need_equ	tx_buf_tail		drivers.asm.need_equ	tx_intr_expected	drivers.asm.need_equ	cout_timeout		drivers.asm.need_equ	event_queue		drivers.asm.need_equ	event_queue_size	drivers.asm.need_equ	event_queue_head	drivers.asm.need_equ	event_queue_tail	drivers.asm.need_equ	hc165_load_pin		drivers.asm.need_equ	hc165_data_pin		drivers.asm.need_equ	hc165_clk_pin		drivers.asm.need_equ       pb_state_next 		drivers.asm.need_equ       pb_state_play 		drivers.asm.need_equ       pb_state_prev 		drivers.asm.need_equ       pb_state_rand 		drivers.asm.need_equ       pb_count_v_up 		drivers.asm.need_equ       pb_count_v_dn 		drivers.asm.need_equ	sw_timer_tick		drivers.asm.need_equ	sw_timer		drivers.asm.need_equ	clock_tick		drivers.asm.need_equ	sw_timer_mask		drivers.asm.need_equ	ide_timeout_count	drivers.asm; registers implemented in the DRAM, IDE, and DMA controller.equ    dram_page_cfg,  0xFF00.equ    ide_data,       0xFF60.equ    ide_err,        0xFF62.equ    ide_sec_cnt,    0xFF64.equ    ide_sector,     0xFF66.equ    ide_cyl_lsb,    0xFF68.equ    ide_cyl_msb,    0xFF6A.equ    ide_head,       0xFF6C.equ    ide_command,    0xFF6E.equ    ide_status,     0xFF6E.equ    ide_control,    0xFF7C.equ    ide_astatus,    0xFF7C.equ    ide_rst_bit,    0xFF40.equ    ide_data_buf_msb, 0xFF43.equ    dma_ide_dest,   0xFF22.equ    dma_ide_count,  0xFF24.equ    irq_dma_ide_ack,0xFF5C.equ    dma_ide_go,     0xFF58.equ    irq_ident,      0xFF50.equ    irq_mask,       0xFF51.equ    dma_mp3_src,    0xFF28.equ    dma_mp3_count,  0xFF2A.equ    dma_mp3_go,     0xFF59.equ    irq_dma_mp3_ack,0xFF5D.equ    irq_memcpy_ack, 0xFF5E;*****************************************************************;**                                                             **;**                        Serial Port                          **;**                                                             **;*****************************************************************uart_isr:        push    psw        push    acc        jb      ri, recv	jb	ti, xmit	pop	acc	pop	psw	retirecv:   clr     ri        mov     a, rx_buf_head        inc     a        cjne    a, rx_buf_tail, recv_ok        mov     a, sbuf		;no space in the rx buffer... discard char        pop     acc        pop     psw        retirecv_ok:mov     rx_buf_head, a        push    dpl        push    dph        mov     dph, #rx_buffer >> 8        mov     dpl, a        mov     a, sbuf        movx    @dptr, a        pop     dph        pop     dpl        pop     acc        pop     psw        retixmit:   clr     ti        mov     a, tx_buf_tail        cjne    a, tx_buf_head, xmit_ok         ;check for buffer empty        ;If we got here, there is no data waiting to transmit.  The        ;uart won't generate more interrupts, so the cout routine had        ;better check set ti.  tx_buf_head is loaded with zero to that        ;cout will know to set ti.        clr     tx_intr_expected        pop     acc        pop     psw        retixmit_ok:inc     a        mov     tx_buf_tail, a  ;update tx_buf_tail while it's still in Acc.        push    dpl        push    dph        mov     dph, #tx_buffer >> 8        mov     dpl, a        movx    a, @dptr        mov     sbuf, a        pop     dph        pop     dpl        setb    tx_intr_expected        pop     acc        pop     psw        reticout:        push    psw        xch     a, r0                           ;put char to send into r0        push    acc                             ;keep r0 on stack	mov	cout_timeout, #150cout_wt:clr     es				;1        jnb     tx_intr_expected, cout_kickstart ;2 check if not transmittingcout2:  mov     a, tx_buf_head			;1        inc     a				;1        cjne    a, tx_buf_tail, cout4           ;2 check if buffer full        setb    es				;1	djnz	cout_timeout, cout_wt		;2	;if we get here, we've waited too long and something is wrong,	;so we'll reset the transmit queue and start overcout_kickstart:        setb    ti              ;set ti in software since buffer is empty        setb    tx_intr_expected        mov     tx_buf_tail, #0        mov     a, #1cout4:  mov     tx_buf_head, a                  ;update tx_buf_head	push    dph        push    dpl        mov     dph, #tx_buffer >> 8        mov     dpl, a        mov     a, r0        movx    @dptr, a        pop     dpl        pop     dph        setb    es        mov     r0, a                           ;restore r0 value and Acc        pop     acc        xch     a, r0        pop     psw        retflush:	; there should probably be a timeout of some sort	jb	tx_intr_expected, flush	ret;Get a character from the receive buffer.  C=0 if char recv, C=1 if nonecin:	clr     es        mov     a, rx_buf_tail        cjne    a, rx_buf_head, cin_ok  ;check if buffer empty	clr	a        setb    es        setb    c        retcin_ok: inc     a        mov     rx_buf_tail, a        push    dpl        push    dph        mov     dpl, a        mov     dph, #rx_buffer >> 8        movx    a, @dptr        pop     dph        pop     dpl        setb    es        clr     c        ret; Highly code efficient resursive call phex contributed; by Alexander B. Alexandrov <abalex@cbr.spb.ru>phex:	acall   phex_bphex_b: swap    a               ;SWAP A will be twice => A unchangedphex1:  push    acc        anl     a, #15        add     a, #0x90        ; acc is 0x9X, where X is hex digit        da      a               ; if A to F, C=1 and lower four bits are 0..5        addc    a, #0x40        da      a        acall   cout        pop     acc        retnewline:push    acc             ;print one newline        mov     a, #13        lcall   cout        mov     a, #10        lcall   cout        pop     acc        retphex16:	push	acc	mov	a, dph	acall	phex	mov	a, dpl	acall	phex	pop	acc	retpstr:   clr     a        movc    a, @a+dptr        inc     dptr        jz      pstr2        lcall   cout        sjmp    pstrpstr2:  ret	.equ	baud_const, 254		;19200 baud at 7.3728 MHz cyrstalinit_uart:	mov	r0, #0	djnz	r0, *			;brief delay, in case sbuf not empty	djnz	r0, *        clr     ea        orl     pcon, #10000000b        ;set double baud rate        anl     tmod, #00001111b        ;clear all timer1 bits in tmod        orl     tmod, #00100000b        ;set timer1 as 8 bit auto reload        clr     tr1                     ;make sure timer1 isn't running        clr     tf1        mov     a, #baud_const        mov     th1, a                  ;set timer1 rate        mov     tl1, a        mov     scon, #01010000b        ;config serial port (ri and ti cleared)        mov     tx_buf_head, #0         ;set up transmit buffer as empty        mov     tx_buf_tail, #0        setb    tr1                     ;start timer1        clr     tx_intr_expected        ;and no tx interrupt expected        setb    es                      ;enable serial port interrupt        setb    ea                      ;also turn on interrupts in general        ret;*****************************************************************;**                                                             **;**                    MP3 Playback (STA013)                    **;**                                                             **;*****************************************************************        ;when we get here, the STA013 chip is ready for more dataint0_mp3_dma:        clr     a        mov     dptr, #irq_dma_mp3_ack        movx    @dptr, a                ;clear previous interrupt        mov     a, play_req_tail        cjne    a, play_req_head, play_next_req        mov     a, #255        mov     play_req_tail, a        ;no play requests pending        mov     play_req_head, a        pop     acc        pop     dph        pop     dpl        pop     psw        retiplay_next_req:        inc     a        cjne    a, #play_req_size, play_next_req2        clr     aplay_next_req2:        mov     play_req_tail, a        rl      a        rl      a        add     a, #play_req & 255        mov     dpl, a        clr     a        addc    a, #play_req >> 8        mov     dph, a                  ;now DPTR points to pending request        movx    a, @dptr        mov     r2, a                   ;read block to play into r2/r3

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久er精品视频| www.在线欧美| 国产精品国模大尺度视频| 在线不卡中文字幕| 欧美在线不卡视频| 欧美亚洲国产bt| 欧美性极品少妇| 久久久久国色av免费看影院| www国产精品av| 久久久久97国产精华液好用吗| 亚洲欧美偷拍三级| 一区二区三区中文在线| 亚洲男人天堂一区| 国产精品一二一区| 成人av集中营| 欧美视频第二页| 国产精品不卡一区| 国产精品一级片| 精品国产91乱码一区二区三区 | 亚洲成人黄色小说| 亚洲黄色av一区| 天使萌一区二区三区免费观看| 亚洲成av人影院| 色呦呦国产精品| 欧美日韩综合一区| 日韩一级大片在线观看| 欧美成人乱码一区二区三区| 国产欧美日韩视频一区二区| 亚洲欧洲www| 丝袜亚洲精品中文字幕一区| 在线精品视频免费观看| **性色生活片久久毛片| 成人av在线资源网站| 中文字幕欧美三区| 亚洲成人777| 欧美情侣在线播放| 国产亲近乱来精品视频| 韩国女主播成人在线| 91在线观看一区二区| 99视频国产精品| 亚洲自拍偷拍欧美| 极品美女销魂一区二区三区| 92精品国产成人观看免费| 中国色在线观看另类| 男男gaygay亚洲| 色激情天天射综合网| 久久婷婷一区二区三区| 国产麻豆日韩欧美久久| 91麻豆精品国产自产在线观看一区| 欧美激情综合五月色丁香| 国产伦精一区二区三区| 国产农村妇女毛片精品久久麻豆| 成人va在线观看| 亚洲欧美日韩在线不卡| 欧美精品第1页| 韩国一区二区在线观看| 国产片一区二区| 日本大香伊一区二区三区| 亚洲成在线观看| 日韩亚洲电影在线| 国产成人精品三级| 日韩一区二区三区在线视频| 国模大尺度一区二区三区| 国产精品久久综合| 欧美性高清videossexo| 久久精品国产免费看久久精品| 国产亚洲女人久久久久毛片| 精品一二三四区| 中文字幕一区二区三区蜜月| 欧美老人xxxx18| 国产一区二区在线电影| 亚洲色图另类专区| 99re成人在线| 免费看欧美美女黄的网站| 国产欧美日韩视频一区二区| 欧美日韩中文字幕一区| 国产黑丝在线一区二区三区| 亚洲午夜在线电影| 欧美专区在线观看一区| 韩国在线一区二区| 亚洲国产成人av网| 中文在线一区二区| 日韩一区二区三区三四区视频在线观看| 国产成人免费在线视频| 五月天激情综合| 欧美一级国产精品| 99国产精品99久久久久久| 久久av中文字幕片| 亚洲午夜一区二区三区| ㊣最新国产の精品bt伙计久久| 91麻豆精品国产91久久久久久久久| 成人黄色国产精品网站大全在线免费观看| 国产美女在线观看一区| 亚洲高清视频的网址| 国产精品国产三级国产普通话99 | 18成人在线观看| 2024国产精品视频| 欧美一区在线视频| 激情都市一区二区| 天堂av在线一区| 亚洲黄色尤物视频| 中文字幕av资源一区| 精品久久久久久无| 日韩一区国产二区欧美三区| 欧美色图天堂网| 色噜噜狠狠一区二区三区果冻| 国产ts人妖一区二区| 亚洲美女一区二区三区| 日本一区二区久久| 国产三级欧美三级日产三级99| 91麻豆精品国产91久久久久| 欧美日韩高清不卡| 91久久香蕉国产日韩欧美9色| 成人avav影音| 99国产精品久| 99久久伊人精品| 99久久婷婷国产综合精品电影 | 91在线一区二区三区| 成人午夜免费视频| 午夜精品aaa| 亚洲v精品v日韩v欧美v专区| 亚洲综合色区另类av| 亚洲主播在线观看| 亚洲不卡在线观看| 日韩av在线发布| 亚洲图片激情小说| 综合久久给合久久狠狠狠97色| 国产精品美女久久久久久久久| 国产精品女主播在线观看| 国产精品国产成人国产三级| |精品福利一区二区三区| 亚洲欧洲日韩在线| 亚洲已满18点击进入久久| 亚洲第四色夜色| 麻豆91免费看| 午夜久久久久久久久久一区二区| 亚洲动漫第一页| 久久精品国产77777蜜臀| 国产一区在线不卡| 波多野结衣亚洲| 欧美日韩综合一区| 欧美变态tickling挠脚心| 国产欧美日韩久久| 亚洲天天做日日做天天谢日日欢| 欧美在线不卡一区| 日韩视频国产视频| 国产日产欧产精品推荐色| 亚洲色欲色欲www| 亚洲成人综合网站| 蓝色福利精品导航| 99re在线视频这里只有精品| 欧美日韩一区在线观看| 久久蜜桃香蕉精品一区二区三区| 国产精品国模大尺度视频| 亚洲高清久久久| 国产精品一区二区视频| 欧美性色黄大片| 久久一二三国产| 亚洲一二三四在线观看| 国产一区二区成人久久免费影院| 99精品久久久久久| 日韩欧美亚洲国产精品字幕久久久| 欧美中文字幕不卡| 亚洲国产精品精华液ab| 午夜精品一区二区三区电影天堂 | 欧美一区二区三区视频| 欧美经典三级视频一区二区三区| 中文字幕字幕中文在线中不卡视频| 日本亚洲一区二区| www.亚洲色图| 精品久久人人做人人爱| 亚洲激情图片一区| 国产精品亚洲午夜一区二区三区 | 国产乱人伦偷精品视频不卡 | 国产91对白在线观看九色| 欧美伦理影视网| 亚洲免费视频中文字幕| 国产成人综合网| 欧美一区二视频| 亚洲国产综合色| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 欧美老年两性高潮| 国产精品久久久久久亚洲毛片| 日本 国产 欧美色综合| 91黄色小视频| 专区另类欧美日韩| 成人高清免费在线播放| 国产亚洲短视频| 狠狠v欧美v日韩v亚洲ⅴ| 5566中文字幕一区二区电影| 一区二区三区不卡在线观看| a级高清视频欧美日韩| 中文字幕精品一区| 国产综合久久久久影院| 日韩三级av在线播放| 秋霞午夜鲁丝一区二区老狼| 欧美日韩另类国产亚洲欧美一级| 亚洲天堂精品在线观看| 粉嫩av一区二区三区在线播放| 久久精品亚洲国产奇米99|