How you can enter equ?

0 like 0 dislike
23 views
Hello!
Can I somehow determine the constant in the data segment
override in .code?
Or a constant is the constant?
by | 23 views

2 Answers

0 like 0 dislike
Depends on the type of the actual constants. If this number is, it will fall to the registers and had to change would be opcode. If this data is compiler dependent. Some can pack the constants in the data section and they can be changed. But is who creates the partition with read-only access.
by
0 like 0 dislike
Constants defined using the equ is character constants, their values are substituted at the stage of preprocessing, you can define them and redefine anywhere, their place of action, from the point of definition to the end of the program.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
6 answers
asked May 10, 2019 by Mr-Governor
0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
asked May 20, 2019 by timur102
110,608 questions
257,186 answers
0 comments
33,895 users