The US Army came under the Lieber Code in 1863. See the link. Stan
http://www.civilwarhome.com/liebercode.htm