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

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

?? aa.asm

?? 通訊錄 課程設計 可以進行查詢修改刪除等功能
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
;message list
dataseg segment
        savebloks dw 32*6 dup (?)
        titstr1   db 'Name    List$'
        titstr2   db 'Phone    List$'
        namcolor  db 1eh           ;name space color
        phcolor   db 1eh           ;phone sapce color
        titcolor  db 01110000b           ;title color
        ibcolor   db 01110000b           ;infobox color
        cmdlcolor db 00100100b           ;command line color
        msgcolor  db 01100111b
        msgadr    dw 3 dup(0)
        handle    dw ?
        showin    db 1

        searchstr   db 30 dup(' ')
        searchphone db 30 dup(' ')
        searchn     db 0

        exactmatch db 0
        lastone    db 0


        inputbuf  db 34
        actlen    db ?
        inputstr  db 34 dup(' ')

 

        infomsg1  db 'Info: Give your command below                $'
        infomsg2  db 'Warning: Unanalysable command,type again     $'
        infomsg3  db 'Info: Input your name below                  $'
        infomsg4  db 'Info: Input your phone number below          $'
        infomsg5  db 'Info: Input the number of item you want below$'

        msgempty  db '<Empty List>$'
        msgeol    db '<End Of List>$'

        msg0      db '       Welcome to use         '
        msg00     db '    G-Adresser  0.9 beta      '
        msg000    db '     Write by Gengyiting      '
        msgblank  db '                                                         ','$'
        pathnam   db 'NAME.DAT',0
        msg10     db 'Press any key to continue.....'
        msg1      db '    Cannot find Name.dat      '
        msg2      db '  Program Will Creat the File '
        msg3      db '        ..\NAME.DAT           '
        msg4      db '    Open File Successfully    '
        msg5      db '       Creat File Fail        '
        msg6      db '      Program Terminate       '
        msg7      db '    Creat File Successfully   '
        msg8      db '    Read file failed,exit     '
        msg9      db '    Write file failed,exit    '
        msgfind   db '   The item you found is:     '
        msgferr   db '    Cannot find the item      '
        msgferr2  db '     Check  your input!       '

        ;in big size
        filebuf   dw   00    
        arraybuf  dw   250 dup(0)
        itemlist  db   250 dup(30 dup(0),20 dup(0))
        teststr1  db  30 dup('1'),20 dup('2')
        teststr2  db  30 dup('5'),20 dup('6')

 

dataseg ends

codeseg segment

        assume cs:codeseg,ds:dataseg,es:dataseg,ss:dataseg

 

main    proc far
        push ds
        xor  ax,ax
        push ax
        mov  ax,dataseg
        mov  ds,ax
        mov  es,ax

        call setscrmode
        call clrscr
        call buildframe
        lea  si,msg0
        mov  msgadr,si
        lea  si,msg00
        mov  msgadr+2,si
        lea  si,msg000
        mov  msgadr+4,si
        call showmsg
        call findfile
        call showitems
        call getcommand                 ;this is the main subprogram

        ret
main    endp

 

setscrmode proc near
        mov  ah,0
        mov  al,3
        int  10h
        ret
setscrmode endp

clrscr  proc near
        mov  ax,0619h
        mov  cx,0
        mov  dx,184fh
        mov  bh,1eh       ;here is color value
        int  10h
        ret
clrscr  endp

gotoxy  proc near
        push ax
        push bx
        mov  ah,2
        mov  bh,0
        int  10h
        pop  bx
        pop  ax
        ret
gotoxy  endp

hidecursor proc near
        mov  ah,3
        mov  bh,0
        int  10h
        or   ch,30h
        mov  ah,1
        int  10h
        ret
hidecursor endp

showcursor proc near
        mov  bh,0
        mov  ah,3
        int  10h
        mov  ah,1
        mov  cx,0607h
        int  10h
        ret
showcursor endp

waitfk  proc near
        mov  ah,0h
        int  16h
        ret
waitfk  endp

showmsg proc near
        call  hidecursor
        lea  si,savebloks       ;save original scr
        mov  cx,0
        mov  dh,8
  l1:
        mov  cl,0
        inc  dh
        mov  dl,23
  l2:
        inc  dl
        call gotoxy
        mov  ah,8
        mov  bh,0
        int  10h
        mov  [si],al
        inc  si
        mov  [si],ah
        inc  si
        inc  cl
        cmp  cl,32
        jne  l2
        inc  ch
        cmp  ch,6
        jne  l1                 ;save scr end here


        mov  ax,0600h           ;creat a window in the scr
        mov  bh,msgcolor        ;msgcolor 
        mov  ch,9
        mov  cl,24
        mov  dh,14
        mov  dl,55
        int  10h
        call drawmsgbox         ;creating  end here
        call waitfk


        lea  si,savebloks
        mov  cx,0
        mov  dh,8
  l11:
        mov  cl,0
        inc  dh
        mov  dl,23
  l21:
        inc  dl
        call gotoxy
        mov  ah,9
        mov  al,[si]
        inc  si
        mov  bl,[si]
        inc  si
        push cx
        mov  cx,1
        mov  bh,0
        int  10h
        pop  cx
        inc  cl
        cmp  cl,32
        jne  l21
        inc  ch
        cmp  ch,6
        jne  l11
        call showcursor
        ret
showmsg endp

drawmsgbox proc near
        mov  cx,0
        mov  dh,9
  mbl1: mov  cl,0
        mov  dl,24
  mbl2:
        inc  dl
        call gotoxy
        mov  ah,0ah
        mov  al,'?
        push  cx
        mov  cx,1
        mov  bh,0
        int  10h
        pop  cx
        inc  cl
        cmp  cl,31
        jne  mbl2
        inc  ch
        add  dh,5
        cmp  ch,2
        jne  mbl1

        mov  cx,0
        mov  dl,24
  mbll1:
        mov  cl,0
        mov  dh,9
  mbll2:
        inc  dh
        call gotoxy
        mov  ah,0ah
        mov  al,'?
        push cx
        mov  bh,0
        mov  cx,1
        int  10h
        pop  cx
        inc  cl
        cmp  cl,5
        jne  mbll2
        inc  ch
        add  dl,31
        cmp  ch,2
        jne  mbll1

        mov  cx,1
        mov  bh,0
        mov  dh,9
        mov  dl,24
        call gotoxy
        mov  ah,0ah
        mov  al,'?
        int  10h
        add  dh,5
        call gotoxy
        mov  al,'?
        int  10h
        add  dl,31
        call gotoxy
        mov  al,'?
        int  10h
        mov  dh,9
        mov  dl,24+31
        call gotoxy
        mov  al,'?
        int  10h

        mov  cx,3
        mov  dh,9
        mov  dl,25
        lea  si,msgadr
  shmsg:
        inc  dh
        mov  bp,[si]
        push cx
        mov  cx,30
        add  si,2
        mov  bl,msgcolor
        mov  bh,0
        mov  al,0
        mov  ah,13h
        int  10h
        pop  cx
        loop shmsg

        

 

        lea  bp,msg10
        mov  cx,30
        mov  dh,13
        mov  dl,25
        mov  bl,msgcolor
        and  bl,0f0h
        or   bl,0fh
        mov  bh,0
        mov  al,0
        mov  ah,13h
        int  10h
        ret
drawmsgbox endp

findfile  proc near                            ;find file ,exist open
        mov  ah,3dh                            ;not exist ,creat
        mov  al,2
        lea  dx,pathnam
        int  21h
        jc   fif                               ;jump when file not exist
        mov  handle,ax
        call readfile
        lea  si,msg4
        mov  msgadr,si
        lea  si,msgblank
        mov  msgadr+2,si
        lea  si,msg3
        mov  msgadr+4,si
        call showmsg
        ret
   fif:
        lea  si,msg1
        mov  msgadr,si
        lea  si,msg2
        mov  msgadr+2,si
        lea  si,msg3
        mov  msgadr+4,si
        call showmsg

        mov  ah,3ch
        mov  al,0
        mov  cx,0
        lea  dx,pathnam
        int  21h
        jc   ffwrong
        mov  handle,ax
        lea  si,msg7            ;creatfile
        mov  msgadr,si
        lea  si,msg3
        mov  msgadr+2,si
        lea  si,msgblank
        mov  msgadr+4,si
        call showmsg
        call fillitem 
        ret
   ffwrong:
        lea  si,msg5
        mov  msgadr,si
        lea  si,msg6
        mov  msgadr+2,si
        lea  si,msgblank
        mov  msgadr+4,si
        call showmsg
        call exitpro            ;exit when creat failed
findfile  endp
        
readfile proc near                      ;read items from file when open
        mov  ah,3fh
        mov  bx,handle
        mov  cx,251*2+50*250
        lea  dx,filebuf
        int  21h
        jnc  rfret
        lea  si,msg8
        mov  msgadr,si
        lea  si,msgblank
        mov  msgadr+2,si
        mov  msgadr+4,si
        call showmsg
        call exitpro
 rfret:
        ret

readfile endp

 


exitpro proc near                       ;exit with err code
        mov  al,1
        mov  ah,4ch
        int  21h
exitpro endp
        

 

fillitem proc near                      ;fill items when creatfile 
        mov  bx,handle
        mov  ah,40h
        mov  cx,50*250+251*2
        lea  dx,filebuf
        int  21h
        jc  fierr
        ret
   fierr:                               ;write file error
        lea  si,msg9
        mov  msgadr,si
        lea  si,msgblank
        mov  msgadr+2,si
        mov  msgadr+4,si
        call showmsg
        call exitpro
                                    
       
fillitem endp


getcommand proc  near
        call showcursor
   gcinput:
        mov  dh,23
        mov  dl,0
        call gotoxy
        lea  dx,infomsg1
        mov  ah,09h
        int  21h
   gcinputerr:
        call clrcmdline
        call clrinputstr
        call gotoxy
        mov  ah,0ah
        lea  dx,inputbuf
        int  21h
        cmp  actlen,0
        ja   getcom
        jmp  gcinput
   getcom:
        lea  si,inputstr
        cmp  byte ptr[si],'/'
        je   gcnext
        mov  dh,23
        mov  dl,0
        call gotoxy
        lea  dx,infomsg2
        mov  ah,09h
        int  21h
        jmp  gcinputerr
                                   ;need coding
 gcnext:
        inc  si
        mov  al,[si]
        cmp  al,'A'
        jne  gc1

        cmp  byte ptr filebuf,250

        jae  gcinput              
        call getname
        call clrcmdline
        call clrinputstr
        call getphone
        call additem
        jmp  gcinput
 gc1:   cmp  al,'D'
        jne  gc2
        call delitem
        jmp  gcinput


 gc2:   cmp  al,'E'
        jne  gc3
        call edititem
        jmp  gcinput


 gc3:   cmp  al,'S'
        jne  gc4
        call getname
        call search

        lea  si,filebuf
        sub  di,si
        shr  di,1
        mov  ax,di
        dec  ax
        mov  bl,50
        mul  bl
        add  si,ax
        add  si,251*2  
        mov  cx,30
        lea  di,searchstr
        cld
        rep  movsb
        mov  cx,20
        lea  di,searchphone
        cld
        rep  movsb
        lea  si,msgfind
        mov  msgadr,si
        lea  si,searchstr
        mov  msgadr+2,si
        lea  si,searchphone
        mov  msgadr+4,si
        call showmsg
        jmp  gcinput

 

 gc4:   cmp  al,'N'
        jne  gc5
        call getsearchn
        cmp  searchn,250
        jbe  startsearch
        mov  al,byte ptr filebuf
        cmp  searchn,al
        jbe  startsearch
   nomatchitem:

        lea  si,msgferr
        mov  msgadr,si
        lea  si,msgblank
        mov  msgadr+2,si
        lea  si,msgferr2
        mov  msgadr+4,si
        call showmsg
        jae  gcinput     
   startsearch:   

        call searchnitem
        cmp  lastone,0ffh
        je   nomatchitem

        lea  si,filebuf
        sub  di,si
        shr  di,1
        mov  ax,di
        dec  ax
        mov  bl,50
        mul  bl
        add  si,ax
        add  si,251*2  
        mov  cx,30
        lea  di,searchstr
        cld
        rep  movsb
        mov  cx,20
        lea  di,searchphone
        cld

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕精品一区| 亚洲国产高清在线观看视频| 69av一区二区三区| 国产精品国产馆在线真实露脸| 亚洲制服丝袜在线| 国产.欧美.日韩| 91精品国产黑色紧身裤美女| 日本一区二区三级电影在线观看| 五月开心婷婷久久| 91麻豆免费看| 亚洲国产精品成人综合| 国内精品国产成人| 欧美一区二区国产| 性久久久久久久久| 色婷婷av一区二区| 国产精品久久久久久久第一福利| 国产久卡久卡久卡久卡视频精品| 3751色影院一区二区三区| 一区二区三区中文字幕精品精品| 成人精品免费网站| 国产女同性恋一区二区| 国产麻豆精品theporn| 欧美v国产在线一区二区三区| 午夜久久久久久久久| 在线亚洲人成电影网站色www| 国产精品情趣视频| 成人免费视频视频| 中文字幕+乱码+中文字幕一区| 国产精一区二区三区| 337p粉嫩大胆色噜噜噜噜亚洲| 首页亚洲欧美制服丝腿| 4438x亚洲最大成人网| 婷婷久久综合九色综合伊人色| 欧美视频一区二区| 午夜久久电影网| 欧美一级片在线| 久久爱www久久做| 久久午夜电影网| www.激情成人| 亚洲精品写真福利| 欧美日韩三级一区二区| 日韩影院精彩在线| 亚洲综合一二区| 首页国产欧美久久| 另类专区欧美蜜桃臀第一页| 欧美性一级生活| 色av综合在线| 欧美精品vⅰdeose4hd| 日韩电影在线免费观看| 一色屋精品亚洲香蕉网站| 91精品福利在线一区二区三区| 懂色av一区二区三区免费看| 日韩影院精彩在线| 亚洲一区中文日韩| 亚洲丝袜制服诱惑| 国产视频亚洲色图| 欧美成人女星排行榜| 欧美日韩一区在线观看| av高清不卡在线| 国产精品乡下勾搭老头1| 精品一区二区三区免费视频| 婷婷国产v国产偷v亚洲高清| 亚洲永久免费视频| 亚洲精品亚洲人成人网在线播放| 亚洲欧洲日本在线| 中文字幕第一区| 欧美韩日一区二区三区四区| 精品欧美一区二区久久| 日韩欧美你懂的| 91精品国产91热久久久做人人| 欧美天堂亚洲电影院在线播放| 成人av片在线观看| 久久天天做天天爱综合色| 91精品在线免费| 欧美精品电影在线播放| 欧美日韩国产123区| 欧美性猛交xxxxxx富婆| 欧美视频自拍偷拍| 欧美日韩黄色影视| 日韩一区二区三免费高清| 欧美一区二视频| 日韩精品一区二区在线观看| 91精品国产高清一区二区三区蜜臀 | 亚洲一本大道在线| 亚洲一级不卡视频| 亚洲国产视频在线| 免费成人av在线播放| 久久国产三级精品| 国精产品一区一区三区mba视频 | 欧美日韩不卡在线| 日韩欧美一二三区| 亚洲精品在线免费观看视频| 精品国精品国产尤物美女| 精品国产伦一区二区三区观看方式 | 欧美一区二区三区免费大片 | 久久青草欧美一区二区三区| 国产女人水真多18毛片18精品视频 | 麻豆传媒一区二区三区| 韩国一区二区在线观看| 成人毛片视频在线观看| 色综合色狠狠天天综合色| 欧美日韩精品系列| 精品欧美一区二区三区精品久久 | 免费亚洲电影在线| 激情文学综合网| 成人app软件下载大全免费| 欧美在线不卡视频| 日韩一区二区三区视频在线观看| 久久久九九九九| 有码一区二区三区| 美女视频一区在线观看| 99热这里都是精品| 欧美精品在线观看一区二区| 久久久久国产精品麻豆ai换脸| 亚洲欧美日韩在线| 男男gaygay亚洲| jlzzjlzz欧美大全| 日韩一区二区在线观看| 日韩一区日韩二区| 日本特黄久久久高潮 | 日本精品一区二区三区高清 | 亚洲欧美另类在线| 麻豆中文一区二区| 91视频国产观看| 久久在线免费观看| 一区二区日韩电影| 国产白丝精品91爽爽久久 | 日韩欧美国产一区二区三区 | 国产日韩欧美麻豆| 日韩和欧美一区二区| 成人午夜在线免费| 欧美一级免费大片| 亚洲美女屁股眼交| 国精产品一区一区三区mba视频| 欧亚一区二区三区| 欧美极品另类videosde| 日本成人在线网站| 在线观看日韩精品| 国产精品理论在线观看| 免费高清在线视频一区·| av资源网一区| 精品一区二区三区视频| 久久精品欧美一区二区三区麻豆| 91行情网站电视在线观看高清版| www.99精品| 久久久国际精品| 日本aⅴ亚洲精品中文乱码| 91同城在线观看| 国产欧美精品一区二区三区四区| 看片的网站亚洲| 欧美一卡在线观看| 午夜精品久久久久久久蜜桃app| 91浏览器打开| 1024精品合集| 国产成人综合视频| 26uuu国产在线精品一区二区| 日韩精品成人一区二区三区| 欧美日韩美女一区二区| 一片黄亚洲嫩模| 色综合久久综合中文综合网| 国产精品系列在线| 国产iv一区二区三区| 久久久久久一二三区| 激情文学综合网| 欧美精品一区二区三区蜜桃 | 欧美高清在线视频| 国产精品18久久久久| 久久亚洲一区二区三区明星换脸| 免费欧美在线视频| 日韩欧美中文字幕精品| 美女诱惑一区二区| 欧美一区二区在线不卡| 久久久久久久综合色一本| 国产一区二区三区在线观看免费视频| 91麻豆精品国产91久久久久久久久| 亚洲一区二区在线免费看| 欧美亚洲自拍偷拍| 天堂一区二区在线| 91麻豆精品国产无毒不卡在线观看| 日本亚洲三级在线| 欧美精品一区二区精品网| 国产成人在线电影| 亚洲欧美视频一区| 欧美日韩国产综合久久| 蜜臀av在线播放一区二区三区| 欧美一区二区三区公司| 国产一区二区三区免费观看| 中文字幕第一区| 欧美色综合久久| 韩国女主播成人在线观看| 国产欧美日韩亚州综合| 成人激情动漫在线观看| 亚洲丝袜精品丝袜在线| 欧美日韩三级在线| 国产乱码精品一品二品| 亚洲激情欧美激情| 日韩一区二区在线免费观看| 懂色中文一区二区在线播放| 亚洲美女屁股眼交| 精品欧美一区二区在线观看|