这是 16 位实模式 NASM。
; ---- variables ------
cursorRow db 1
.
.
.
; what are the differences between these two pushes?
push cursorRow ; is this the address of?
push [cursorRow] ; is this the value of?
我在以 cursorRow 为参数的函数中更改此变量时遇到问题。我发布的一个相关问题:从堆栈及其段更新位于数据段中的变量