reply.......
You have to change the name(or symbol) for the entire program i.e.. where ever the name is used you have to change it with the new name.when i change it the program shows error
xyz: db 72 ; Allocate a memory location for 72,
; name it, and set it to 72
result: ds 1 ; Allocate a memory location for result
Yes its a variable not an assembler directive,In this xyz is variable or ...
and why we use Colon )??
org 0 ; Load the code starting memory position 0
P: db 20 ; Allocate memory locations for P, Q, R, S
Q: db 21 ; and initialise them to some values
R: db 22
S: db 23
T: ds 1 ; Allocate a memory location for T
start : lxi SP, 255 ; Load the stack pointer with 255
mvi A, 10 ; Load A, B, C, D, E with critical values
mvi B, 11 ; that we want to retain
mvi C, 12
mvi D, 13
mvi E, 14
call sbrt ; Call the subroutine
hlt ; Halt. Notice the original values were restored.
Yes its a variable not an assembler directive,
Its depends on assembler, different assemblers have different type of syntax for defining and declaration of variables...
reply please
Good luck then, with your exambut i don't getting time due to exam from next week
The x86 is next version of x85, so it should have x85 mnemonics?? or tell then how to store rather than mov instruction..Because they are different.
hi,You will have to look at the register layout of the 8085 and the 8086
by Jake Hertz
by Jeff Child
by Duane Benson