nes structure of code