BLOCK: moved ENDBLK related functions into separate files.

Signed-off-by: bert <bert.timmerman@xs4all.nl>