implemented Stack (#10)

This commit is contained in:
DarkressX
2023-05-28 19:30:07 +02:00
committed by GitHub
parent 5c4aee2da6
commit 29ec2afe04
13 changed files with 103 additions and 33 deletions

View File

@@ -0,0 +1,22 @@
package de.darkress.pic16f84sim.commands;
import de.darkress.pic16f84sim.registers.Memory;
public class Iorlw extends CommandUtils implements Command
{
private final int literal;
public Iorlw(int input)
{
literal = input & 0x00FF;
}
@Override
public void execute()
{
int result = literal | Memory.workingRegister;
checkZeroBit(result);
Memory.workingRegister = result % 256;
}
}