两个单片机控制8*8点阵的俄罗斯方块程序
纯为个人思路,无特殊,惊人语句….初学完的;
程序功能:最原始简单版俄罗斯方块
;硬件连接:接双色点阵
;晶振型号:12M
;单片机:STC89C52
;编写时间:
;编程人:
HANG BIT P2.0 ;点阵行输入
HW BIT P2.1
HZ BIT P2.2
LIE BIT P2.3 ;点阵列输入
LW BIT P2.4
LZ BIT P2.5
WEI BIT P2.6
DUAN BIT P2.7
XIAN EQU P1
BiaoX BIT 20H.0
Biao_z BIT 20H.1 ;按键是否按下标志
Biao_y BIT 20H.2
Biao_x BIT 20H.3
Dou_z BIT 20H.4 ;按键相应标志位
Ying_z BIT 20H.5
Dou_y BIT 20H.6
Ying_y BIT 20H.7
Dou_x BIT 21H.0
Ying_x BIT 21H.1
Biao_ZY BIT 21H.2
Biao_zt BIT 21H.3 ;开始、暂停标志
KEY_z BIT P0.0 ;左、右、旋转按键
KEY_y BIT P0.1
KEY_x BIT P0.2
ORG 0000H
AJMP Start
ORG 0003H
AJMP Int0_ser
ORG 000BH
AJMP T0_ser
ORG 0030H
;*************************