|
本人菜鸟,用的lpc2148,realview下编译
void draw_line(unsigned int x1,unsigned int y1) (1)
{
unsigned int x,y; (2)
for(x=0;x
{
y=x1/y1; (4)
}
}
...
void display_mypic1(void)
{
draw_line(127,63);
...
}
在draw_line(unsigned int x1,unsigned int y1)第一次运行过(4)之后x1的值变为0x00000A34
不知何故?
|
|