Let's say I have this 2 lines of code:

    ORG $8100
X   DC  1,2,3,4,5,...
EX  EQU X+$10

What does X+$10 mean? (On motorola 68000)

有帮助吗?

解决方案

$ indicates a hexadecimal constant, in this case 10 hex, or 16 decimal. So

EX  EQU X+$10

means that the EX variable is defined to be 16 more than the X variable.

In this example, X happens to be 8100 hex and so EX would be 8110 hex.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top