この as86 用のアセンブリを fasm に変換しようとしています。3 つの質問があります。
1) seg es
与えられたerror: illegal instruction.
this が 16 ビットで有効でないのはなぜですか?
2) (FASM 構文) はmov byte [0],0x41
(as86 構文) とまったく同じmov [0],#0x41
ですか? そうでない場合、同等のものを見せてもらえますか?
3) entry start
FASM でエラーが発生するのはなぜですか?
アセンブリ コードは次のとおりです。
as86
entry start
start:
mov ax,#0xb800
mov es,ax
seg es
mov [0],#0x41
seg es
mov [1],#0x1f
loop1: jmp loop1
そして、私が書いた fasm バージョン:
FASM
use16
format binary
start:
mov ax,0xb800
mov es,ax
seg es
mov byte [0],0x41
seg es
mov byte [1],0x1f
loop1: jmp loop1