Rambam codifies the full halakhic framework of kibbud av va'em and mora av va'em, including what constitutes violation, the limits of the obligation (e.g., when a parent instructs a child to violate Torah), and when a child is exempt.
כִּבּוּד אָב וָאֵם מִצְוַת עֲשֵׂה גְּדוֹלָה וְכֵן מוֹרָא אָב וָאֵם. שָׁקַל אוֹתָן הַכָּתוּב בִּכְבוֹדוֹ וּבְמוֹרָאוֹ. כָּתוּב (שמות כ יב) "כַּבֵּד אֶת אָבִיךָ וְאֶת אִמֶּךָ" וְכָתוּב (משלי ג ט) "כַּבֵּד אֶת ה' מֵהוֹנֶךָ". וּבְאָבִיו וְאִמּוֹ כָּתוּב (ויקרא יט ג) "אִישׁ אִמּוֹ וְאָבִיו תִּירָאוּ" וְכָתוּב (דברים ו יג) "אֶת ה' אֱלֹהֶיךָ תִּירָא". כְּדֶרֶךְ שֶׁצִּוָּה עַל כְּבוֹד שְׁמוֹ הַגָּדוֹל וּמוֹרָאוֹ כָּךְ צִוָּה עַל כְּבוֹדָם וּמוֹרָאָם: הַמְקַלֵּל אָבִיו אוֹ אִמּוֹ בִּסְקִילָה וְהַמְגַדֵּף בִּסְקִילָה. הִנֵּה הִשְׁוָה אוֹתָן בָּעֹנֶשׁ. הִקְדִּים אָב לְאֵם לְכָבוֹד וְהִקְדִּים אֵם לְאָב לְמוֹרָא לְלַמֵּד שֶׁשְּׁנֵיהֶם שָׁוִים בֵּין לַמּוֹרָא בֵּין לְכָבוֹד: אֵי זֶהוּ מוֹרָא וְאֵי זֶהוּ כָּבוֹד. מוֹרָא לֹא עוֹמֵד בִּמְקוֹמוֹ. וְלֹא יוֹשֵׁב בִּמְקוֹמוֹ. וְלֹא סוֹתֵר אֶת דְּבָרָיו וְלֹא מַכְרִיעַ אֶת דְּבָרָיו. וְלֹא יִקְרָא לוֹ בִּשְׁמוֹ לֹא בְּחַיָּיו וְלֹא בְּמוֹתוֹ. אֶלָּא אוֹמֵר אַבָּא מָרִי. הָיָה שֵׁם אָבִיו אוֹ שֵׁם רַבּוֹ כְּשֵׁם אֲחֵרִים מְשַׁנֶּה אֶת שְׁמָם. יֵרָאֶה לִי שֶׁאֵין נִזְהָר בְּכָךְ אֶלָּא בְּשֵׁם שֶׁהוּא פֶּלֶא שֶׁאֵין הַכּל דָּשִׁין בּוֹ. אֲבָל הַשֵּׁמוֹת שֶׁקּוֹרְאִים בָּהֶן אֶת הָעָם כְּגוֹן אַבְרָהָם יִצְחָק וְיַעֲקֹב משֶׁה וְכַיּוֹצֵא בָּהֶן בְּכָל לָשׁוֹן וּבְכָל זְמַן קוֹרֵא בָּהֶן לַאֲחֵרִים שֶׁלֹּא בְּפָנָיו וְאֵין בְּכָךְ כְּלוּם. אֵי זֶהוּ כָּבוֹד מַאֲכִיל וּמַשְׁקֵה מַלְבִּישׁ וּמְכַסֶּה מִשֶּׁל הָאָב. וְאִם אֵין מָמוֹן לָאָב וְיֵשׁ מָמוֹן לַבֵּן כּוֹפִין אוֹתוֹ וְזָן אָבִיו וְאִמּוֹ כְּפִי מַה שֶּׁהוּא יָכוֹל. וּמוֹצִיא וּמַכְנִיס וּמְשַׁמְּשׁוֹ בִּשְׁאָר הַדְּבָרִים שֶׁהַשַּׁמָּשִׁים מְשַׁמְּשִׁים בָּהֶן אֶת הָרַב. וְעוֹמֵד מִפָּנָיו כְּדֶרֶךְ שֶׁהוּא עוֹמֵד מִפְּנֵי רַבּוֹ:
Honoring one's father and mother is a positive commandment of great importance, as is fearing one's father and mother. The Torah equates the honor and fear of one's parents with the honor and fear of God Himself. Exodus 20:12 states: "Honor your father and your mother," and Proverbs 3:9 states: "Honor God from your wealth." Similarly, with regard to one's father and mother, Leviticus 19:3 states: "A person must fear his mother and father," and Deuteronomy 6:13 states: "And you shall fear God, your Lord." Just as He commands us to honor and fear His great name; so, too, He commands us to honor and fear our parents." A person who curses his father or mother is executed by stoning and a person who blasphemes God is executed by stoning. Thus the punishment for the two is equated. A father is mentioned before a mother with regard to honor and a mother is mentioned before a father with regard to fear to teach that they are both equal with regard to fear and honor. What is meant by fear and what is meant by honor? Fear is expressed by not standing in his place, not sitting in his place, not contradicting his words, nor offering an opinion that outweighs his. He should not call him by name, neither during his lifetime or after his death. Instead, he should say: "My father and my master." If his father or his teacher had the same name as others, he should call those other people by a different name. It appears to me that one should be careful only with regard to this matter with regard to a name that is unusual which is not used frequently by people. With regard to the names which people are generally called, by contrast, e.g., Abraham, Isaac, Jacob, Moses, and the like, one can call others by that name in any language and at any time outside his father's presence without thinking anything of the matter. What is meant by honoring them? One should bring them food and drink, clothe them and cover them from their resources. If a father does not have financial resources and a son does, the son is compelled to sustain his father and his mother according to his capacity. He should bring him out and bring him home and serve him in all the ways one serves a teacher. Similarly, he should stand before him as one stands before a teacher.