Yeah, but with an OS and MMU you don't get to just write to a port or other registers. The plumbing has to be in place.