汇编问题
;Display string (09H)
CODE SEGMENT PUBLIC
ASSUME CS:CODE,DS:CODE
ORG 100H
START: JMP BEGIN
MSG DB 'Hi! This is a dollar sign terminated string.','$'
BEGIN: MOV AX,CS
MOV DS,AX
MOV DX,OFFSET,SG ;(9)
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START ;(15)
这是照抄书上的,我用Visual Studio.NET 2003里自代的MASM版本信息如下:
Microsoft (R) Macro Assembler Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
usage: ML [ options ] filelist [ /link linkoptions]
Run "ML /help" or "ML /?" for more info
错误信息如下:
Microsoft (R) Macro Assembler Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
Assembling: C:\Downloads\123.asm
C:\Downloads\123.asm(9) : error A2008: syntax error : ,
C:\Downloads\123.asm(15) : warning A4023: with /coff switch, leading underscore required for start address : START
我的OS是:XP+SP1
请问我在XP下怎样才能让这段代码过?
小弟才学汇编想跟书上的脚步走可是每次汇编都失败,请各位老师指点。