generated from roerohan/Template
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestHacktoberfest 2020Hacktoberfest 2020
Description
Feature to step back one instruction, and execute all instructions
The bot can only execute instructions one by one currently. Features to execute all instructions at once, and step back an instruction to see the state would be useful for debugging!
Step back
- A possible solution for this would be storing all the states in a redux slice and reinitializing registers and memory according to it's previous state.
Execute all
- Right now, instructions are executed with the help of the
stepClick
function below, which is triggered by clicking thenext step
button on the UI. - For executing all instructions, a possible solution would be to call
emulator.cpu.step()
repeatedly until the last instruction is reached.
8086.js/src/components/ButtonsContainer/index.jsx
Lines 45 to 48 in 017505b
const stepClick = () => { | |
loadCode(); | |
emulator.cpu.step(); | |
dispatch(updateRegisters(emulator.getRegisters())); |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestHacktoberfest 2020Hacktoberfest 2020