flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Compiler Internals > "call fix" silently ignored

Author
Thread Post new topic Reply to topic
rugxulo



Joined: 09 Aug 2005
Posts: 2122
Location: Usono (aka, USA)
"call fix" silently ignored
AFAIK, this bug has been around since "fix" was introduced (FASM 1.48).


Code:

org 100h
nop
call fix ; silently ignored in FASM 1.71.60
int 20h
fix:
mov al,7
int 29h
ret





Quote:

[ FreeDOS ] G:\TONY>fasm140 callfix.asm callfix.com
flat assembler version 1.40
2 passes, 11 bytes.

[ FreeDOS ] G:\TONY>ndisasm -b16 -o100h callfix.com
00000100 90 nop
00000101 E80200 call word 0x106
00000104 CD20 int 0x20
00000106 B007 mov al,0x7
00000108 CD29 int 0x29
0000010A C3 ret

[ FreeDOS ] G:\TONY>fasm150 callfix.asm callfix.com
flat assembler version 1.50
1 passes, 8 bytes.

[ FreeDOS ] G:\TONY>ndisasm -b16 -o100h callfix.com
00000100 90 nop
00000101 CD20 int 0x20
00000103 B007 mov al,0x7
00000105 CD29 int 0x29
00000107 C3 ret

Post 24 Feb 2017, 16:13
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: 14928
Location: 6EQUJ5
fix is not too dissimilar from equ.

Would you also consider call equ a bug?
Post 24 Feb 2017, 16:24
View user's profile Send private message Visit poster's website Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 875
rugxulo
call fix is not silently ignored. It's correctly preprocessed away, which is the expected behaviour. Every subsequent appearance of the "call" token would then be preprocessed away as well, because this is how fix is supposed to work. The same effect would appear with call equ .

_________________
Faith is a superposition of knowledge and fallacy
Post 24 Feb 2017, 16:27
View user's profile Send private message Reply with quote
l4m2



Joined: 15 Jan 2015
Posts: 584
Why fix: doesn't make error
Post 23 Jun 2017, 10:19
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.