wrote a println example in .dsa
This commit is contained in:
@@ -216,7 +216,7 @@ impl Executable for Instruction {
|
||||
|
||||
// Loads a 16-bit literal value into reg, setting the bottom 16 bits of the word. To populate the upper 16 bits, see LUI.
|
||||
Self::LoadLowerImmediate(reg, imm) => {
|
||||
*cpu.reg(reg) = (cpu.get(reg) & 0xFFFF_0000) | imm as u32;
|
||||
*cpu.reg(reg) = imm as u32;
|
||||
}
|
||||
|
||||
// Loads a 16-bit literal value into reg, setting the top 16 bits of the word. To populate the lower 16 bits, see LLI.
|
||||
|
||||
Reference in New Issue
Block a user