trying to speed things up a bit
This commit is contained in:
parent
cc31473aaa
commit
431572f223
1 changed files with 2 additions and 17 deletions
19
src/main.c
19
src/main.c
|
@ -27,13 +27,6 @@ void clearHiRes() {
|
|||
}
|
||||
}
|
||||
|
||||
void fillHiRes() {
|
||||
for (i =0;i< 8000; i++)
|
||||
{
|
||||
*(BYTE*)(0x2000+i) = 0xff;
|
||||
}
|
||||
}
|
||||
|
||||
void setAndClearHiRes(){
|
||||
setHiRes();
|
||||
clearHiRes();
|
||||
|
@ -79,20 +72,12 @@ void moveForward() {
|
|||
}
|
||||
}
|
||||
|
||||
void turnLeft(){
|
||||
direction = direction + 64;
|
||||
}
|
||||
|
||||
void turnRight(){
|
||||
direction = direction - 64;
|
||||
}
|
||||
|
||||
void makeMove() {
|
||||
if (isPositionWhite()) {
|
||||
turnRight();
|
||||
direction = direction - 64;
|
||||
setPositionBlack();
|
||||
} else {
|
||||
turnLeft();
|
||||
direction = direction + 64;
|
||||
setPositionWhite();
|
||||
}
|
||||
moveForward();
|
||||
|
|
Loading…
Add table
Reference in a new issue