Just four days after being ordered to allow Fernando Alonso to overtake him and win the German grand prix, Felipe Massa has denied that he is Ferrari's No2 driver and said he will walk away from Formula One the day he finds himself in that situation.

Via coded messages from his race engineer, Rob Smedley, Massa was forced to hand victory to his Ferrari team-mate at Hockenheim after leading for the majority of the opening 49 laps of the 67-lap race. Ferrari were found guilty of a breach of the rules that prohibits teams orders and fined $100,000 (£64,000).

Ferrari's decision has effectively ensured Massa will now have to play second fiddle to Alonso for the remainder of the season. The Brazilian returned to the spotlight today on his return to the Hungaroring, where last year he almost lost his life, and was asked about his position in the Ferrari team. "The time I say I am a No2 driver I will not race any more, and I am not (a No2)," he said. "I will fight for the victory here, whatever the conditions."

Asked what would happen if he found himself in the same situation, with himself in the lead and Alonso second, he replied: "I will win."

Alonso is fifth overall in the world championship standings, 34 points behind McLaren's Lewis Hamilton, while Massa is eighth and a further 38 back.

Massa said what had happened at Hockenheim made him even stronger as a person and he bristled at a suggestion from a Brazilian reporter that he had betrayed his country by obeying the orders. "I will do everything I can always for my country," he said. "For me, my country is the most important thing. I have proved already many times in my life... what I am able to do for my country."

Massa said he had spoken to everyone within Ferrari about the situation post-Hockenheim. "I've spoken to everybody inside the team," he said. "I'm not just here to race, I'm here to win, and that's my point. Yes, I am working for the team. We know how important that is. I want the best for the team, but I am professional."

His compatriot Rubens Barrichello, who while driving for Ferrari was famously ordered to let Michael Schumacher pass him in the final few metres of the 2002 Austrian grand prix, commiserated with Massa for what he had been through.

"I was very sorry to see that he had to go through such a bad thing," he said. "Nobody should have to go through those feelings. Felipe is a friend and I wish he didn't go through that."

Barrichello said he had spoken to Massa about the situation at Ferrari but would not say what his advice had been.