life.s

来自「str912...pcb ..dcaaa」· S 代码 · 共 59 行

S
59
字号
######################################################### Game of Life#### Name     :## College  :## CRSID    :## Date     :#######################################################	#include "regdef.h"	.previous	.text	.set noreorder	.set nomacro	.set nobopt	.align 2	.ent main    main:	# TODO: Initialisation		    main.loop:	# TODO: Main loop		j main.loop	nop	#########################################################----------------------------------------------## FUNCTION TO TOGGLE A CELL##----------------------------------------------    toggle:	# TODO: Toggle cell that's clicked on		jr ra	nop#########################################################----------------------------------------------## FUNCTION TO GIVE THE NEXT STATE##----------------------------------------------## Live != 0## Dead == 0##----------------------------------------------    nextstate:	# TODO: Calculate the next state		jr ra	nop	#######################################################		.end main#include "serialio.S"	.data	.align 2	.comm store_data,2048,4

⌨️ 快捷键说明

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