Package jnr.x86asm

Class Assembler


  • public final class Assembler
    extends Serializer
    Low level code generation.
    • Field Detail

      • I386

        public static final CPU I386
      • X86_64

        public static final CPU X86_64
    • Constructor Detail

      • Assembler

        public Assembler​(CPU cpu)
    • Method Detail

      • offset

        public final int offset()
      • codeSize

        public final int codeSize()
        Gets the required size of memory required to store all the generated code
      • getByteAt

        public final byte getByteAt​(int pos)
      • getWordAt

        public final short getWordAt​(int pos)
      • getDWordAt

        public final int getDWordAt​(int pos)
      • getQWordAt

        public final long getQWordAt​(int pos)
      • setByteAt

        public final void setByteAt​(int pos,
                                    byte x)
      • setWordAt

        public final void setWordAt​(int pos,
                                    short x)
      • setDWordAt

        public final void setDWordAt​(int pos,
                                     int x)
      • setQWordAt

        public final void setQWordAt​(int pos,
                                     long x)
      • getInt32At

        public final int getInt32At​(int pos)
      • setInt32At

        public final void setInt32At​(int pos,
                                     long x)
      • setVarAt

        public final void setVarAt​(int pos,
                                   long i,
                                   boolean isUnsigned,
                                   int size)
      • relocCode

        public void relocCode​(ByteBuffer buffer,
                              long address)
      • align

        public void align​(long m)