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

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

?? sccvec.s

?? 很好的TCP_IP協議源代碼分析,很適用很好
?? S
字號:
; Modified from the PE1CHL version to work with NOS.
; This file cannot be used with the PE1CHL sources.

include asmglobal.h
	extrn	Stktop,Spsave,Sssave,doret:proc,scctim:proc,eoi:proc
	extrn	porg:proc
	extrn	Sccvecloc,Sccpolltab,Sccmaxvec:byte

ifdef	LARGEDATA
	extrn	Sccchan:dword
else
	extrn	Sccchan:word
endif
	
	.CODE
dbase	dw	@Data		; save loc for ds (must be in code segment)

; sccvec is the interrupt handler for SCC interrupts using INTACK

	public sccvec
	label	sccvec	far

	cli			; this code is not re-entrant, so make sure it
				; is not interrupted. some multi-taskers
				; intercept interrupt handlers, so be careful!


	cld
	push	ds		; save on user stack

	mov	ds,cs:dbase

	mov	Sssave,ss	; stash user stack context
	mov	Spsave,sp

	mov	ss,cs:dbase		; set up interrupt stack
	lea	sp,Stktop

	PUSHALL
	push	es
	call	eoi
ifndef	LARGEDATA
	mov	es,ax		; small data assumes ES == DS
endif
	cld			; in case "movsb" or "movsw" is used


; Read SCC interrupt vector and check it

sccint: mov	dx,Sccvecloc
	out	dx,al			; Generate INTACK
	jmp	short d1		; Delay
d1:	jmp	short d2
d2:	jmp	short d3
d3:	in	al,dx			; Read the vector
	cmp	al,Sccmaxvec		; Check for a legal vector
	jnc	clrret			; It should not be >= the maximum
					; If it is, ignore the interrupt

; Extract channel number and status from vector. Determine handler address.

	mov	bl,al			; Copy vector (need it later for status)
	shr	bl,1			; Discard least significant bit
	jc	clrret			; It should not be a 1
	and	bx,7ch			; Isolate channel number (and make word)
	xor	bl,04h			; Toggle A/B channel bit
ifdef	LARGEDATA
	les	si,Sccchan[bx]	; Read address of channel structure
else
	shr	bl,1			; Discard another bit
	mov	si,Sccchan[bx]		; Read address of channel structure
endif
ifdef	LARGEDATA		; Test for NULL
	push	ax
	mov		ax,es
	test	ax,ax
	pop		ax
	jne	nn0
endif
	test	si,si			; Test for NULL
	je	clrret			; No channel struct, ignore it
nn0:
	and	ax,06h			; Isolate status info from vector
	add	ax,ax			; Make index in FAR PTR array
	mov	bx,ax			; It must be in BX

; Call the handler (defined in C), with Sccchan struct as a parameter

	push	es
	push	si			; Put channel struct as a parameter
ifdef	LARGEDATA
	call	dword ptr es:[bx+si]	; Call the handler
else
	call	dword ptr [bx+si]	; Call the handler
endif
	pop	si			; Get channel struct back
	pop	es

; Reset highest priority interrupt

ifdef	LARGEDATA
	mov	dx,es:16[si]		; Get control register address
else
	mov	dx,16[si]		; Get control register address
endif
	mov	al,38h			; "Reset Highest IUS" opcode
	out	dx,al			; to WR0
	jmp	short d4	; settling delay
d4:	jmp	short d5
d5:

; Determine if more interrupt requests are coming in from the SCCs

	jmp	sccint			; keep trying until no vector returned

; Clear the ISR bit in the PIC and return from interrupt

clrret:	
	mov	ax,0		; clear chain vector value (4/92 KA9Q)
	mov	dx,0
	jmp	doret			; execute code in pcint.asm

;	sccvec	endproc

; sccnovec is the interrupt handler for SCC interrupts using polling

	public sccnovec
	label sccnovec far
	
	cli			; this code is not re-entrant, so make sure it
				; is not interrupted. some multi-taskers
				; intercept interrupt handlers, so be careful!


	push	ds		; save on user stack
	mov	ds,cs:dbase

	mov	Sssave,ss	; stash user stack context
	mov	Spsave,sp

	mov	ss,cs:dbase		; set up interrupt stack
	lea	sp,Stktop

	PUSHALL
	push	es
	call	eoi
ifndef	LARGEDATA
	mov	es,ax		; small data assumes ES == DS
endif

	cld			; in case "movsb" or "movsw" is used


; Find the SCC generating the interrupt by polling all attached SCCs
; reading RR3A (the interrupt pending register)

sccintnv:
	lea	si,Sccpolltab		; Point to polling table
sccpoll:
	mov	dx,[si]			; Get chan A CTRL address
	inc	si
	inc	si
	test	dx,dx			; End of table without finding it
	je	clrret			; Then return from interrupt
	mov	al,3			; Select RR3A
	out	dx,al
	jmp	short d6	; Delay
d6:	jmp	short d7
d7:	jmp	short d8
d8:	in	al,dx
	test	al,al			; Test if a nonzero IP here
	jnz	sccip			; Yes, handle it
	inc	si			; No, next A CTRL
	inc	si
	jmp	sccpoll

; Read SCC interrupt vector from RR2B, it should always be correct
; Extract channel number and status from vector. Determine handler address.

sccip:	mov	dx,[si]			; Read B CTRL address
	mov	al,2			; Select RR2B
	out	dx,al
	jmp	short d9	; Delay
d9:	jmp	short d10
d10:	jmp	short d11
d11:	in	al,dx		; Read the vector
	mov	bl,al			; Copy vector (need it later for status)
	shr	bl,1			; Discard least significant bit
	and	bx,7ch			; Isolate channel number (and make word)
	xor	bl,04h			; Toggle A/B channel bit
ifdef	LARGEDATA
	les si,Sccchan[bx]
else
	shr	bl,1			; Discard another bit (Sccchan=words)
	mov	si,Sccchan[bx]		; Read address of channel structure
endif
ifdef	LARGEDATA		; Test for NULL
	push	ax
	mov		ax,es
	test	ax,ax
	pop		ax
	jne nn1
endif
	test	si,si			; Test for NULL
	je	clrret			; No channel struct, ignore it
nn1:
	and	ax,06h			; Isolate status info from vector
	add	ax,ax			; Make index in FAR PTR array
	mov	bx,ax			; It must be in BX

; Call the handler (defined in C), with Sccchan struct as a parameter

	push	es
	push	si			; Put channel struct as a parameter
ifdef	LARGEDATA
	call	dword ptr es:[bx+si]	; Call the handler
else
	call	dword ptr [bx+si]	; Call the handler
endif
	pop	si			; Remove parameter from stack
	pop	es

; Check for more interrupt pending bits

	jmp	sccintnv

;	sccnovec	endproc

	end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产毛片精品视频| 成人伦理片在线| 亚洲男人的天堂av| 亚洲欧洲av色图| 国产精品久久久久久久久图文区| 欧美mv日韩mv| 精品av久久707| 久久久精品国产免费观看同学| 亚洲精品一区二区三区99| 精品国产一区二区三区久久影院 | av电影在线观看完整版一区二区| 国产乱码一区二区三区| 国产精品羞羞答答xxdd| 国产成人免费网站| 97久久久精品综合88久久| 一本一道久久a久久精品| 在线观看av一区二区| 欧美日韩在线三区| 精品国产第一区二区三区观看体验| 精品国产露脸精彩对白| 亚洲国产高清aⅴ视频| 亚洲精品高清在线| 另类调教123区| 粉嫩绯色av一区二区在线观看| 91丨porny丨国产入口| 在线观看亚洲专区| 久久婷婷久久一区二区三区| 一区在线中文字幕| 蜜臀va亚洲va欧美va天堂| 国产成人综合网站| 91久久精品日日躁夜夜躁欧美| 欧美私模裸体表演在线观看| wwwwxxxxx欧美| 亚洲美女在线国产| 精品亚洲aⅴ乱码一区二区三区| 丁香婷婷综合激情五月色| 欧美主播一区二区三区美女| 欧美v国产在线一区二区三区| 国产精品乱人伦| 蜜臀久久99精品久久久画质超高清| 国产91综合网| 日韩精品自拍偷拍| 一区二区三区在线免费观看 | 国产日韩欧美高清| 午夜精品成人在线| 91一区一区三区| 欧美精品一区二| 日韩激情视频在线观看| gogogo免费视频观看亚洲一| 日韩女优视频免费观看| 亚洲一区二区欧美日韩| av高清不卡在线| 国产天堂亚洲国产碰碰| 美女视频黄a大片欧美| 欧美色图在线观看| 最新久久zyz资源站| 极品少妇xxxx偷拍精品少妇| 337p亚洲精品色噜噜噜| 一区二区三区在线视频免费| 99久久er热在这里只有精品66| 26uuu亚洲综合色欧美 | 欧美激情自拍偷拍| 久久成人免费日本黄色| 欧美老人xxxx18| 亚洲最新视频在线观看| 99免费精品视频| 国产精品污网站| 国产福利精品一区| 欧美激情在线一区二区| 国产精品一二二区| 久久久久9999亚洲精品| 国产一区二区三区电影在线观看 | 一本色道a无线码一区v| 国产精品素人视频| 不卡一二三区首页| 国产精品久99| 91小视频在线免费看| 国产精品国产三级国产aⅴ原创 | 欧美日韩二区三区| 亚洲成人www| 666欧美在线视频| 蜜臀精品久久久久久蜜臀| 日韩视频一区在线观看| 激情久久五月天| 欧美国产日本韩| 91浏览器打开| 夜色激情一区二区| 91精品国产欧美一区二区18| 久久精品国产亚洲a| 久久亚洲综合色一区二区三区| 国产精品996| 一区二区中文字幕在线| 91极品美女在线| 日韩电影一二三区| 国产日韩欧美综合一区| 91免费看视频| 丝袜美腿亚洲一区二区图片| 日韩欧美色综合| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 成人va在线观看| 亚洲在线观看免费| 日韩精品一区二区三区四区视频 | 1024精品合集| 欧美日韩国产天堂| 国产又黄又大久久| 亚洲另类色综合网站| 69堂国产成人免费视频| 风流少妇一区二区| 午夜av区久久| 国产精品卡一卡二| 欧美肥妇bbw| 99久久国产综合精品麻豆| 午夜精品福利一区二区蜜股av| 久久久久9999亚洲精品| 欧美三级日韩在线| 丁香激情综合国产| 青青草国产成人99久久| 国产精品免费丝袜| 日韩精品在线网站| 欧美亚洲一区二区三区四区| 国产一区二区视频在线播放| 亚洲网友自拍偷拍| 国产精品对白交换视频| 欧美mv和日韩mv的网站| 欧美日韩在线播放三区| 成人激情免费视频| 精品一区二区综合| 天天色 色综合| 亚洲欧美偷拍另类a∨色屁股| 精品久久免费看| 欧美伦理影视网| 色视频欧美一区二区三区| 国产成人亚洲精品青草天美| 美女网站一区二区| 香蕉影视欧美成人| 亚洲精品成人a在线观看| 国产精品入口麻豆九色| 精品成人私密视频| 日韩欧美国产综合在线一区二区三区| 日本道在线观看一区二区| 成人精品小蝌蚪| 粉嫩久久99精品久久久久久夜| 激情综合网av| 精品一区精品二区高清| 久久99精品一区二区三区三区| 亚洲不卡在线观看| 亚洲动漫第一页| 亚洲h在线观看| 亚洲午夜精品一区二区三区他趣| 亚洲少妇最新在线视频| 亚洲三级在线免费| 亚洲女同一区二区| 亚洲精品免费视频| 一区二区三区四区中文字幕| 自拍偷拍亚洲综合| 日韩一区日韩二区| 亚洲视频在线观看一区| 亚洲欧美日韩综合aⅴ视频| 中文字幕一区二区三区视频| 中文字幕综合网| 亚洲狠狠丁香婷婷综合久久久| 亚洲午夜电影网| 欧美a级一区二区| 久久国产精品99久久久久久老狼| 久久国产精品99精品国产| 国产综合一区二区| 国产91精品在线观看| av一区二区不卡| 欧美在线观看一二区| 日韩一区二区三区在线观看| 日韩精品一区二区三区老鸭窝| 久久精品人人爽人人爽| 中文字幕一区二区三| 亚洲国产精品久久不卡毛片| 老鸭窝一区二区久久精品| 国产白丝网站精品污在线入口| 99精品视频在线免费观看| 欧美视频你懂的| www国产精品av| 亚洲精品中文在线观看| 日本aⅴ免费视频一区二区三区| 国产一区美女在线| 91在线视频官网| 91精品中文字幕一区二区三区| 久久久影院官网| 亚洲永久精品国产| 国产高清不卡一区二区| 91福利视频网站| 久久久久国产精品厨房| 一区二区三区在线观看欧美| 狠狠色丁香久久婷婷综合_中| 91在线视频免费91| 精品三级在线看| 亚洲一区二区高清| 国产成人av网站| 欧美一区二区三区不卡| 综合久久久久综合| 国产一区二区调教| 91精品国产综合久久久久| 国产精品久久久99|