I will do my duty to God and the King.
I suppose the equivalent in the USA might have been: "and the president", but let's not go there.