Also a working example on MELABs website
http://www.melabs.com/resources/samples/pbp/asmint.bas
(maybe you got your start for yours there? I did not check if they are similar)