Implement RESET uASM instruction
This commit is contained in:
parent
5586eec381
commit
09ecc55898
@ -225,6 +225,12 @@ Branch to address of label if **C-flag** is 0.
|
|||||||
Branch to address of label if **O-flag** is 0.
|
Branch to address of label if **O-flag** is 0.
|
||||||
|
|
||||||
|
|
||||||
|
### RESET [reg]
|
||||||
|
Sets all bits in the specified register to 1.
|
||||||
|
|
||||||
|
*This operation uses the bus*
|
||||||
|
|
||||||
|
|
||||||
## Compiler/weaver directives
|
## Compiler/weaver directives
|
||||||
|
|
||||||
### \#define \[name] [const]
|
### \#define \[name] [const]
|
||||||
|
@ -350,6 +350,7 @@ fun parseInstruction(line: String): MicroInstruction? {
|
|||||||
else if(shave == "halt") return MicroInstruction(ALU.NOP, ToBus.NONE, FromBus.NONE, false, false, LoopCounter.NONE, SEQ.HALT)
|
else if(shave == "halt") return MicroInstruction(ALU.NOP, ToBus.NONE, FromBus.NONE, false, false, LoopCounter.NONE, SEQ.HALT)
|
||||||
else if(shave.startsWith("lcset")) return parseLCSet(shave)
|
else if(shave.startsWith("lcset")) return parseLCSet(shave)
|
||||||
else if(shave == "declc") return MicroInstruction(ALU.NOP, ToBus.NONE, FromBus.NONE, false, false, LoopCounter.DEC, SEQ.INC)
|
else if(shave == "declc") return MicroInstruction(ALU.NOP, ToBus.NONE, FromBus.NONE, false, false, LoopCounter.DEC, SEQ.INC)
|
||||||
|
else if(shave.startsWith("reset")) return MicroInstruction(ALU.NOP, ToBus.NONE, FromBus.locate(Register.lookup(shave.substring(6))!!.busValue), false, false, LoopCounter.NONE, SEQ.INC)
|
||||||
else throw RuntimeException("Unknown instruction: $shave")
|
else throw RuntimeException("Unknown instruction: $shave")
|
||||||
}else{
|
}else{
|
||||||
var result: MicroInstruction? = null
|
var result: MicroInstruction? = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user