Shortening the Asc macro (wiki/Asc)
A very short question, really: I want to get the ascii-number of the first character of a string. so I've taken a look at the Asc macro on the wiki. But I'm wondering if it can be made shorter. Can I use
Without creating memory leaks or whatnot? I'm skipping the System::Free command because I'm using only one variable now, but I'm not entirely sure if that's legal.System
::Call "*(&t1 r11)i.r11"
>System::Call "*$R1(&i1 .r11)"
Edit: After discussion with Anders, I guess the above is indeed not correct. $R1 is made to point at some allocated memory, which is afterwards not freed. Should be:
System::Call "*(&t1 r12)i.r11"
>System::Call "*$11(&i1 .r12)"
>System::Free $R1
>