freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

《單片機原理及應(yīng)用》課程設(shè)計報告-基于mcs-51單片機的俄羅斯方塊游戲設(shè)計-文庫吧

2025-10-14 10:17 本頁面


【正文】 eentrant 。 functions and initialized it: 。 。 h Stack Space for reentrant functions in the SMALL model. 。 q IBPSTACK: Enable SMALL model reentrant stack 。 i Stack space for reentrant functions in the SMALL model. IBPSTACK EQU 0 。 set to 1 if small reentrant is used. 。 o IBPSTACKTOP: End address of SMALL model stack 0x00xFF 。 i Set the top of the stack to the highest location. IBPSTACKTOP EQU 0xFF +1 。 default 0FFH+1 。 /h 。 。 h Stack Space for reentrant functions in the LARGE model. 。 q XBPSTACK: Enable LARGE model reentrant stack 。 i Stack space for reentrant functions in the LARGE model. XBPSTACK EQU 0 。 set to 1 if large reentrant is used. 。 o XBPSTACKTOP: End address of LARGE model stack 0x00xFFFF 。 i Set the top of the stack to the highest location. XBPSTACKTOP EQU 0xFFFF +1 。 default 0FFFFH+1 。 /h 。 。 h Stack Space for reentrant functions in the COMPACT model. 。 q PBPSTACK: Enable COMPACT model reentrant stack 。 i Stack space for reentrant functions in the COMPACT model. PBPSTACK EQU 0 。 set to 1 if pact reentrant is used. 。 。 o PBPSTACKTOP: End address of COMPACT model stack 0x00xFFFF 。 i Set the top of the stack to the highest location. PBPSTACKTOP EQU 0xFF +1 。 default 0FFH+1 。 /h 。/h 14 。 。 。 Memory Page for Using the Compact Model with 64 KByte xdata RAM 。 eCompact Model Page Definition 。 。 iDefine the XDATA page used for PDATA variables. 。 iPPAGE must conform with the PPAGE set in the linker invocation. 。 。 Enable pdata memory page initalization PPAGEENABLE EQU 0 。 set to 1 if pdata object are used. 。 。 o PPAGE number 0x00xFF 。 i uppermost 256byte address of the page used for PDATA variables. PPAGE EQU 0 。 。 o SFR address which supplies uppermost address byte 0x00xFF 。 i most 8051 variants use P2 as uppermost address byte PPAGE_SFR DATA 0A0H 。 。 /e 。 。 Standard SFR Symbols ACC DATA 0E0H B DATA 0F0H SP DATA 81H DPL DATA 82H DPH DATA 83H NAME ?C_STARTUP ?C_C51STARTUP SEGMENT CODE ?STACK SEGMENT IDATA RSEG ?STACK DS 1 EXTRN CODE (?C_START) PUBLIC ?C_STARTUP CSEG AT 0 ?C_STARTUP: LJMP STARTUP1 15 RSEG ?C_C51STARTUP STARTUP1: IF IDATALEN 0 MOV R0,IDATALEN 1 CLR A IDATALOOP: MOV @R0,A DJNZ R0,IDATALOOP ENDIF IF XDATALEN 0 MOV DPTR,XDATASTART MOV R7,LOW (XDATALEN) IF (LOW (XDATALEN)) 0 MOV R6,(HIGH (XDATALEN)) +1 ELSE MOV R6,HIGH (XDATALEN) ENDIF CLR A XDATALOOP: MOVX @DPTR,A INC DPTR DJNZ R7,XDATALOOP DJNZ R6,XDATALOOP ENDIF IF PPAGEENABLE 0 MOV PPAGE_SFR,PPAGE ENDIF IF PDATALEN 0 MOV R0,LOW (PDATASTART) MOV R7,LOW (PDATALEN) CLR A PDATALOOP: MOVX @R0,A INC R0 DJNZ R7,PDATALOOP ENDIF IF IBPSTACK 0 EXTRN DATA (?C_IBP) MOV ?C_IBP,LOW IBPSTACKTOP ENDIF 16 IF XBPSTACK 0 EXTRN DATA (?C_XBP) MOV ?C_XBP,HIGH XBPSTACKTOP MOV ?C_XBP+1,LOW XBPSTACKTOP ENDIF IF PBPSTACK 0 EXTRN DATA (?C_PBP) MOV ?C_PBP,LOW PBPSTACKTOP ENDIF MOV SP,?STACK1 。 This code is required if you use with Banking Mode 4 。h Code Banking 。 q Select Bank 0 for Mode 4 if 0 。 i Initialize bank mechanism to code bank 0 when using with Banking Mode 4. EXTRN CODE (?B_SWITCH0) CALL ?B_SWITCH0 。 init bank mechanism to code bank 0 endif 。/h LJMP ?C_START END include include include define X_START 5 define Y_START 0 define MIN_SLOW_SPEED 300 define BX_START 30 define BY_START 15 define Nothing 100 //全局?jǐn)?shù)據(jù) 17 code uchar Game_Char[]={0x27,0x41,0x4d,0x45}。 code uchar Over_Char[]={0x2f,0x56,0x45,0x52}。 static uchar xx,yy。 //方塊的位置 static uint Game_Score=0。 static uchar xdata Platform[14][21]。 //游戲平臺數(shù)據(jù) static uchar This_shape。 //當(dāng)前形狀 static uchar Next_shape=0。 static uint Game_Speed=MIN_SLOW_SPEED。 //等級速度,正常情況,方塊下降的速度 static uchar Game_Stop=1。 static uchar Game_Level=0。 ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// /////////方塊形狀的定義 ////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// struct POINT{ uchar x。 uchar y。 }。 struct SHAPE{ struct POINT point[4]。 uchar next。 //下一個形狀 } xdata shape[19]={ { 1,0,0,1,1,1,2,1,1 }, { 1,0,1,1,2,1,1,2,2 }, { 0,0,1,0,2,0,1,1,3 }, { 1,0,0,1,1,1,1,2,0 }, { 1,0,2,0,1,1,1,2,5 }, { 0,0,1,0,2,0,2,1,6 }, { 2,0,2,1,2,2,1,2,7 }, { 0,0,0,1,1,1,2,1,4 }, { 1,0,2,0,
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1