我在Mac OS X上使用gnu emacs,但我找不到.emacs.
我创建〜\ .emacs,但它不起作用.我该如何配置我的emacs?
NASM提供以下错误消息:
> ipl.asm:33: error: invalid operand type
Run Code Online (Sandbox Code Playgroud)
出现错误的位置:
RESB 0x7dfe-$
Run Code Online (Sandbox Code Playgroud)
这是代码:
ORG 0x7c00
JMP entry
entry:
MOV AX,0
MOV SS,AX
MOV SP,0x7c00
MOV DS,AX
MOV ES,AX
MOV SI,msg
putloop:
MOV AL,[SI]
ADD SI,1
CMP AL,0
JE fin
MOV AH,0x0e
MOV BX,15
INT 0x10
JMP putloop
fin:
HLT
JMP fin
msg:
DB 0x0a, 0x0a
DB "hello, world"
DB 0x0a
DB 0
RESB 0x7dfe-$
DB 0x55, 0xaa
Run Code Online (Sandbox Code Playgroud)