Package org.jnode.jnasm.assembler

Examples of org.jnode.jnasm.assembler.Address


    private void emitFLDCW() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeFLDCW(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(FLDCW_ISN, addr);
        }
    }
View Full Code Here


    private void emitFNSAVE() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeFNSAVE(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(FNSAVE_ISN, addr);
        }
    }
View Full Code Here

    private void emitFRSTOR() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeFRSTOR(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(FRSTOR_ISN, addr);
        }
    }
View Full Code Here

    private void emitFSTCW() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeFSTCW(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(FSTCW_ISN, addr);
        }
    }
View Full Code Here

    private void emitFXRSTOR() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeFXRSTOR(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(FXRSTOR_ISN, addr);
        }
    }
View Full Code Here

    private void emitFXSAVE() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeFXSAVE(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(FXSAVE_ISN, addr);
        }
    }
View Full Code Here

        switch (addr) {
            case R_ADDR:
                stream.writeINC(getReg(0));
                break;
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeINC(operandSize, getRegister(ind.getImg()), ind.disp);
                break;
            case A_ADDR:
                stream.writeINC(operandSize, getAddress(0).disp);
                break;
            case S_ADDR:
                ind = getAddress(0);
                stream.writeINC(operandSize, getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp);
                break;
            case G_ADDR:
                ind = getAddress(0);
                stream.writeINC(operandSize, (SR) X86Register.getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(INC_ISN, addr);
        }
    }
View Full Code Here

            String id = ((Identifier) o1).name;
            Label lab = labels.get(id);
            lab = (lab == null) ? new Label(id) : lab;
            stream.writeJMP(lab);
        } else if (o1 instanceof Address) {
            Address addr = (Address) o1;
            if (addr.reg != null) {
                stream.writeJMP(getRegister(addr.reg), addr.disp);
            } else {
                stream.writeJMP(operandSize, addr.scale, addr.disp);
            }
View Full Code Here

    private void emitLDMXCSR() {
        int addr = getAddressingMode(1);
        switch (addr) {
            case E_ADDR:
                Address ind = getAddress(0);
                stream.writeLDMXCSR(getRegister(ind.getImg()), ind.disp);
                break;
            default:
                reportAddressingError(LDMXCSR_ISN, addr);
        }
    }
View Full Code Here

    private void emitLEA() {
        int addr = getAddressingMode(2);
        switch (addr) {
            case RE_ADDR:
                Address ind = getAddress(1);
                stream.writeLEA(getReg(0), getRegister(ind.getImg()), ind.disp);
                break;
            case RS_ADDR:
                ind = getAddress(1);
                stream.writeLEA(getReg(0), getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp);
                break;
            case RZ_ADDR:
                ind = getAddress(1);
                stream.writeLEA(getReg(0), getRegister(ind.sreg), ind.scale, ind.disp);
                break;
View Full Code Here

TOP

Related Classes of org.jnode.jnasm.assembler.Address

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.