Registers
- PC (Program Counter): Contains the address of the next instruction to be executed
- ACC (Accumulator): Main register for arithmetic and logical operations
- B Register: Secondary register used in arithmetic operations
- MAR (Memory Address Register): Holds the address for memory operations
- MDR (Memory Data Register): Holds data being read from or written to memory
- IR (Instruction Register): Holds the current instruction being executed
- NF (Negative Flag): Set to 1 if the last operation resulted in a negative value
RAM
- 256 memory locations (00-FF in hexadecimal)
- Each location can store a value from 00-FF (0-255 in decimal)
- Labels can contain letters, numbers, and underscores
- Click on any cell to edit values or labels
Controls
- Step: Execute one instruction
- Run All: Execute all instructions until completion
- Reset: Clear all registers and return to initial state
- Submit Code: Load the code from the editor into memory
Sample Programs
Use the dropdown menu to load pre-written example programs. Each sample includes:
- Assembly code loaded into the editor
- Pre-configured RAM values and labels
- Documentation within the code