flat assembler
Message board for the users of flat assembler.

Index > Main > "call or Jmp [ax]"

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
hi all,

Fasm 1.67.37

jmp word [bx] ... it's ok, no problem compiling

but

jmp word [ax] ... fails ..
(error: reserved word used as symbol)

???
Post 27 Mar 2009, 10:54
View user's profile Send private message Send e-mail Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
[ax] is not a valid addressing method. You can use only [bx+si], [bx+di], [bp+si], [bp+di], [bx], [si], [di], [label].
Post 27 Mar 2009, 10:57
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17715
Location: In your JS exploiting you and your system
revolution
In 16 bit code AX is not allowed as an address register. Only SI, Di, BP and BX plus a few combinations SI/DI+BP/BX
Post 27 Mar 2009, 10:57
View user's profile Send private message Visit poster's website Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
you're late Razz
Post 27 Mar 2009, 10:59
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji
this is the first time I use 16-bit assembler ... I always used 32 bits.
Only SI, Di, BP and BX and combinations with assembler 16 bits ?
I did not think if there were big differences.
ok, I understand, thank you very much.


(sorry for my English, I'm French)
Post 27 Mar 2009, 11:12
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17715
Location: In your JS exploiting you and your system
revolution
MazeGen wrote:
you're late Razz
Story of my life.

And now I can't delete because you posted already Sad
Post 27 Mar 2009, 11:13
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Already asked 1'000'000 times. RTFF: http://board.flatassembler.net/topic.php?t=9473

Also, move to Main.
Post 27 Mar 2009, 14:52
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.