Implement BEQ instruction