flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > a hex viewer in FASM

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
int0x50



Joined: 19 Jul 2019
Posts: 54
int0x50 30 Jul 2023, 15:21
there is some bug in the argument processing code ... but the error you have given, usually happens if you run the fih.exe through batch file ...

I shall look into argument processing and fix it ...

printn is a custom procedure, that i used to print a new line .. it's available in libs.inc file .. so it should assemble ... it's printf, 13, 10 ...
Post 30 Jul 2023, 15:21
View user's profile Send private message Reply with quote
Flier-Mate



Joined: 26 May 2023
Posts: 88
Flier-Mate 30 Jul 2023, 15:50
int0x50 wrote:
there is some bug in the argument processing code ... but the error you have given, usually happens if you run the fih.exe through batch file ...

I shall look into argument processing and fix it ...


I think I understand that, my Win32 command-line programs are the opposite, can run in CMD but cannot parse the filename correctly in PowerShell. Surprised

int0x50 wrote:

printn is a custom procedure, that i used to print a new line .. it's available in libs.inc file .. so it should assemble ... it's printf, 13, 10 ...


It is "print_newline".... maybe you didn't update the fih.asm.

Nice work, by the way.
Post 30 Jul 2023, 15:50
View user's profile Send private message Reply with quote
int0x50



Joined: 19 Jul 2019
Posts: 54
int0x50 31 Jul 2023, 02:39
printn is a function defined within libs.inc as :

proc printn, inputstring

just below print_newline: ...

it's like printf, "hey" vs printf, "hey", 13, 10 ... need to remove these redundant codes ..

code cleanup is something i am planning today along with bug fixes ...
Post 31 Jul 2023, 02:39
View user's profile Send private message Reply with quote
int0x50



Joined: 19 Jul 2019
Posts: 54
int0x50 31 Jul 2023, 03:23
ran the same tests (assembly vs powershell)

input file size: 105 MB - 110596096 bytes.


Description: the powershell measurement ...
Filesize: 5.55 KB
Viewed: 1292 Time(s)

POWR.PNG


Description: the assembly code through FASM assembler measurement ...
Filesize: 5.6 KB
Viewed: 1292 Time(s)

FASM.PNG


Post 31 Jul 2023, 03:23
View user's profile Send private message Reply with quote
int0x50



Joined: 19 Jul 2019
Posts: 54
int0x50 31 Jul 2023, 09:35
when I run fih.exe sample.exe, as a command it runs fine ..
but when I give that command in a bat file, somehow the last 'e' gets skipped ...

how do I debug this scenario? JIT (with int3) is not working ...

point is, i need to run my fih.exe through batch command, and make it break at interesting locations on x64dbg ...
Post 31 Jul 2023, 09:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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.