=_NextPart_000_0010_01CA4523.94FC8730 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All
1) Below is a skeleton version of what I currently have. Up to now = everything I'm doing is working without a problem, except that I've = reached r7 register, and according to the AT89S51/2 Datasheets the max = number of registers is 7. Maybe I'm doing it wrong by using a register = for each LOOP, but If I'm not wrong, will it be possible to combine = Routine_1 and Routine_2 into a new Routine_3, and still have the = different loops in the one combined routine ?2) The AT89S51 is a 4K and the AT89S52 a 8K microcontroller. Is this a = direct correlation between the size of the Hex file in Kb ? If correct, = then I won't be able to load a 9k HEX file into a AT89S52 ?
3) I don't know how to reverse engineer a hex file - if possible - But = does the comments I add in my project, also get compiled into the Hex = file. I removed all the comments from my project and created the Hex = file again, but the size the hex file is shrinking is not the same = amount of bytes I removed from my project .4) Is it possible to call the START registers in a random order on each = execution, or will it always do it in the order it's coded, irrespective = if the number of r0-r7 is a following order ?
#######################
START: MOV r0,#4 =20 MOV r3,#2
LOOP1: LCALL Routine_1 DJNZ r0,LOOP1 =20 LOOP2: LCALL Routine_2 DJNZ r3,LOOP2 LJMP START
Routine_1 CPL P1.0 . . . RET
Routine_2 CPL P1.0 . . . RET
####################
Thank you - Any feedback appreciated
Lodewicus Maas