Hi joey,
I did think about suggesting the above methods to let the assembler do the work but decided it was probably better for the TS to do these things himself to get him to understand what is going on. As he has a background in programming in "C" he may be happier with the options that you suggested. Myself I find "C" very difficult as I don't understand exactly how it works. With assembler all the information I need is in the data sheet for the chip I am using. When I started programming I used to do the assembly part by hand converting the instructions one at a time into machine codes.
Les.
I did think about suggesting the above methods to let the assembler do the work but decided it was probably better for the TS to do these things himself to get him to understand what is going on. As he has a background in programming in "C" he may be happier with the options that you suggested. Myself I find "C" very difficult as I don't understand exactly how it works. With assembler all the information I need is in the data sheet for the chip I am using. When I started programming I used to do the assembly part by hand converting the instructions one at a time into machine codes.
Les.