[作業]微算機實習單號之密碼神功!!

看板NTUST-EE-B95作者 (口齒伶俐大舌酣)時間16年前 (2007/11/07 12:42), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/1
據說~~單號的作業是輸入密碼 好像跟我們雙號上課練習一樣~~ 請笑納 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .8086 .model small include macro.h .stack 100 .data msg1 DB 0dh,0ah,"Enter the password:","$" msg3 DB "*","$" msg4 DB 0dh,0ah,"pass","$" msg5 DB 0dh,0ah,"error","$" pswd DB 5 dup(?) rpswd DB '1','2','3','4' .code .startup start: showstr msg1 mov di,0 mov bl,0dh enter: getcharx pswd[di] cmp bl,pswd[di] je next showstr msg3 inc di jmp enter next: mov di,0 mov cx,4 cmpere: mov bh,rpswd[di] cmp bh,pswd[di] jne error inc di Loop cmpere showstr msg4 jmp over error: showstr msg5 jmp start over: .exit end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 最好是不要照抄啦!!!!以後有的話才會在PO喔~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.229.42

11/07 13:07, , 1F
您真內行!
11/07 13:07, 1F

11/07 16:24, , 2F
看不懂......
11/07 16:24, 2F

11/07 20:48, , 3F
資優生唷~~
11/07 20:48, 3F
文章代碼(AID): #17CK8Vg7 (NTUST-EE-B95)