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 7779399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:38:08+00:00 2026-06-01T18:38:08+00:00

How would I store 8 ascii values into a register or a variable? For

  • 0

How would I store 8 ascii values into a register or a variable?
For instance I have these values in ascii
30 30 34 20 33 32 32 00

Which would be 004 322

80×86 architecture

  • 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-01T18:38:09+00:00Added an answer on June 1, 2026 at 6:38 pm
    mov eax 30303420
    mov ebx 33323200
    

    or you can do in the data segment

    var db 30 , 30 ,34 ,20 ,33 ,32 ,32, 00
    

    you can use the stack(LIFO) as well:

    mov eax 30303420
    mov ebx 33323200
    push ebx
    push eax
    

    or to one register 8 byte = 8*8 bit = 64 bit:

    mov rax 3030342033323200h
    

    EDIT:

    extern  printf      ; the C function, to be called
    
    SECTION .data       ; Data section, initialized variables
    
    a:  db  30 , 30 ,34 ,20 ,33 ,32 ,32, 00 
    fmt:    db "a=%s",'0'
    
    
    SECTION .text                   ; Code section.
    
    global main     ; the standard gcc entry point
    main:               ; the program label for the entry point
    push    ebp     ; set up stack frame
    mov     ebp,esp
    
    push    a           ; value of variable a
    push    fmt
    call    printf      ; Call C function
    add     esp, 8      ; maybe I missed some bytes here 
    
    mov     esp, ebp    ; takedown stack frame
    pop     ebp     ; same as "leave" op
    
    mov eax,0       ;  normal, no error, return value
    ret         ; return
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've fallen into a situation where it would be advantageous to store both ascii
I am building an application which would store some information into the database and
I have a certificate .p12 and .crt and I would like store the public
I have this function which I would like to parallelize using openmp: for(i=len-1;i>=0;i--){ if(bin[i]==49)
I have a string coming in, which I need to store in the db.
I've a dictionary (dict type) which I would store in a gtk.ListStore . Is
How would you store a vector of N dimensions in a datatable in C#?
How would you store a PDF document in a field in MySQL? Currently I
How would I store the result of a select statement so I can reuse
How would I store results from dataset in an Ilist? Model read = new

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.