有没有办法从 C64 的 Kick Assembler 中的宏访问全局常量

Is there a way to access global const from the macro in Kick Assembler for C64

我定义了一个 const 用作 KickAssembler (C64) 宏中的参数。 这有效:

.macro MAZE(start){
  .const WALL = $E0
  MAZE_fill(WALL)
}

这不是:

.const WALL = $E0
.macro MAZE(start){
    MAZE_fill(WALL)
}

因此,如果在宏中定义了符号,则在汇编过程中可以识别它。但如果是 global,那就不是。
我的动机是拥有全局符号,因此只有一个地方可以更改它们。
有办法吗?

使用 const 是错误的。使用 label 时,这会按预期(全局)工作。

.label WALL = $E0
.macro MAZE(start){
    MAZE_fill(WALL)
}