nasm错误,“错误:表达式语法错误”,如何始终在恒定位置跳转引导加载程序代码

问题描述

代码给出错误 第1行:错误:表达式语法错误 第6行:表达式语法错误

如果我最后使用“ H”,则错误消失

7C00 EB3C          JMP     7C3E          ; Jump over the BPB.
7C02 90            nop                   ; Do nothing. Address not used.
7C3E FA            CLI               ; disable maskable Interrupts
7C3F 33C0          XOR  AX,AX        ; Zero-out the Accumulator and set
7C41 8ED0          MOV  SS,AX        ;  Stack Segment register to ZERO.
7C43 BC007C        MOV  SP,7C00      ; Stack Pointer top Now 0000:7C00
7C46 16            PUSH SS           ;|
7C47 07            POP  ES           ;|Makes sure Extra Segment = ZERO.
7C48 BB7800        MOV  BX,0078      ; 0078h ---> BX
7C4B 36C537        LDS  SI,SS:[BX]   ; SS is still zero...
                                 ; Load Far Pointer from [SS:0078]
                                 ; into DS:SI  (usually 0000:0522).
7C4E 1E            PUSH DS
7C4F 56            PUSH SI
7C50 16            PUSH SS
7C51 53            PUSH BX

; The following four instructions will overwrite 11 code bytes starting at 
;7C3Eh:
7C52 BF3E7C        MOV  DI,7C3E      ; Will overwrite some code bytes!
7C55 B90B00        MOV  CX,000B      ; copy CX (0Bh = 11) bytes from ...
7C58 FC            CLD               ; Clear Direction Flag (df=0).
7C59 F3A4          REP  MOVSB        ; ... DS:SI to ES:DI (0000:7C3E) and
                                 ; following; DI increases to 7C49.

代码给出错误 第1行:错误:表达式语法错误 第6行:表达式语法错误

如果我最后使用“ H”,则错误消失

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)