I have code I made for TASM, and to my knowledge YASM is compatible with that, so IDK why I get these errors:
91.asm:3: error: instruction expected after label 91.asm:4: error: instruction expected after label 91.asm:27: error: instruction expected after label
for this code:
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