Difference between revisions of "Immediate Value"

From CDOT Wiki
Jump to: navigation, search
(Created page with 'Category:Computer ArchitectureAn '''immediate value''' in machine code is a constant or literal value argument. For example, the 6502 instruction: LDA …')
 
 
(4 intermediate revisions by the same user not shown)
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]]
  
LDA #80
+
An ''immediate value'' in [[Machine Language|machine code]] is a constant or literal value argument. For example, the 6502 [[Assembly Language|assembly]] instruction:
  
Will load the literal value 0x80 into the accumulator (A register). This contrasts with loading a value from a memory location or another register.
+
LDA #$80
 +
 
 +
...will load the literal value 0x80 (128) into the accumulator (A register).
 +
 
 +
Note that the value to be loaded comes from an argument within the instruction stream; this contrasts with loading a value from a memory location in a data area, or from another register.

Latest revision as of 13:00, 8 September 2014


An immediate value in machine code is a constant or literal value argument. For example, the 6502 assembly instruction:

LDA #$80

...will load the literal value 0x80 (128) into the accumulator (A register).

Note that the value to be loaded comes from an argument within the instruction stream; this contrasts with loading a value from a memory location in a data area, or from another register.