You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some assembler (AS31) will try using acall/ajmp (even coding it as lcall/ljmp), because it can save 1 bytes.
Can naken_asm(8051) have possible to optimize it like this way?
The text was updated successfully, but these errors were encountered:
Sorry for a slow reply. This could be done, but this requires a possibly ugly change to the code since branching forward to a label that hasn't been defined yet would force it to fall back on the bigger instruction.
Hello,
I have a similar problem on unsp. The conditional jump instructions have only a 6-bit range, which is often not enough. The solution is to combine them with a goto instruction, so that:
JE label
Becomes:
JNE $+2
GOTO label
It's a bit annoying to decide when this long form must be used (especially because I'm porting a C compiler and the compiler doesn't currently know about instruction sizes to make the decision)
some assembler (AS31) will try using acall/ajmp (even coding it as lcall/ljmp), because it can save 1 bytes.
Can naken_asm(8051) have possible to optimize it like this way?
The text was updated successfully, but these errors were encountered: