Yeah, it doesn't take much of a "function" to do the equivalent of "peek" in asm. You don't say "What OS?"... if you're using a segmented memory architecture (dos), and need both segment and offset, it might be worth a "function", but mostly it's "mov reg, [mem]" and you're done...
Best,
Frank