public void writeArithmetic(String command) {
        if(command.equals("add")) {
            writeAdd();
            return;
        }
        
        if(command.equals("sub")) {
            writeSub();
            return;
        }
        
        if(command.equals("neg")) {
            writeNeg();
            return;
        }
        
        if(command.equals("eq")) {
            writeEq();
            return;
        }
        
        if(command.equals("gt")) {
            writeGt();
            return;
        }
        
        if(command.equals("lt")) {
            writeLt();
            return;
        }
        
        if(command.equals("and")) {
            writeAnd();
            return;
        }
        
        if(command.equals("or")) {
            writeOr();
            return;
        }
        
        if(command.equals("not")) {
            writeNot();
            return;
        }
        
        throw new VMTranslateException("Unknown arithmetic command: " + command);
    }