Added beeper function

I wasn't sure whether to include the constants in the beeper.asm file or
in var.asm so I've put them here for now and will move them over later.
Let me know if there's anything I should change