Skip to content

Add utility functions, implement memory handling, add initial tests#1

Merged
lachlanharrisdev merged 3 commits intomainfrom
utils
Sep 22, 2025
Merged

Add utility functions, implement memory handling, add initial tests#1
lachlanharrisdev merged 3 commits intomainfrom
utils

Conversation

@lachlanharrisdev
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds core utility functions and memory management capabilities to what appears to be a virtual machine implementation, along with initial test coverage. The implementation includes memory-mapped I/O handling, input buffering, and endianness conversion utilities.

  • Implements utility functions for sign extension, byte swapping, memory operations, and input handling
  • Adds memory and register definitions with proper hardware abstraction
  • Introduces initial test coverage for the utility functions

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/test_utils.c Comprehensive test suite covering utility functions and memory operations
src/utils.c Core utility implementations including memory I/O, input buffering, and mathematical operations
src/main.c Integration of utility functions and setup initialization
src/hardware.c Hardware abstraction layer with memory and register definitions
include/utils.h Function declarations for utility functions
include/hardware.h Hardware constants, enums, and external declarations
Makefile Build system updates with test target and improved compiler flags

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@lachlanharrisdev lachlanharrisdev merged commit 5b4b491 into main Sep 22, 2025
1 check passed
@lachlanharrisdev lachlanharrisdev deleted the utils branch September 22, 2025 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants