【发布时间】:2021-02-09 10:38:00
【问题描述】:
我有为 TASM 编写的代码,据我所知 YASM 与该代码兼容,所以我知道为什么会出现这些错误:
91.asm:3: error: instruction expected after label 91.asm:4: error: instruction expected after label 91.asm:27: error: instruction expected after label
对于此代码:
IDEAL
MODEL small
STACK 21h
DATASEG
; --------------------------
; Your variables here
; --------------------------
CODESEG
global start
start:
; --------------------------
; Your code here
; --------------------------
mov cx, 21
mov ax, 1000h
cmp cx, 0
je myExit
addStack:
push ax
inc ax
loop addStack
myExit:
exit:
mov ax, 4C00h
int 21h
END start
【问题讨论】: