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

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

?? 1.asm

?? 聲音演奏程序 不錯的 可以實現 希望大家喜歡 哦 呵呵 加油啊
?? ASM
字號:
;Set of keyboard routines with sound outputs
.MODEL small
.STACK 500
.DATA
  ;define table for sound output
;sample_sounds      dw   8,45000   ;long low sound
;              dw   2,2000         ;short high sound
;              dw   0              ;end of sample sound table

sound_table    dw   0
sound_time_m   dw   0
sound_time_l   dw   0
sound_flag     db   0
sound_on_flag  db   0,0
key_time_out_m dw   0
key_time_out_l dw   0

.CODE
;************  ^^^^^^^^^^  *************
;### code entry point #####
get_keyinput   proc near
;this routine checks for keyboard data in BIOS buffer
 ; and returns with data if there
;else it updates sound output data and loops to check for
 ; keyboard data again until keyboard data found
;on exit AX has keyboard data
     public    get_keyinput
     push bx
     push cx
     push dx
get_keyinput_loop:
          mov  ah,1   ;set AH for scan
          int  16H    ;BIOS Call
           ;branch if no keyboard data
          jz   sound_update
          mov  ah,0   ;set AH for get key
          int  16H    ;BIOS Call
     pop  dx
     pop  cx
     pop  bx
     ret
;*******  -------- *******
sound_update:
     cmp  sound_flag,0        ;check for sound on????
     jz   get_keyinput_loop   ;branch out if sound off
     mov  cx,sound_time_m     ;else check for sound update
     mov  ax,sound_time_l
     call test_current_time   ;is it time for update ??
     jc   get_keyinput_loop   ;branch if not time
     mov  bx,sound_table
     mov  ax,[bx]             ;get next sound update value
     or   ax,ax               ;?? end of sound ??
     jz   turn_sound_off      ;branch if end sound
     call get_time_plus_ax    ;reset sound duration
     mov  sound_time_m,cx
     mov  sound_time_l,ax
     inc  bx
     inc  bx
     mov  ax,[bx]
     inc  bx
     inc  bx
     mov  sound_table,bx
     call sound_out_ax       ;go set sound frequency
     jmp  get_keyinput_loop  ;branch to keyboard loop
turn_sound_off:
     call sound_off
     mov  sound_flag,0
     jmp  get_keyinput_loop  ;branch to keyboard loop
get_keyinput   endp
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;************ ########## *************
;### code entry point #####
get_keyinput_to     proc near
;get keyboard data with timeout if no data available
;on entry AX has time duration in 18 ticks per second
;on exit if carry clear then AX has keyboard data
     public    get_keyinput_to
     push bx
     push cx
     push dx
     call get_time_plus_ax     ;add duration to current time
     mov  key_time_out_m,cx    ;set timeout value
     mov  key_time_out_l,ax
get_keyinput_to_loop:
     mov  ah,1                ;ready to scan keyboard data
     int  16H                 ;BIOS Call
     jz   sound_update_to     ;branch if no keyboard data
     mov  ah,0                ;ready to get key data
     int  16H                   ;BIOS Call
     pop  dx
     pop  cx
     pop  bx
     clc                        ;set keyboard data flag
     ret
get_keyinput_to_1:
     mov  cx,key_time_out_m     ;check for timeout
     mov  ax,key_time_out_l
     call test_current_time
     jc   get_keyinput_to_loop  ;branch if no timeout
     xor  ax,ax                 ;else timeout return condition
     pop  dx
     pop  cx
     pop  bx
     stc                        ;set no keyboard data flag
     ret
; ********  %%%%%%%  ********
sound_update_to:
     cmp  sound_flag,0        ;check for sound on????
     jz   get_keyinput_to_1   ;branch if sound off
     mov  cx,sound_time_m     ;else check for sound update
     mov  ax,sound_time_l
     call test_current_time
     jc   get_keyinput_to_1   ;branch if not ready for update
     mov  bx,sound_table
     mov  ax,[bx]
     or   ax,ax               ;test for end of table
     jz   turn_sound_off_to   ;branch if end of table data
     call get_time_plus_ax
     mov  sound_time_m,cx
     mov  sound_time_l,ax
     inc  bx
     inc  bx
     mov  ax,[bx]
     inc  bx
     inc  bx
     mov  sound_table,bx
     call sound_out_ax
     jmp  get_keyinput_to_1
turn_sound_off_to:
     call sound_off
     mov  sound_flag,0
     jmp  get_keyinput_to_1
get_keyinput_to     endp
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;************  @@@@@@@@@@  ************
;### code entry point #####
start_table_sound   proc near
 ;subroutine to start background sound output
 ;on entry BX indexes sound data table
     public    start_table_sound
     push ax
     push bx
     mov  ax,[bx]
     call get_time_plus_ax
     mov  sound_time_m,cx
     mov  sound_time_l,ax
     inc  bx
     inc  bx
     mov  ax,[bx]
     inc  bx
     inc  bx
     mov  sound_table,bx
     call sound_out_ax
     mov  sound_flag,0FFH
     pop  bx
     pop  ax
     ret
start_table_sound   endp

;************  ==========  *************
;### code entry point #####
flush_keyboard proc near
  ;utility to flush contents of keyboard buffer
     public    flush_keyboard
     mov  ah,1
     int  16H       ;BIOS Call  ;scan for keyboard data
     jz   flush_keyboard_x      ;branch if no keyboard data
     mov  ah,0                  ;else get keyboard data
     int  16H       ;BIOS Call
     jmp  flush_keyboard
flush_keyboard_x:
     ret
flush_keyboard endp

;*************  -----------  **************
sound_out_ax   proc near
  ;set sound out frequency to data value in AX
     push ax
     push ax
     cmp  sound_on_flag,0
     jne  sound_out_1
     in   al,61H         ;input port 61h
     or   al,3
     out  61H,al         ;output port 61h
sound_out_1:
     mov  al,0B6H
     out  43H,al         ;output port 43h
     pop  ax
     out  42H,al         ;output port 42h
     xchg al,ah
     out  42H,al         ;output port 42h
     mov  sound_on_flag,0FFH
     pop  ax
     ret
sound_out_ax   endp

;***********  $$$$$$$$$$  ************
;###### code entry point #######
sound_off proc near
   ;turn sound port off
     public    sound_off
     push ax
     cmp  sound_on_flag,0
     je   sound_off_exit
     in   al,61H         ;input port 61h
     and  al,0FCH
     out  61H,al         ;output port 61h
     mov  sound_on_flag,0
sound_off_exit:
     pop  ax
     ret
sound_off endp

;**************  %%%%%%%%%%  ***************
;with all CX:AX time values, CX is most significant
 ; and AX is least significant
get_current_time    proc near
;on exit CX:AX has 32 bit day clock value
 ; in 18.2 ticks per second
     push dx
          xor  ax,ax     ;set AH to zero
          int  1AH       ;BIOS Call get time
          mov  ax,dx
     pop  dx
     ret
get_current_time    endp

;****************************
get_time_plus_ax    proc near
;on entry AX has 16 bit value to add to current clock time
;on exit CX:AX has new 32 bit clock value
     push dx
     push ax
     xor  ax,ax
     int  1AH            ;BIOS Call
     pop  ax
     add  ax,dx
     adc  cx,0
     pop  dx
     ret
get_time_plus_ax    endp

;************  ########  ************
test_current_time   proc near
;on entry CX:AX has time value
 ; to be subtracted from the current time
;on exit if carry set then current time
 ; is less than CX:AX time
     push dx
     push cx
     push ax
     xor  ax,ax
     int  1AH            ;BIOS Call
     cmp  dx,18
     jb   test_current_time_2
test_current_time_1:
     pop  ax
     sub  dx,ax
     pop  dx
     sbb  cx,dx
     mov  cx,dx
     pop  dx
     ret
test_current_time_2:
     or   cx,cx
     jnz  test_current_time_1
     pop  ax      ;this is fix code for midnight factor
     pop  dx
     pop  dx
     clc          ;clear carry condition
     ret
test_current_time   endp
;*****************************************
     end


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲图片欧美一区| 在线播放中文字幕一区| 人人狠狠综合久久亚洲| 亚洲在线视频网站| 一级日本不卡的影视| 亚洲狠狠丁香婷婷综合久久久| 亚洲欧洲av一区二区三区久久| 国产精品私人自拍| 亚洲免费av观看| 亚洲成人综合网站| 奇米精品一区二区三区在线观看 | 日韩一级免费观看| 欧美一区二区视频在线观看| 欧美一区二区三区四区久久 | 一本大道久久a久久综合| jizzjizzjizz欧美| 在线看国产日韩| 欧美一区二区日韩一区二区| 久久综合色婷婷| 国产精品成人午夜| 亚洲国产成人av| 九九热在线视频观看这里只有精品| 久久国产精品一区二区| 国产高清在线观看免费不卡| 91香蕉国产在线观看软件| 欧美午夜在线一二页| 欧美一区二区日韩| 中文字幕乱码亚洲精品一区| 一个色综合av| 国产一区视频在线看| 日本道精品一区二区三区| 日韩一级在线观看| 中文字幕一区在线| 久久精品国产亚洲5555| www.亚洲精品| 欧美一区二区三区小说| 亚洲天堂久久久久久久| 蜜臀av性久久久久蜜臀aⅴ| 国产精品亚洲第一区在线暖暖韩国 | 国产日产欧美一区二区视频| 一卡二卡欧美日韩| 国产美女精品在线| 欧美三片在线视频观看 | 国产精品色在线| 热久久国产精品| yourporn久久国产精品| 欧美一区二区不卡视频| 亚洲私人影院在线观看| 国产一区二区三区在线观看精品 | 韩国av一区二区| 欧美日韩一区二区三区在线| 国产精品三级久久久久三级| 欧美aaaaaa午夜精品| 欧美性猛片aaaaaaa做受| 欧美国产在线观看| 精品一区二区三区香蕉蜜桃 | 三级欧美韩日大片在线看| 国产精品主播直播| 欧美大片日本大片免费观看| 一区二区三区日韩精品| 成人污污视频在线观看| 2020国产精品自拍| 久久国产夜色精品鲁鲁99| 欧美日韩中文字幕一区| 一区二区三区在线观看视频| 粉嫩av一区二区三区| 久久综合久久久久88| 日韩国产在线一| 欧美图区在线视频| 亚洲小说欧美激情另类| 色综合久久久网| 亚洲欧美日韩久久| 色婷婷国产精品| 一区二区不卡在线视频 午夜欧美不卡在| 成人av电影在线观看| 中文字幕精品一区二区精品绿巨人| 韩国成人在线视频| 精品国产百合女同互慰| 看片网站欧美日韩| 日韩欧美成人一区二区| 久久99久国产精品黄毛片色诱| 6080国产精品一区二区| 日本不卡高清视频| 欧美变态tickling挠脚心| 美女视频黄 久久| 久久久久久久久久久久久夜| 国产二区国产一区在线观看| 亚洲国产精品精华液ab| 91看片淫黄大片一级| 亚洲在线视频一区| 欧美一三区三区四区免费在线看 | 久久久www成人免费毛片麻豆| 狠狠色丁香婷婷综合久久片| 国产色综合久久| 不卡欧美aaaaa| 亚洲h精品动漫在线观看| 欧美一区二区三区四区高清| 久久精品国产亚洲高清剧情介绍| 国产亚洲1区2区3区| 色婷婷综合激情| 日韩高清一级片| 久久九九99视频| 色视频一区二区| 蜜桃视频在线观看一区| 欧美国产精品专区| 欧美最猛性xxxxx直播| 免费成人在线网站| 国产免费成人在线视频| 欧美视频在线一区| 国产精品一区2区| 一区二区在线看| 欧美tickle裸体挠脚心vk| 成人app软件下载大全免费| 天天综合日日夜夜精品| 国产日韩欧美一区二区三区乱码| 91麻豆成人久久精品二区三区| 日韩高清不卡一区二区三区| 亚洲国产精品v| 91精品国产91久久久久久最新毛片| 国产成人免费在线观看不卡| 亚洲综合视频在线| 国产校园另类小说区| 91精品欧美福利在线观看| 成人免费精品视频| 老司机午夜精品99久久| 一二三四社区欧美黄| 国产日韩欧美精品在线| 日韩一区二区免费高清| 91免费在线播放| 国产成人精品免费视频网站| 日韩和欧美一区二区三区| 日韩久久一区二区| 中文幕一区二区三区久久蜜桃| 在线不卡欧美精品一区二区三区| eeuss鲁一区二区三区| 国产一区二区三区av电影| 午夜天堂影视香蕉久久| 亚洲另类在线制服丝袜| 欧美激情自拍偷拍| 久久久国产精品麻豆| 日韩精品一区二区三区四区| 欧美日韩国产精品自在自线| 91社区在线播放| 91在线一区二区三区| 成人免费电影视频| 大陆成人av片| 成熟亚洲日本毛茸茸凸凹| 国产另类ts人妖一区二区| 精品一区二区三区av| 久久超级碰视频| 久久99久久久久久久久久久| 日韩精品亚洲一区二区三区免费| 亚洲国产精品麻豆| 亚洲mv在线观看| 日日夜夜精品视频天天综合网| 亚洲第一主播视频| 日日噜噜夜夜狠狠视频欧美人| 性欧美疯狂xxxxbbbb| 日韩在线一区二区三区| 青青青爽久久午夜综合久久午夜| 天堂精品中文字幕在线| 奇米亚洲午夜久久精品| 久草热8精品视频在线观看| 激情成人综合网| 国v精品久久久网| 91视频在线观看免费| 欧美午夜电影网| 日韩欧美三级在线| 国产区在线观看成人精品| 国产精品久久久一区麻豆最新章节| 国产精品欧美精品| 亚洲亚洲人成综合网络| 美女视频黄a大片欧美| 国产福利一区二区三区视频在线 | 亚洲国产欧美日韩另类综合| 偷窥少妇高潮呻吟av久久免费| 免费不卡在线观看| 成人免费精品视频| 欧美日韩一区二区三区视频| 日韩欧美电影一二三| 国产精品久久免费看| 天堂午夜影视日韩欧美一区二区| 国产一区在线观看麻豆| 99国产精品99久久久久久| 欧美日韩国产片| 国产日本欧洲亚洲| 亚洲午夜精品一区二区三区他趣| 久久99精品国产麻豆婷婷洗澡| 成人夜色视频网站在线观看| 欧美综合欧美视频| 久久久久高清精品| 亚洲高清中文字幕| 高清不卡一区二区在线| 欧美乱妇一区二区三区不卡视频| 精品国产一区二区在线观看| 亚洲综合色成人| 国产成人免费9x9x人网站视频| 欧美日韩情趣电影| 中文字幕亚洲区| 狠狠色丁香久久婷婷综|