flat assembler
Message board for the users of flat assembler.

Index > DOS > Error: extra characters on line

Author
Thread Post new topic Reply to topic
KiteMaster



Joined: 01 Aug 2003
Posts: 18
Location: Austria
KiteMaster 26 Sep 2003, 20:51
the compiler stops at this instruction
Code:
mov ebx,[pos_x+1] shl 16 + [pos_x+9]
pos_x dw ?
pos_y dw ?

    


whats wrong?? Question
Post 26 Sep 2003, 20:51
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 26 Sep 2003, 21:29
No assembly instruction allows you to perform such calculation. Instead, you should do something like:
Code:
mov bx,[pos_x+1]
shl ebx,16
mov bx,[pos_x+9]    
Post 26 Sep 2003, 21:29
View user's profile Send private message Visit poster's website Reply with quote
KiteMaster



Joined: 01 Aug 2003
Posts: 18
Location: Austria
KiteMaster 26 Sep 2003, 22:05
thx now it works
Post 26 Sep 2003, 22:05
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.