:roll:
You are right, asm is easy to learn, but difficult to master, also I have found (it may just be me being thick!) but you have to KEEP using asm to stay on top of it.....
For example, I have just been porting some code over from an 877 to a 18f452, it should have been easy right???? NO, the data sheet asures you that it is backward compatible with the 877 (as they always do!) BUT all instructions are NOT supported, there is 1 instr that is not on the 452....
In basic this probably (should be) dealt with by the compiler, but in asm the compiler just thinks this unsuported instr is another lable (label if u r from the usa!), hence the code throws a wobbler and strange numbers start coming out of the serial port (in my particular case).
This is were the agony of choosing asm over basic or other high level languages comes in, you have to single step thro each instruction to try and find the bug, this can (and almost always does) take hours, why? Because you read the instruction and you asm "brain" knows this is ok, after all you have been using this instr for over 10years, EVERYONE KNOWS that it is correct........... it took me the best part of 4hours to find!! :wink:
But I still love coding in it, it's a real buzz when you get it to work. I have written some bad delphi for the pc, and never come close to that feeling of achievment.
Oh well enough ranting......... btw, the mystery instr???? well maybe I should let you all experience the pleasure of finding it yourselves? what do you reckon???