Like I said, the laws EXIST in some form. Light mentions them in X1's intro text.
However, again. There is nothing to suggest that Classic series Robots are incapable of breaking them just as Reploids are. Classic robot AI is not as advanced as Reploid AI because despite having free will and consciousness, they still follow the personalities they were programmed with. Which is why Wily's robots all have these quirky personalities. Rock is a good person because Dr. Light programmed him that way. He still however, chose of his own will, to go stop his reprogrammed brothers in Mega Man 1. That was not a pre-programmed response. He was designed as a Household robot, not a a battle robot. But hefelt the need to step up to the plate and defend the world from his brothers, and Light accepted it.
X, is a good person not just because his personality was programmed that way, but because he's just a nice person. He chooses to be a good guy. His personality can and DOES change over the X and Zero series. What sets aside Classic robots and Reploids is the ability to grow. X was designed with the mental age of a 17 year old, but his mind grows like a Real human's does. He learns and his personality evolves with it.
Keep in mind, that the difference between Classic Robot and Reploid may be technically big, in terms of AI complexity and capability, but they are not that different. They are close enough that a Reploid would consider them another Reploid. In tatsunoko Vs. Capcom, (dont give me that not canon crap, I know that, but it's still made by Capcom, and it is worth mentioning) If you beat Roll as Zero, he calls her a Housekeeping Reploid. Implying the difference is not that big.
Also, I know that die wily was an American addition. In the original, Wily goes something along the lines of: "You..? Shoot me? But I'm a Human!" to which Rock just stands there and goes "...", not saying anything. But the very fact that he considered it, shows that he is not mentally BOUND by the laws of robotics. He follows them because it would be a bad thing to not do so.
Keep in mind he attacks Wily directly many times while he's in his machines. If Rock were BOUND by the laws, he would not be able to oppose Wily's machines for the possibility of hurting him. And sure enough, when Wily's machines explode, you often see Wily singed with his clothes torn up. Sure it's for comedic effect, but the point stands that blowing Wily's machines up with him inside would violate the first rule of robotics
Also, Wily could just order Rock around if he were bound by the laws, since the 2nd law states a Robot must follow any command a Human gives, as long as it doesnt violate the first law.
The laws of robotics are RIDICULOUSLY restrictive for Mega Man series robots.
On X series Reploids- We never really see what happens when a non-maverick Reploid harms a Human, since the series revolves around Mavericks, but most Reploids don't harm Humans not because of some arbitrary rule of robotics. It's because they have no reason to. They have no reason to harm a Human or Reploid, like I would have no reason to harm any of you. It would make no sense, and I'd have to be crazy to do so for no reason.
I assume (this is conjecture here mind you) that Regular Reploids are tried under the law like anyone else. Of course they would have to decide wether it was a maverick attack or not, but those are pretty obvious. He would be tried, go to jail, or if they have a death penalty, get scrapped.
Keep in mind, that in maverick Hunter X, in Day of Sigma, Vile is sent to a penitentiary for being overly destructive. He's led away by two officers (Hunter or not who knows- most likely) in handcuffs. He's disarmed, and his hands and legs are cuffed, and he's placed into a cell. So obviously Reploids don't just get killed for crimes, they get treated like anyone else does. they get jail time.