flat assembler
Message board for the users of flat assembler.

Index > DOS > H2D.com with fasm source code

Author
Thread Post new topic Reply to topic
bitdog2u



Joined: 31 Jan 2023
Posts: 42
bitdog2u 14 Jun 2025, 18:42
H2D.com with FASM source code. use16 286

Syntax= H2D FFFFFFFFh
Enter a Hexdecimal number.
Displays a Decimal number."
Dwords, using 16 bit 286 code.
By Bitdog

include "GMHD.inc" ; Get Memory Hex Dword, (ascii chars into Dword DX:AX)
include "WDD.inc" ; Write Decimal Dword in DX:AX

MS DOS couldn't print a TRUE 32 bit decimal number using 16 bit code,
but here it is, in a CALL able PROC form you might find useful.


Description: Print DX:AX in decimal & Get HEX value from ASCII MEMory, PROCs
Download
Filename: H2D.ZIP
Filesize: 3.64 KB
Downloaded: 10 Time(s)



Last edited by bitdog2u on 19 Jun 2025, 18:13; edited 5 times in total
Post 14 Jun 2025, 18:42
View user's profile Send private message Reply with quote
SeproMan



Joined: 11 Oct 2009
Posts: 72
Location: Belgium
SeproMan 14 Jun 2025, 22:45
I would like to add a word about proper attribution.

You have your program display the text "By Bitdog & Peter Cordes".
I reviewed your files and must conclude that nothing originates from the actual person Peter Cordes, that is active on the Stackoverflow forum. It is a different Stackoverflow user from whom that you are borrowing code snippets (included their comments).

I happen to know (and respect a lot) Peter Cordes, and I think he would be displeased seeing his name mentioned in assembly code that explicitly disregards his many marvelous teachings: e.g. how you validate the hexadecimal digits is so not Peter Cordes.

I hope you do realize the importance of proper attribution, and I also hope you keep up the good work of posting interesting assembly programs. I for one like to read those a lot...

_________________
Real Address Mode.
Post 14 Jun 2025, 22:45
View user's profile Send private message Reply with quote
bitdog2u



Joined: 31 Jan 2023
Posts: 42
bitdog2u 15 Jun 2025, 04:44
SeproMan from Belgium says: I would like to add a word about proper attribution.

You have your program display the text "By Bitdog & Peter Cordes".
I reviewed your files and must conclude that nothing originates from the actual person Peter Cordes, that is active on the Stackoverflow forum. It is a different Stackoverflow user from whom that you are borrowing code snippets (included their comments).

I happen to know (and respect a lot) Peter Cordes, and I think he would be displeased seeing his name mentioned in assembly code that explicitly disregards his many marvelous teachings: e.g. how you validate the hexadecimal digits is so not Peter Cordes.

I hope you do realize the importance of proper attribution, and I also hope you keep up the good work of posting interesting assembly programs. I for one like to read those a lot...


Bitdog says:
https://stackoverflow.com/questions/67796211/how-to-display-a-32-bit-div-result-stored-in-dxax
This is one of the DX:AX print code examples by Peter Cordes on stackoverflow.com
In the future it is advised that you do some research before you lay into others.
(So I don't have to;) Please.
Post 15 Jun 2025, 04:44
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.