Examples of mov()


Examples of jnr.x86asm.Assembler.mov()

                case SINT:
                    if (long.class == resultClass) a.movsxd(rax, eax);
                    break;

                case UINT:
                    if (long.class == resultClass) a.mov(eax, eax);
                    break;
            }
        }

        // Restore rsp to original position
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                case UCHAR:
                case USHORT:
                case UINT:
                case ULONG:
                case ADDRESS:
                    a.mov(edx, imm(0));
                    break;
            }

        }
        // Restore esp to the original position and return
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                case USHORT:
                    a.movzx(eax, ptr(esp, disp, parameterTypes[i].nativeType));
                    break;

                default:
                    a.mov(eax, dword_ptr(esp, disp));
                    break;
            }
            a.mov(dword_ptr(esp, dstoff), eax);

            if (dstParameterSize > 4) {
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                default:
                    a.mov(eax, dword_ptr(esp, disp));
                    break;
            }
            a.mov(dword_ptr(esp, dstoff), eax);

            if (dstParameterSize > 4) {
                if (parameterTypes[i].nativeType == NativeType.SLONGLONG && long.class != parameterClasses[i]) {
                    // sign extend from int.class -> long long
                    a.sar(eax, imm(31));
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                    // sign extend from int.class -> long long
                    a.sar(eax, imm(31));

                } else if (parameterTypes[i].nativeType == NativeType.ULONGLONG && long.class != parameterClasses[i]) {
                    // zero extend from int.class -> unsigned long long
                    a.mov(dword_ptr(esp, dstoff + 4), imm(0));

                } else {
                    a.mov(eax, dword_ptr(esp, disp + 4));
                }
                a.mov(dword_ptr(esp, dstoff + 4), eax);
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                } else if (parameterTypes[i].nativeType == NativeType.ULONGLONG && long.class != parameterClasses[i]) {
                    // zero extend from int.class -> unsigned long long
                    a.mov(dword_ptr(esp, dstoff + 4), imm(0));

                } else {
                    a.mov(eax, dword_ptr(esp, disp + 4));
                }
                a.mov(dword_ptr(esp, dstoff + 4), eax);
            }

            dstoff += dstParameterSize;
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                    a.mov(dword_ptr(esp, dstoff + 4), imm(0));

                } else {
                    a.mov(eax, dword_ptr(esp, disp + 4));
                }
                a.mov(dword_ptr(esp, dstoff + 4), eax);
            }

            dstoff += dstParameterSize;
            srcoff += srcParameterSize;
        }
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                    a.fstp(qword_ptr(esp, save));
                    break;

                case SLONGLONG:
                case ULONGLONG:
                    a.mov(dword_ptr(esp, save), eax);
                    a.mov(dword_ptr(esp, save + 4), edx);
                    break;

                case VOID:
                    // No need to save for void values
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                    break;

                case SLONGLONG:
                case ULONGLONG:
                    a.mov(dword_ptr(esp, save), eax);
                    a.mov(dword_ptr(esp, save + 4), edx);
                    break;

                case VOID:
                    // No need to save for void values
                    break;
View Full Code Here

Examples of jnr.x86asm.Assembler.mov()

                case VOID:
                    // No need to save for void values
                    break;

                default:
                    a.mov(dword_ptr(esp, save), eax);
            }

            // Save the errno in a thread-local variable
            a.call(imm(errnoFunctionAddress & 0xffffffffL));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.