flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > pseudo bug in "file" directive

Author
Thread Post new topic Reply to topic
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Code:
C:\Documents and Settings\Hernan\Escritorio>dir test.txt
 El volumen de la unidad C es DiscoC
 El nĂºmero de serie del volumen es: C0C8-4A32

 Directorio de C:\Documents and Settings\Hernan\Escritorio

03/07/2009  02:04 a.m.                 1 test.txt
               1 archivos              1 bytes
               0 dirs   8.361.091.072 bytes libres

C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':0
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (749569 kilobytes memory)
1 passes, 1 bytes.

C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':1
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (750178 kilobytes memory)
1 passes, 0 bytes.








C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':2
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (749842 kilobytes memory)
error: out of memory.







C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':-1
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (749345 kilobytes memory)
test.asm [1]:
file 'test.txt':-1
error: error reading file.

C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':-1,2
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (749800 kilobytes memory)
test.asm [1]:
file 'test.txt':-1,2
error: error reading file.

C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':0,2
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (749804 kilobytes memory)
test.asm [1]:
file 'test.txt':0,2
error: error reading file.








C:\Documents and Settings\Hernan\Escritorio>type test.asm
file 'test.txt':0,1
C:\Documents and Settings\Hernan\Escritorio>fasm test.asm
flat assembler  version 1.69.01  (749602 kilobytes memory)
1 passes, 1 bytes.    


The pseudo-bug (I haven't confirmed if it can make any harm actually), is the inconsistent message received when the file offset exceeds the file's size.
Post 03 Jul 2009, 05:14
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.