DATAS SEGMENT w dw 0 keybuf db 255 db 0 db 255 dup(0) ;定義鍵盤輸入需要的緩沖區(qū) DATAS ENDS STACKS SEGMENT db 200 dup(?) STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKS START: MOV AX,DATAS MOV DS,AX mov dx,offset keybuf ;用0a號(hào)功能,輸入一個(gè)字符串 mov ah,0ah ;用回車結(jié)束 int 21h mov dl,0ah ;再進(jìn)行換行,以便在下一行顯示轉(zhuǎn)換后的字符串 mov ah,2 int 21h ; push ax ; push dx ; mov dl,cl ; mov ah,02 ; int 21h ; pop dx ; pop ax mov bx,offset keybuf+1 ;取出字符串的字符個(gè)數(shù),作為循環(huán)的次數(shù) mov cl,[bx] mov ch,0 mov ax,0 again: inc bx mov ax,[w] push bx mov bx,16 mul bx pop bx ;是小寫字母,則轉(zhuǎn)換為大寫字母 mov [w],ax mov dl,[bx] ;取出一個(gè)字符, cmp dl,'9' jbe lab1 cmp dl,'F' jbe lab2 sub dl,32 lab2: sub dl ,07h lab1: sub dl,30h add [w],dx loop again mov ax,[w] mov bx,-1 push bx mov bx,10 lab3 :mov dx,0 div bx push dx cmp ax,0 jnz lab3 lab5: pop dx cmp dx,-1 jz lab4 add dl,30h mov ah,02 int 21h jmp lab5 ;循環(huán),處理完整個(gè)字符串 lab4: MOV AH,4CH INT 21H CODES ENDS END START
標(biāo)簽: 匯編
上傳時(shí)間: 2015-04-02
上傳用戶:wcc0310
一種帶寬闊展的小行化微帶天線
標(biāo)簽: antenna
上傳時(shí)間: 2015-05-05
上傳用戶:puzzle0612
C語(yǔ)言冒泡、插入法、選擇排序算法分析
標(biāo)簽: 排序 最大值 總和
上傳時(shí)間: 2015-06-03
上傳用戶:hxf709
斯坦福大學(xué)機(jī)器學(xué)習(xí)英文講義,Andrew ng 大神所寫。
標(biāo)簽: 機(jī)器學(xué)習(xí)
上傳時(shí)間: 2015-11-23
上傳用戶:384670111
理想的放大器 目前,廠商在線性IC研發(fā)上都有重大的突破。使IC型運(yùn)算放大器的特性和理想相當(dāng)接近。尤其在低頻操作下,OP Amp電路的工作情形實(shí)在太像一個(gè)理想放大器,幾乎與理論的推測(cè)完全相符。→理想的放大器該具備什麼特性?
標(biāo)簽: 算放大器原理
上傳時(shí)間: 2016-07-16
上傳用戶:WALTER
msp430The LDC1312 and LDC1314 are 2- and 4-channel, 1? Easy-to-use – minimal configuration required 12-bit inductance to digital converters (LDCs) for ? Measure up to 4 sensors with one IC inductive sensing solutions. With multiple channels ? Multiple channels support environmental and and support for remote sensing, the LDC1312 and aging compensation LDC1314 enable the performance and reliability benefits of inductive sensing to be realized at minimal? Multi-channel remote sensing provides lowest cost and power. The products are easy to use, onlysystem cost requiring that the sensor frequency be within 1 kHz ? Pin-compatible medium and high-resolution and 10 MHz to begin sensing. The wide 1 kHz to 10 options MHz sensor frequency range also enables use of very small PCB coils, further reducing sensing– LDC1312/4: 2/4-ch 12-bit LDC solution cost and size.– LDC1612/4: 2/4-ch 28
上傳時(shí)間: 2016-07-22
上傳用戶:tongmoonsky
迴歸分析的基本假設(shè) (一)固定自變項(xiàng)假設(shè)(fixed variable) (二)線性關(guān)係假設(shè)(linear relationship) (三)常態(tài)性假設(shè)(normality)
標(biāo)簽: 回歸分析 主成分分析
上傳時(shí)間: 2016-10-11
上傳用戶:Gower's
這個(gè)是技成培訓(xùn)里的科目。有需要請(qǐng)下載。如需要更多資料請(qǐng)聯(lián)系QQ1305222725
上傳時(shí)間: 2016-10-19
上傳用戶:jaby
#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i
標(biāo)簽: 查詢學(xué)會(huì)少年宮
上傳時(shí)間: 2016-12-29
上傳用戶:767483511
#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i<j;i++) printf("%5d",add[i]); if(i%5==0) printf("\n"); getch(); fclose(fp); } else printf("Sorry!Cannot find the word(^_^)"); } main() { char pd[10],choose='y'; int flag=1; while(flag) {printf("In put the word you want to seqarch:"); scanf("%s",pd); search(strlwr(pd)); printf("\nWould you want to continue?(Y/N):"); getchar(); scanf("%c",&choose); if((tolower(choose))=='n') flag=0; else flag=1; } printf("Thanks for your using!Bye-bye!\n"); getch(); }
標(biāo)簽: 學(xué)生專用
上傳時(shí)間: 2016-12-29
上傳用戶:767483511
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1