flat assembler
Message board for the users of flat assembler.

Index > DOS > A syntax problem

Author
Thread Post new topic Reply to topic
Dragos



Joined: 28 Jan 2009
Posts: 2
Dragos 28 Jan 2009, 12:43
Here's what the DOS-Debug can:

Code:
0B71:0100 2E     CS:
0B71:0101 C537   LDS     SI,[BX]
    


Here's what FASM says:

Code:
D:\fasm>fasm test.asm
flat assembler  version 1.67.29  (15360 kilobytes memory)
test.asm [86]:
        cs:
error: reserved word used as symbol.
    


Is there a different syntax for the code above or it just doesn't work that way with FASM?

Thanks!
Post 28 Jan 2009, 12:43
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 28 Jan 2009, 12:47
Just remove the colon (:)
Code:
cs    
Post 28 Jan 2009, 12:47
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 28 Jan 2009, 14:29
You could also replace the entire code with just "LDS SI, [CS:BX]".
Post 28 Jan 2009, 14:29
View user's profile Send private message Reply with quote
Dragos



Joined: 28 Jan 2009
Posts: 2
Dragos 28 Jan 2009, 15:41
Problem solved

Thanks a lot guys!
Post 28 Jan 2009, 15:41
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.