private void createMenus() {
        JMenuBar menuBar = new JMenuBar();
        JMenu emulatorMenu = new JMenu("NES");
        JMenuItem loadMenuItem = new JMenuItem("Carregar");
        JMenuItem exitMenuItem = new JMenuItem("Sair");

        JMenu miscMenu = new JMenu("MISC");
        JMenuItem dumpVramMenuItem = new JMenuItem("Dump");
        JMenuItem dumpRegMenuItem = new JMenuItem("Registers");
/*
        dumpVramMenuItem.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                emulator.getPPU().saveVRAM();
                emulator.getBus().saveRoms();

            }
        });
        dumpRegMenuItem.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                emulator.getCpu().showRegisters();
            }
        });

*/
        /* Implementa a ação de carregar uma ROM */
        loadMenuItem.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                JFileChooser choose = new JFileChooser();
                choose.setCurrentDirectory(new File(lastPath));
                int ret = choose.showOpenDialog(window);
                lastPath = choose.getSelectedFile().getPath();
                if (ret == JFileChooser.APPROVE_OPTION) {
                    emulator.load(choose.getSelectedFile().getAbsolutePath());
                    if (!manager.isAlive()) {
                        manager = new Thread(new EmulationManager());
                        manager.start();
                    }
                }
            }
        });

        exitMenuItem.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                window.dispose();
            }
        });

        emulatorMenu.add(loadMenuItem);
        emulatorMenu.addSeparator();
        emulatorMenu.add(exitMenuItem);
/*
        miscMenu.add(dumpVramMenuItem);
        miscMenu.add(dumpRegMenuItem);
*/
        menuBar.add(emulatorMenu);
        menuBar.add(miscMenu);

        setJMenuBar(menuBar);
    }