var1.c
来自「Cypress公司Cy7c6xxxx芯片的USB键盘及USB鼠标的firmwar」· C语言 代码 · 共 38 行
C
38 行
#pragma option f0 /* remove page breaks from listing file */
/*
* CYC Code Development System
* Tutorial Example
* VAR1.C
* This code may be adapted for any purpose
* when used with the CYC Code Development
* System. No warranty is implied or given
* as to their usability for any purpose.
*
* (c) Copyright 2000 Byte Craft Limited
* 421 King St.N., Waterloo, ON, Canada, N2J 4E4
* VOICE: 1 (519) 888 6911
* FAX : 1 (519) 746 6751
* email: support@bytecraft.com
*
* REVISION HISTORY
* v1.00 AL 01/2000 Initial Version.
*/
#include <dev\c63413.h>
/* figure_a */
#pragma option RAMMAP
unsigned int arr[16]; /* 0x10 bytes at address 0x20 */
void main(void)
{
unsigned int i; /* allocated at address 0xe4 */
for(i=0;i<sizeof(arr);i++)
{
arr[i]=i;
}
while(1);
}
/* figure_a */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?