flat assembler
Message board for the users of flat assembler.

Index > DOS > TASM -> FASM syntax question_2

Author
Thread Post new topic Reply to topic
FASMresearcher



Joined: 28 May 2008
Posts: 24
FASMresearcher
Hi All! And Good Day for you!
I try to analyse the sign bit in packed BCD value. And then extract the subsequent bytes one by one for transformation each of them to the ASCII form.
This test code compiled using TASM without problems:
Code:
PBCDvalue dt ?

mov al, [offset PBCDvalue + 9] ;Sign extraction.
....
cmp [offset PBCDvalue + byte ptr bx], 0 ;bx - next byte number
....
mov al, [offset PBCDvalue + bx] ; extracts next byte
....    

All three lines in no way want to be compiled using FASM (I excluded 'offset '). Sad .
I think this is the syntax difference. What correct instructions I have to be written?
Question
Post 07 Jun 2008, 23:17
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2913
Location: [RSP+8*5]
bitRAKE
Code:
PBCDvalue dt ?

mov al,byte[PBCDvalue + 9] ;Sign extraction.
....
cmp byte[PBCDvalue + bx], 0 ;bx - next byte number
....
mov al,byte[PBCDvalue + bx] ; extracts next byte    

_________________
¯\(°_o)/¯ unlicense.org
Post 08 Jun 2008, 01:44
View user's profile Send private message Visit poster's website Reply with quote
FASMresearcher



Joined: 28 May 2008
Posts: 24
FASMresearcher
Thanks a lot Smile !
Post 08 Jun 2008, 09:08
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.

Powered by rwasa.