I found the source code to LoopyNES, so hopefully this link will help: http://home.comcast.net/~olimar/NES/loopynes.zip

Its written entirely in assembly but I can help kinda translate it to VB.