Completed the function to generate 'sub' and 'ldr' byteCode.