Okay wow i forgot to commit a bunch of stuff
I added some work on a keyboard driver here also changed the emulation system, since bochs was giving me headaches when it came to keyboard input added some todo stuff.. probably some cleanup, idk
This commit is contained in:
@ -14,7 +14,12 @@ void init_queue(queue *q)
|
||||
}
|
||||
|
||||
bool queue_is_empty(queue *q)
|
||||
{return (q->front == q->rear - 1);} ; // TODO: if this returns true, shouldn't we just be re-init-ing because we have the space to take up that used array
|
||||
{
|
||||
bool empty = q->front == q->rear - 1;
|
||||
if (empty)
|
||||
init_queue(q);
|
||||
return empty;
|
||||
}
|
||||
bool queue_is_full(queue *q)
|
||||
{return (q->rear == MAX_QUEUE_SIZE);} // TODO: this is an error for SURE
|
||||
|
||||
@ -40,7 +45,7 @@ void dequeue(queue* q)
|
||||
q->front++;
|
||||
}
|
||||
|
||||
uint8_t peek(queue* q)
|
||||
uint8_t queue_peek(queue* q)
|
||||
{
|
||||
if (queue_is_empty(q)) {
|
||||
#ifdef __TESTING__
|
||||
|
Reference in New Issue
Block a user