yasmがキーワード「オフセット」を認識しないのはなぜですか?

StackOverflow https://stackoverflow.com/questions/9026800

  •  14-11-2019
  •  | 
  •  

質問

私は天国のgate をまとめています。

yasm-1.2.0-win64.exe "Heaven's Gate.asm"
.

以下のコード付き:

global main
section .text
main:
    bits 32
        db      9ah ;call 33:in64
        dd      offset in64
        dw      33h
        ;32-bit code continues here

    bits 64
    in64:
        gs mov rax, qword [30h] ;gs not fs
        mov rax, qword [rax+60h]
        mov rax, qword [rax+18h]
        mov rax, qword [rax+30h]
        mov rax, qword [rax+10h]

    bits 32
        retf
.

しかしyasmは私に言っています:

Heaven's Gate.asm:6: error: undefined symbol `offset' (first use)  
Heaven's Gate.asm:6: error:  (Each undefined symbol is reported only once.)
.

キーワードをoffsetではありませんか?なぜ私はこのエラーを得るのですか?

役に立ちましたか?

解決

offset is superfluous in yasm/nasm syntax. Remove them, as the label itself stands for its offset.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top