public static void main(String[] args){		
		frame.setVisible(true);
		frame.setSize(600, 150);
		frame.getContentPane().add(instructions,"North");
		frame.getContentPane().add(textField,"Center");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		instructions.setBackground(Color.LIGHT_GRAY);
        instructions.append("Instruções:\n");
        instructions.append(" Referenciar página virtual n : 'r' + espaço + n\n");
        instructions.append(" Modificar página virtual n : 'm' + espaço + n\n");
        instructions.append(" Sair: 'e'\n");
        instructions.setEditable(false);
		textField.setEditable(true);
		textField.setVisible(true);
		textField.addActionListener(new ActionListener() {            
            public void actionPerformed(ActionEvent e) {
            	String input = textField.getText();
            	switch(input.charAt(0)){
            		case 'r':{
            			String[] strs = input.split(" ");
            			if(strs.length>1){
            				int id = Integer.parseInt(strs[1]);
	                        if(id>=0) {    		    		
	                            //TODO
	                        }
            			}
                        break;
            		}
            		case 'm':{
            			String[] strs = input.split(" ");
            			if(strs.length>1){
	            			int id = Integer.parseInt(strs[1]);
	                        if(id>=0) {    		    		
	                            //TODO
	                        }
            			}
                        break;
            		}
            		case 'e':{
            			frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));
            			break;
            		}
            		default:{
            			
            		}            		
            	}
            	textField.setText("");            	
            }
        });
		
		for(int i=0;i<32;i++){
			memory.addMAddress(i, new MemoryAddress(i,(byte)0));
		}		
		for(int i=0;i<64;i++){
			pageTable.addPage(i, new Page(i, (byte)0, (byte)0,(byte) 0, -1, (byte)1));
		}
		
	}