From 431572f2239083d2c87ee54337bd0cb79f28de0f Mon Sep 17 00:00:00 2001 From: Bjorn Einar Bjarntes Date: Sat, 18 Dec 2021 21:24:50 +0100 Subject: [PATCH] trying to speed things up a bit --- src/main.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/main.c b/src/main.c index c0b93dc..66edc8a 100644 --- a/src/main.c +++ b/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();