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

  • SEARCH
  • Home
  • 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 7580957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:04:44+00:00 2026-05-30T18:04:44+00:00

In my assembly startup code for ARM9 i have some lines that i don’t

  • 0

In my assembly startup code for ARM9 i have some lines that i don’t understand and are like this:

    .word   0x41676d69
    .word   0,0,0,0,0
image_type:
    .word   0x0000000A
sizeOfPermanentCode:    
    .word   (__image_size)
    .word   0,0
bootparameter:  
    .word   0
    .word   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

I ve heard that number 0x41676d69 is some sort of an image magic number, but i dont know why it is used for. What about other .word elements? What are they? What do they do?

With kind regards Žiga Lausegger

  • 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-05-30T18:04:46+00:00Added an answer on May 30, 2026 at 6:04 pm

    From what i’m seeing, a boot image should look something like this at the beginning…

    +--------------------------+
    |      (asm) B Start       | 0x00
    +--------------------------+ 
    |    Magic (0x41676d69)    | 0x04
    +--------------------------+
    | code CRC (if type=0x0b)  | 0x08
    +--------------------------+
    |                          | 0x0c
    +--                      --+
    |                          |
    +--       Reserved       --+
    |        (set to 0)        |
    +--                      --+
    |                          |
    +--------------------------+
    | image type(0x0a or 0x0b) | 0x1c
    +--------------------------+
    | image size (incl header) | 0x20
    +--------------------------+
    | image version (ignored)  | 0x24
    +--------------------------+
    |   build time (ignored)   | 0x28
    +--------------------------+
    |  "boot parameter" (..?)  | 0x2c
    +--------------------------+
    :                          : 0x30
    .                          .
      it gets fuzzy from here. 
      Looks like this is yours 
      to do what you want with 
    .                          .
    :                          :
    +--------------------------+
    | header CRC(if type=0x0a) | 0x6c
    +--------------------------+ 
    |                          | 0x70
    +--                      --+
    |                          |
    +--       Reserved       --+
    |        (set to 0)        |
    +--                      --+
    |                          |
    +==========================+
    |  boot code starts here   | 0x80
    

    The B Start is a jump instruction to the entry point in the boot code. Where that entry point is is mostly up to you.

    The 0x41676d69 tells the boot loader that this is a bootable image. The CRCs are basically checksums (but don’t ask me how they’re calculated); fortunately, if the image_type is set to 10 (0x0a), they’re ignored and can be set to 0.

    Far as i’m seeing, the image version and build time are ignored by the boot loader as well. They’re just there for tools or whatever to make it easier to figure out versions and stuff.

    The “boot parameter”, i’m not too sure about. I’m seeing stuff that says “just set it to 0” — which apparently works. 🙂 But what it means if it’s not 0, i couldn’t tell you.

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

Sidebar

Related Questions

Any assembly interpreters out there? What I'm looking for: I have some assembly firmware
I have a .NET assembly that contains classes to be registered as ServicedComponent through
I used to think that an assembly could have only one main() method until
I have an assembly that contains classes that import a number of classes from
I've got a very odd problem: I've compiled some Matlab code into an assembly.
I have a .NET 4.0 web application that uses a .NET 2.0 assembly. I've
I have a class library that uses some xml files found in its own
Assembly [AssemblyName] must have a shared name to be installed globally I am getting
Assembly.Location gives a plain path to the assembly. Unfortunately this is empty when running
The problem I have is that I need to do about 40+ conversions to

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.