Difference between revisions of "Immediate Value"
Chris Tyler (talk | contribs) (Created page with 'Category:Computer ArchitectureAn '''immediate value''' in machine code is a constant or literal value argument. For example, the 6502 instruction: LDA …') |
Chris Tyler (talk | contribs) |
||
Line 1: | Line 1: | ||
[[Category:Computer Architecture]]An '''immediate value''' in [[Machine Language|machine code]] is a constant or literal value argument. For example, the 6502 instruction: | [[Category:Computer Architecture]]An '''immediate value''' in [[Machine Language|machine code]] is a constant or literal value argument. For example, the 6502 instruction: | ||
− | LDA #80 | + | LDA #$80 |
− | Will load the literal value 0x80 into the accumulator (A register). This contrasts with loading a value from a memory location or another register. | + | Will load the literal value 0x80 (128) into the accumulator (A register). This contrasts with loading a value from a memory location or another register. |
Revision as of 11:29, 7 January 2014
An immediate value in machine code is a constant or literal value argument. For example, the 6502 instruction:
LDA #$80
Will load the literal value 0x80 (128) into the accumulator (A register). This contrasts with loading a value from a memory location or another register.