Functions are rarely used in ASM, and it seems like what you are doing would require some heavy math, so BASIC would probably be the way to do it, however I have absolutely no clue how to work with functions in BASIC. -Cole South