⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 game.asm

📁 asm gun shot游戏源码,测试测试
💻 ASM
字号:
; 
; Small tt shot game(asm final), game process section

extrn	CALCUL:far, CHAR:far, CURSOR:far, INIT:far, LOGO:far, PRODUCE:far
extrn	READKEY:far, SETUP:far, SCROLL:far, TIMER:far, UPDATE:far  

include	data.asm 			; public data resources

code	segment
	assume ds:data, cs:code, ss:stack
Start:
	mov	ax, data
	mov	ds, ax

	call	far ptr LOGO		; game logo
	call	far ptr TIMER		; slay some time
	call	far ptr INIT		; init the screen
	call	far ptr SETUP		; set up the static string

	mov	cx, 0
GA_next:				; every 2 scroll down produce a char
	cmp	cx, 0
	jne	GA_no
	call	far ptr PRODUCE
	mov	cx, GRADE		; GRADE control the difficulty
GA_no:
	dec	cx
	call	far ptr UPDATE		; update the status
	push	BLUE			; push BLUE=1, here just as a number
	call	far ptr SCROLL		; scroll down one line
	call	far ptr TIMER		; slow time
	call	far ptr READKEY		; read keystroke
	jmp	GA_next

	mov	ah, 4ch			; should never be here
	int	21h
code	ends
	end Start

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -