1. A method for emulating a nexthop instruction, the method comprising: reading, by a device, address control information from the nexthop instruction, the address control information including information to control at least one of read addressing or write addressing of a first memory; writing, by the device, the address control information to a second memory, where the second memory is different than the first memory, and where the address control information is written to the second memory to control the at least one of read addressing or write addressing of the first memory; reading, from the first memory, based on the address control information stored in the second memory; and determining a nexthop address based on reading from the first memory.