It looks like `sp` is only used in *disk_read()*. Please don't use a global variable for that.