Cannot help with the first code chunk, is that assembler?
The second chunk is Picaxe BASIC. b14 is a byte variable called "b14", this has no relation to any I/O pins.
BASIC manual for the 'if' statement does include the method to refer to input pins http://www.picaxe.com/BASIC-Commands/Program-Flow-Control/if/
See the note beginning "Note that when testing an input pin,..."
I just made a post about that specific command.. could you take a look if you get a moment, I am still struggling to understand the concept I am fairly new to all this.
It's not helpful to edit out your original post like this once your issue has been solved. Complete threads are kept as other people may search for them in the future when they have a similar issue.