Lines Matching refs:register

44         LDBX(4),   // Load 1 byte from immediate offset plus register, e.g. "ldbx R0, [5]R0"
45 LDHX(5), // Load 2 byte from immediate offset plus register, e.g. "ldhx R0, [5]R0"
46 LDWX(6), // Load 4 byte from immediate offset plus register, e.g. "ldwx R0, [5]R0"
112 Instruction(Opcodes opcode, Register register) {
114 mRegister = (byte)register.value;
414 * bytes from the begining of the packet into {@code register}.
416 public ApfGenerator addLoad8(Register register, int offset) {
417 Instruction instruction = new Instruction(Opcodes.LDB, register);
425 * bytes from the begining of the packet into {@code register}.
427 public ApfGenerator addLoad16(Register register, int offset) {
428 Instruction instruction = new Instruction(Opcodes.LDH, register);
436 * bytes from the begining of the packet into {@code register}.
438 public ApfGenerator addLoad32(Register register, int offset) {
439 Instruction instruction = new Instruction(Opcodes.LDW, register);
447 * {@code register}. The offset of the loaded byte from the begining of the packet is
448 * the sum of {@code offset} and the value in register R1.
450 public ApfGenerator addLoad8Indexed(Register register, int offset) {
451 Instruction instruction = new Instruction(Opcodes.LDBX, register);
459 * {@code register}. The offset of the loaded 16-bits from the begining of the packet is
460 * the sum of {@code offset} and the value in register R1.
462 public ApfGenerator addLoad16Indexed(Register register, int offset) {
463 Instruction instruction = new Instruction(Opcodes.LDHX, register);
471 * {@code register}. The offset of the loaded 32-bits from the begining of the packet is
472 * the sum of {@code offset} and the value in register R1.
474 public ApfGenerator addLoad32Indexed(Register register, int offset) {
475 Instruction instruction = new Instruction(Opcodes.LDWX, register);
482 * Add an instruction to the end of the program to add {@code value} to register R0.
492 * Add an instruction to the end of the program to multiply register R0 by {@code value}.
502 * Add an instruction to the end of the program to divide register R0 by {@code value}.
512 * Add an instruction to the end of the program to logically and register R0 with {@code value}.
522 * Add an instruction to the end of the program to logically or register R0 with {@code value}.
532 * Add an instruction to the end of the program to shift left register R0 by {@code value} bits.
542 * Add an instruction to the end of the program to shift right register R0 by {@code value}
553 * Add an instruction to the end of the program to add register R1 to register R0.
562 * Add an instruction to the end of the program to multiply register R0 by register R1.
571 * Add an instruction to the end of the program to divide register R0 by register R1.
580 * Add an instruction to the end of the program to logically and register R0 with register R1
581 * and store the result back into register R0.
590 * Add an instruction to the end of the program to logically or register R0 with register R1
591 * and store the result back into register R0.
600 * Add an instruction to the end of the program to shift register R0 left by the value in
601 * register R1.
610 * Add an instruction to the end of the program to move {@code value} into {@code register}.
612 public ApfGenerator addLoadImmediate(Register register, int value) {
613 Instruction instruction = new Instruction(Opcodes.LI, register);
620 * Add an instruction to the end of the program to jump to {@code target} if register R0's
632 * Add an instruction to the end of the program to jump to {@code target} if register R0's
644 * Add an instruction to the end of the program to jump to {@code target} if register R0's
656 * Add an instruction to the end of the program to jump to {@code target} if register R0's
668 * Add an instruction to the end of the program to jump to {@code target} if register R0's
679 * Add an instruction to the end of the program to jump to {@code target} if register R0's
680 * value equals register R1's value.
690 * Add an instruction to the end of the program to jump to {@code target} if register R0's
691 * value does not equal register R1's value.
701 * Add an instruction to the end of the program to jump to {@code target} if register R0's
702 * value is greater than register R1's value.
712 * Add an instruction to the end of the program to jump to {@code target} if register R0's
713 * value is less than register R1's value.
723 * Add an instruction to the end of the program to jump to {@code target} if register R0's
735 * packet at, an offset specified by {@code register}, match {@code bytes}.
737 public ApfGenerator addJumpIfBytesNotEqual(Register register, byte[] bytes, String target)
739 if (register == Register.R1) {
742 Instruction instruction = new Instruction(Opcodes.JNEBS, register);
752 * {@code register}.
754 public ApfGenerator addLoadFromMemory(Register register, int slot)
759 Instruction instruction = new Instruction(Opcodes.EXT, register);
766 * Add an instruction to the end of the program to store {@code register} into memory slot
769 public ApfGenerator addStoreToMemory(Register register, int slot)
774 Instruction instruction = new Instruction(Opcodes.EXT, register);
781 * Add an instruction to the end of the program to logically not {@code register}.
783 public ApfGenerator addNot(Register register) {
784 Instruction instruction = new Instruction(Opcodes.EXT, register);
791 * Add an instruction to the end of the program to negate {@code register}.
793 public ApfGenerator addNeg(Register register) {
794 Instruction instruction = new Instruction(Opcodes.EXT, register);
801 * Add an instruction to swap the values in register R0 and register R1.
812 * {@code register} from the other register.
814 public ApfGenerator addMove(Register register) {
815 Instruction instruction = new Instruction(Opcodes.EXT, register);