last bit of asm code I wrote was inlined into a delphi application I did to encrypt some files, wasn't anything fancy just did a sub and add based on the value of a key. worked tho. and was fast, and as the key was never stored very secure..
It went something like this. - off the top of my head..
Hay while on the subject does Max take inline asm or via an include?
It went something like this. - off the top of my head..
procedure encodebyte; asm mov al,buff; mov ah,key; add al,ah; mov buff,al; end; procedure decodebyte; asm mov al,buff; mov ah,key; sub al,ah; mov buff,al; end;
Hay while on the subject does Max take inline asm or via an include?