How to hand write a CNC lathe program using G & M Code

How to hand write a CNC lathe program using G & M Code.