Skip to content

Batch Operating System #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: refact-machine
Choose a base branch
from
Open

Batch Operating System #23

wants to merge 21 commits into from

Conversation

buritizinhw
Copy link
Collaborator

This PR introduces a disk simulation system for sequential program loading, updates the assembler, and improves the virtual machine.

New Features:

  • Disk Simulation:
    • Added Disk struct to store programs in FIFO order.
    • Implemented AddToDisk and InitDisk methods for disk management.
    • D2M instruction to load programs from disk to memory (address specified by W1).
  • diskLoader.asm:
    • Program logic to load and execute programs sequentially from disk.
    • FIFO behavior with automatic address updates via registers (W1, W3, W4).
  • Virtual Machine (zepa.go):
    • Implemented D2M instruction logic, updating registers (W3, W4) and removing programs from disk.
  • Debugging (main.go):
    • Updated DebugMemory to skip diskLoader addresses, focusing on user-loaded programs.

@buritizinhw buritizinhw self-assigned this Apr 11, 2025
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