flat assembler
Message board for the users of flat assembler.
Index
> DOS > Please recommend me a DOS-based disassembler!Goto page Previous 1, 2 |
| Author |
|
|
bitdog2u 28 Mar 2025, 11:53
I wrote a disassembler in FASM 1.51 for 16 bit dos .com files
I'll post a HELLO WORLD out put below. I now have a version that is working good enough to share, here: DIS.com disassembler for 286, out files assemble with FASM https://board.flatassembler.net/topic.php?t=24176 For DOS 386+ code try this stuff: DISn.COM converts nDISasm.exe NASM disassemblers output to the same EOL info as DIS.com https://board.flatassembler.net/topic.php?p=245489#245489 PS, The new DISn101 version works with CandyMans QDD32.exe also, found here (and it is better than Nasm nDISasm.exe) https://board.flatassembler.net/topic.php?p=109397#109397 You can use the output of one disassembler to PATCH/FIX the output of the other using DISn.com code that has the Label = the address into the executable. IT'S MAGIC of some kind I'm pretty sure. Last edited by bitdog2u on 04 Apr 2026, 15:02; edited 2 times in total |
|||
|
|
revolution 28 Mar 2025, 12:29
Code can be posted inline if it is short. Or it can be attached to a post if it larger.
|
|||
|
|
Picnic 04 Jun 2025, 21:00
That writing style is unmistakable, good to see you around, bitdog!
Really nice work on the disassembler! The output is detailed and informative, and the labeled format makes it easy to follow. I think that with a bit of cleanup (ike replacing hardcoded addresses with labels) it could become a useful tool for reverse engineering and learning (that is, if you decide to release the sources). Code: ORG 100h USE16 L0100: MOV DX,272 ; 3 bytes (BA 10 01) MOV AH,9 ; 2 bytes (B4 09) INT 21h ; 2 bytes (CD 21) MOV AH,8 ; 2 bytes (B4 0 Let me analyse it a bit more (a.k.a. channel my inner DOS archaeologist) 3 + 2 + 2 + 2 + 2 + 3 + 2 = 16 bytes 0x100 + 16 = 0x110 - 272 (decimal) So yes, at offset 0x110, the "Hello World!" string begins its life. Mystery solved |
|||
|
|
bitdog2u 09 Jun 2025, 12:38
Thanks PICNIC
Thanks Revolution I will see you around, my friend. Last edited by bitdog2u on 15 Jun 2025, 16:08; edited 6 times in total |
|||
|
|
bitdog2u 09 Jun 2025, 13:22
You guys have a great FORUM here.
Last edited by bitdog2u on 15 Jun 2025, 15:54; edited 1 time in total |
|||
|
|
bitdog2u 09 Jun 2025, 16:36
I'm going to check out the CPUID code available here, Thanks
Last edited by bitdog2u on 15 Jun 2025, 15:55; edited 1 time in total |
|||
|
|
bitdog2u 09 Jun 2025, 21:55
CandyMan has a disassembler also....
https://board.flatassembler.net/topic.php?p=109397#109397 |
|||
|
|
bitdog2u 10 Jun 2025, 10:09
I like that.
Last edited by bitdog2u on 15 Jun 2025, 16:41; edited 3 times in total |
|||
|
|
Picnic 10 Jun 2025, 10:18
bitdog2u wrote: Ok PICNIC Hello, While I may not be the most qualified to provide an in-depth critique of this disassembler, as others in the community likely have more experience with such tools... However, I ran another quick test under DOSBox on Windows 10 to evaluate its output. Test Code: Code: org 100h mov cx, 1000 u1: dec cx cmp cx, 100 jae u1 int 20h Disassembler Output: Code: MOV CX,1000 ; p185 $B9E803 DEC CX ; p073 $49 DB 131,249,100,115 ; CMP CX,29540 CLI ; p250 $FA INT 20h ; p205 $CD20 The sequence (should have been something like) 83 F9 64 73 was misdecoded as CMP CX, 29540? bitdog2u wrote: CandyMan has a disassembler also.... Yes, I have used it occasionally in the past! |
|||
|
|
bitdog2u 10 Jun 2025, 11:44
HI, where are you from?
Last edited by bitdog2u on 15 Jun 2025, 16:36; edited 4 times in total |
|||
|
|
Picnic 10 Jun 2025, 12:26
Yoo are welcome.
I didn't test FCV much, to be honest, but it runs normally (and appears trouble-free and stable) in DOSBOX on Windows 10. Some images for proof. One observation: when colors are enabled and it exits, the colors remain on the console. Perhaps it would be better to revert to the default settings. Very nice!
![]() |
|||
|
| Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.