Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8778017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:25:21+00:00 2026-06-13T19:25:21+00:00

I need to declare a dummy absolute address in the code of a self-modifying

  • 0

I need to declare a dummy absolute address in the code of a self-modifying program. This pointer works similar to a relocation for a linker – it only reserves appropriate space in the instruction and is updated with a valid address later on at runtime. This has worked fine for me on x86-32:

movups xmm0, [0xDEADBEEF]

This assembles and works as expected at runtime. However, when I try to do this in x86-64 code:

movups xmm0, [0xDEADC0DEDEADBEEF]

It assembles with the following warning:

warning: dword data exceeds bounds

And promptly crashes at runtime because the next instruction is overwritten with the rest of the address, which happens to be garbage instruction-wise.

Any address longer than 32 bits fails to assemble without a warning, even a minimally longer one than 32 bits:

movups xmm0, [0xADEADBEEF] ; 36-bit address

How should I go about declaring a constant, absolute 64-bit pointer? Or is there just no way around it and I need to drop a RIP-relative, 32-bit pointer in there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:25:22+00:00Added an answer on June 13, 2026 at 7:25 pm

    I may be wrong because I haven’t done NASM in a long time, but I don’t think you can use a 64 bit immediate value with any register other than AL, AX, EAX, RAX. Your 64 bit address has to be declared as a QWORD.

    Solution:

    mov rax , 0xDEADCODEDEADBEEF
    movups xmm0, [rax]
    

    See comments below for explanation.

    This reference: NASM Manual

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to declare this gridView programaticalle, all with java code: <GridView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/gridview
I want to declare static(or not static) variable inside Enum. I need this because
I want to write reusable code and need to declare some variables at the
I'm wondering why I need to declare a default constructor in this case. For
In the following code block, why do I need to declare myData in the
When I need to declare a new array I use this notation var arr
I was wondering why do i need to declare this: <serviceMetadata httpGetEnabled=true /> and
I think in this case there is no need to declare a public constructor
I need to declare 3d array variable but can't. int[][][] ary = new int[5][2][];
I need to declare square matrices in C# WinForms with more than 20000 items

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.