flat assembler
Message board for the users of flat assembler.

Index > Windows > Display bug.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1718
Roman 17 Apr 2023, 16:34
Fasmw 1.73
Code:
virtual at 0
     ark::
         ark_txt1 db 'pok '
                  dd 1.0
     ark_size:
end virtual 
display 13,10,';;'   ;show ok
repeat ark_size
load a byte from ark:%-1
display a                   ;show 'pok' befor 1.0, then display not show anything !
end repeat
display 13,10,';;' ;not show text
display 13,10,';;' ;not show
    


Last edited by Roman on 18 Apr 2023, 07:43; edited 2 times in total
Post 17 Apr 2023, 16:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20212
Location: In your JS exploiting you and your system
revolution 17 Apr 2023, 16:39
The "bug" is in your shell window.
Code:
~ fasm test.asm | hd
00000000  66 6c 61 74 20 61 73 73  65 6d 62 6c 65 72 20 20  |flat assembler  |
00000010  76 65 72 73 69 6f 6e 20  31 2e 37 33 2e 30 38 20  |version 1.73.08 |
00000020  20 28 33 39 30 39 34 36  34 20 6b 69 6c 6f 62 79  | (3909464 kiloby|
00000030  74 65 73 20 6d 65 6d 6f  72 79 29 0a 0d 0a 3b 3b  |tes memory)...;;|
00000040  70 6f 6b 20 00 00 80 3f  3b 77 65 78 74 20 3b 2c  |pok ...?;wext ;,|
00000050  00 00 00 77 65 63 6f 28  69 29 20 3b 20 00 0d 0a  |...weco(i) ; ...|
00000060  3b 3b 0d 0a 3b 3b 0a 31  20 70 61 73 73 65 73 2c  |;;..;;.1 passes,|
00000070  20 30 20 62 79 74 65 73  2e 0a                    | 0 bytes..|    
After "pok " you have the raw binary for 1.0 with NULs.
Post 17 Apr 2023, 16:39
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1718
Roman 17 Apr 2023, 16:55
Display put text for MessageBox ?
O !
If this true, than I understand why no text.
Code:
;fix this
if a >= 13
     display a
end if
    
Post 17 Apr 2023, 16:55
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 921
Location: Russia
macomics 17 Apr 2023, 21:13
Code:
if a >= 32
    display a
else
    display '.'
end if    
Post 17 Apr 2023, 21:13
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.