Not so much a moral code just how I try to live my life. Be kind. Smile at everyone. Help others. Get others to smile. Help others to feel good about themselves. As for the "law of the land" I am a convicted felon so that obviously isn't working out too well.
I think Wil Wheaton says it best, don't be a dick! But really, try to leave this place a little better, everyone is equal, love is love and all that jazz! I think it's absurd to think I have to believe in a tale in order to be moral, or that if I screw up and just ask for forgiveness it's ok. That is some flawed logic to me.
I follow the old "golden rule" until someone does me wrong. Then I tend to follow a different set of rules.
I believe in science and energy. So I believe that you get from the universe, what you put out. If I want good things and a happy life, I need to put that energy out there. That means having empathy and treating others with human decency. It also means believing in equity and equality for every human.
I was taught in AA to take a daily moral inventory and when wrong.....and you better not let your ego get in the way of making a decision on that..that you should admit it and possibly make amends. That way you don't let a lot of garbage build up and it's easier to move on. Were all human and we all make mistakes. Best to learn from others mistakes though.
Always try to do the right thing. The right thing is seldom the easy thing...
I keep it simple. If something increases or prolongs well being or lessens or eliminates harm then it is good. If something diminishes or ends well being or inflicts or increases harm then it is bad. Obviously, not all things are black and white and pros and cons have to be weighed.
Treat others the way you want to be treated - even though that is a religious tenent, I do not see it as exclusively religious, and I'm not convinced the saying started out that way. As with many things religious, it was commandeered from civilian life and made into a religious thing.
I have empathy, virtues, a conscience, the logic of consistency, I don't use dogma to determine right and wrong. Which also means what was once moral or amoral like slavery can be immoral today. But the Golden Rule, the maxim of reciprocity through empathy, is a good description encapsulating it.