Lines Matching refs:pc
25 extern void APF_TRACE_HOOK(uint32_t pc, const uint32_t* regs, const uint8_t* program,
29 #define APF_TRACE_HOOK(pc, regs, program, program_len, packet, packet_len, memory, memory_len) \ argument
66 uint32_t pc = 0; in accept_packet() local
68 #define ASSERT_FORWARD_IN_PROGRAM(p) ASSERT_RETURN(IN_PROGRAM_BOUNDS(p) && (p) >= pc) in accept_packet()
90 APF_TRACE_HOOK(pc, registers, program, program_len, packet, packet_len, memory, ram_len); in accept_packet()
91 if (pc == program_len) { in accept_packet()
93 } else if (pc == (program_len + 1)) { in accept_packet()
96 ASSERT_IN_PROGRAM_BOUNDS(pc); in accept_packet()
97 const uint8_t bytecode = program[pc++]; in accept_packet()
108 ASSERT_FORWARD_IN_PROGRAM(pc + imm_len - 1); in accept_packet()
111 imm = (imm << 8) | program[pc++]; in accept_packet()
159 pc += imm; in accept_packet()
173 ASSERT_FORWARD_IN_PROGRAM(pc + cmp_imm_len - 1); in accept_packet()
176 cmp_imm = (cmp_imm << 8) | program[pc++]; in accept_packet()
181 pc += imm; in accept_packet()
185 pc += imm; in accept_packet()
189 pc += imm; in accept_packet()
193 pc += imm; in accept_packet()
197 pc += imm; in accept_packet()
204 ASSERT_FORWARD_IN_PROGRAM(pc + cmp_imm - 1); in accept_packet()
209 if (memcmp(program + pc, packet + REG, cmp_imm)) in accept_packet()
210 pc += imm; in accept_packet()
212 pc += cmp_imm; in accept_packet()