Reverse engineering and other stuff.
IRA the dissembler again
What the dissembler generated:
LAB_0014:
BVS.S LAB_001C
MOVEQ #117,D2
BVS.S LAB_001F
DC.W $696f
BGT.S LAB_0018
DC.W $6c69
BHI.S LAB_0020
BSR.S LAB_0021
DC.W $7900
LAB_0015:
BEQ.S LAB_0022
BSR.S LAB_0022
DC.W $6869
DC.W $6373
MOVEA.L 26978(A4),A7
MOVEQ #97,D1
MOVEQ #121,D1
This should be:
LAB_0014_intuition_library:
DC.b "intuition.library",0
LAB_0015_library:
DC.b "graphics.library",0
Debugging
C vs Assembly language
Sorry I just don't get it, way are people (Franko) telling me that Assembly is easy language?
This window display C code that does the Dos.library / PrintF command just as Assembly code above.
Well the code lies, I should have opened the DOS.library but its no longer necessary under AmigaOS4, whit -lauto option, so not a big lie, it works as its written.
but as you can see Assembly version of printf takes up to 7 lines to do the same as C does in just ONE single line, and it does the same thing.
And also you can see that strings has to be put some where else, and then you need to move the values in to ARGS array (D2), before command is executed, it just allot of more work.