diff --git a/part1/sim8086.c b/part1/sim8086.c index 25dcc2f..c4011d5 100644 --- a/part1/sim8086.c +++ b/part1/sim8086.c @@ -54,7 +54,6 @@ typedef struct S86_BufferIterator { bool S86_BufferIsValid(S86_Buffer buffer); S86_BufferIterator S86_BufferIteratorInit(S86_Buffer buffer); bool S86_BufferIteratorHasMoreBytes(S86_BufferIterator it); -uint8_t S86_BufferIteratorPeekByte(S86_BufferIterator it); uint8_t S86_BufferIteratorNextByte(S86_BufferIterator *it); // NOTE: File @@ -159,14 +158,6 @@ bool S86_BufferIteratorHasMoreBytes(S86_BufferIterator it) return result; } -uint8_t S86_BufferIteratorPeekByte(S86_BufferIterator it) -{ - S86_ASSERT(S86_BufferIsValid(it.buffer)); - S86_ASSERT(it.index < it.buffer.size); - uint8_t result = it.buffer.data[it.index]; - return result; -} - uint8_t S86_BufferIteratorNextByte(S86_BufferIterator *it) { S86_ASSERT(it); @@ -176,7 +167,6 @@ uint8_t S86_BufferIteratorNextByte(S86_BufferIterator *it) return result; } - S86_Buffer S86_FileRead(char const *file_path) { S86_Buffer result = {0};