范文无忧网计划总结报告汇报

汇编语言程序神经打字游戏报告

01月09日 编辑 fanwen51.com

[初三物理上册教学计划格式模板汇编欣赏]下面是初三物理上册教学计划格式模板汇编欣赏,由小编整理分享,欢迎大家查阅,希望内容对您有所帮助。 【一】 一、教材分析 教材从全面提高学生素质的要求出发,在知识选材上,适当...+阅读

分数太少了。报告就不写了。这个分数只够源代码的。;-------------------------------------------------------------------------------- ;此模板是纯DOS程序代码,需要MASM5.0,编译时请使用"编译 ->DOS"方式。 ;-------------------------------------------------------------------------------- Init_game macro op1,op2,op3,op4,op5,op6 mov cx,00h mov dh,op1 mov dl,op2 op6: mov ah,02h mov bh,00h int 10h push cx mov ah,0ah mov al,op3 mov bh,00h mov cx,01h int 10h pop cx inc cx inc op4 cmp cx,op5 jne op6 endm clear_screen macro op1,op2,op3,op4 mov ah,06h mov al,00h mov bh,07h mov ch,op1 mov cl,op2 mov dh,op3 mov dl,op4 int 10h mov ah,02h mov bh,00h mov dh,00h mov dl,00h int 10h endm menu macro op1,op2,op3 mov ah,02h mov bh,00h mov dh,op1 mov dl,op2 int 10h mov ah,09h lea dx,op3 int 21h endm data segment linjiang db "Made by lin jiang$" no db "NO.:021411$" meg db "Let us have a game!!Come on!!$" meg1 db "**Select Menu**$" meg2 db "Please select the game speed,ESC to quit.$" meg3 db "1.Very slow Too easy,speed up!$" meg4 db "2.Slow Everybody can deal.$" meg5 db "3.Nomal I think you can deal!$" meg6 db "4.Fast A challenge.Pay attention!$" meg7 db "5.Very Fast Too hard,Have a try?$" meg8 db "6.Fastest Are you crazy??$" meg9 db "*Select the number among 1-6 and press ENTER to start!*$" meg10 db "Game Speed Select:$" hotkey db "When you are playing games:$" hotkey1 db "ESC to return to menu$" hotkey2 db "SPACE to pause the game$" hotkey3 db "Press any key to play games......$" hotkey4 db "Are you ready??$" failmeg db "The letter is arrive the bottom, You are lost ! :($" failmeg0 db "Press ENTER to go on......$" failmeg1 db "Game is over!$" failmeg2 db "Press ENTER to return menu and press ESC to exit!$" failmeg3 db "Bye-Bye!Thank for your playing!!$" failmeg4 db "Press any key to quit......$" speed dw 00d,1200d,800d,600d,400d,200d,100d letters db "jwmilzoeucgpravskntxhdyqfb" db "iytpkwnxlsvxrmofzhgaebudjq" db "nwimzoexrphysfqtvdcgljukda" letters_bak db "jwmilzoeucgpravskntxhdyqfb" db "iytpkwnxlsvxrmofzhgaebudjq" db "nwimzoexrphysfqtvdcgljukda" letter_counter db 0 life_flag db 78 dup(0) position_flag db 78 dup(0) present_position db 1 data ends stack segment para stack 'stack' db 64 dup(0) stack ends code segment main proc far assume cs:code,ds:data,ss:stack start: mov ax,data mov ds,ax mov letter_counter,00h mov present_position,1 lea si,position_flag mov ah,00h mov cx,00h init_postion_flag: mov [si],ah inc si inc cx cmp cx,78d jne init_postion_flag lea di,letters lea si,letters_bak mov cx,00h init_letters: mov ah,[si] mov [di],ah inc si inc di inc cx cmp cx,78d jne init_letters mov ah,00h lea si,life_flag mov cx,00h init_life_flag: mov [si],ah inc si inc cx cmp cx,78d jne init_life_flag mov cx,00h mov ah,01h or ch,00010000b int 10h clear_screen 00d,00d,24d,79d Init_game 00d,00d,0ah,dl,80d,nextsign1 Init_game 24d,00d,0ah,dl,80d,nextsign2 Init_game 00d,00d,0ah,dh,25d,nextsign3 Init_game 00d,79d,0ah,dh,25d,nextsign4 menu 01d,15d,meg ;菜单信息的宏展开 menu 01h,61d,linjiang menu 03d,20d,meg1 menu 03d,68d,no menu 05d,15d,meg2 menu 07d,15d,meg3 menu 09d,15d,meg4 menu 11d,15d,meg5 menu 13d,15d,meg6 menu 15d,15d,meg7 menu 17d,15d,meg8 menu 19d,15d,meg9 menu 22d,15d,meg10 input: mov ah,02h mov bh,00h mov dh,22d mov dl,33d int 10h mov ah,0ah mov al," " mov bh,00h mov cx,01h int 10h mov ah,01h int 21h retry: cmp al,"1" je speed1 cmp al,"2" je speed2 cmp al,"3" je speed3 cmp al,"4" je speed4 cmp al,"5" je speed5 cmp al,"6" je speed6 cmp al,1bh je to_over0 jmp input to_over0:jmp over speed1: mov ah,01h int 21h cmp al,0dh jne otherkey mov ax,speed+2 mov speed,ax jmp begin speed2: mov ah,01h int 21h cmp al,0dh jne otherkey mov ax,speed+4 mov speed,ax jmp begin speed3: mov ah,01h int 21h cmp al,0dh jne otherkey mov ax,speed+6 mov speed,ax jmp begin speed4: mov ah,01h int 21h cmp al,0dh jne otherkey mov ax,speed+8 mov speed,ax jmp begin speed5: mov ah,01h int 21h cmp al,0dh jne otherkey mov ax,speed+10 mov speed,ax jmp begin speed6: mov ah,01h int 21h cmp al,0dh jne otherkey mov ax,speed+12 mov speed,ax jmp begin otherkey: ; 处理重复输入的代码段 push ax mov ah,02h mov bh,00h mov dh,22d mov dl,34d int 10h mov ah,0ah mov al," " mov bh,00h mov cx,01h int 10h mov ah,02h mov bh,00h mov dh,22d mov dl,33d int 10h pop ax mov dx,ax mov ah,02h int 21h jmp retry begin: clear_screen 01d,01d,23d,78d menu 0...

延伸阅读:

2016房地产销售员个人总结模板汇编参考下面是2016房地产销售员个人总结模板汇编参考,由小编整理分享,希望能满足大家的阅读需求,看完后你能喜欢。 模板一: 光阴似箭,岁月如梭,转眼间已接近年底,蓦然回首己入司已大半年,在...

2017年三八妇女节活动总结汇编3月8日是国际劳动妇女节,又称三八节、妇女节、三八国际妇女节。下面是整理的2017年三八妇女节活动总结汇编,供各位阅读,希望对您有帮助。 【2017三八妇女节活动总结范文一】 根...

最新世界气象日宣传活动总结汇编今天是世界气象日,下面是小编整理的最新世界气象日宣传活动总结汇编,希望内容对您有帮助。更多精彩内容敬请关注。 【最新世界气象日宣传活动总结篇一】 今年3月23日是第x个世...

小学生寒假生活计划汇编寒假并不是单纯、无意义的休息时间,而是调整紧张的心理状态,消化、沉淀上学期学习的知识,并为下个学期的学习生活储备精力。下面是特意准备的小学生寒假生活计划汇编,希望能够满...

2017宿舍违章电器检讨书汇编检讨书是一种常用的日常应用文,是犯了错误的个人或领导向当事人或组织写出的检讨错误、并保证绝不再犯的书信。下面是特意整理的2017宿舍违章电器检讨书汇编,希望内容能够满足...

工程会议纪要汇编会议纪要范文一 一 工程名称:滨河景秀二期工程8#住宅楼 二 会议时间: 2014 年 5月24日 三 会议地点:施工单位办公室 四 主持人: 黄平 五 与会人员:(详参会人员详见签到表) 六 会...

汇编语言程序设计实验报告你的程序不完整,以下为完整程序:datarea segmentDATA1 dw 5 DATA2 dw 4DATA3 dw ?DATA4 dw ?datarea endsprognam segmentmain proc far assume cs:prognam,ds:datareastart:...

汇编语言程序设计1、用减奇数法开平方。(算法:N个自然数中的奇数之和等于N的平方。) 程序清单:内存datum中存要开方数 ,result中存放结果 data segment datum db 16 result db 0 data ends ss_seg...

汇编语言程序设计红旗慢慢升起code segment assume cs:code start: push cs pop ds mov ax,12h int 10h mov ax,0a000h mov es,ax mov ah,2;画旗杆 call color mov di,510 mov ax,0aeh mov cx,450 n1:stos...

推荐阅读
图文推荐
栏目列表