News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

displaying any register on the screen

Started by williec35, May 15, 2009, 01:09:50 AM

Previous topic - Next topic

Vortex

Hi dedndave,

You can find the MASM32 Library Reference in :

\masm32\help\masmlib.chm

Creating your own routines is always a fun and it's a very good method to understand programming concepts.


dedndave

truthfully, in the 16-bit world, i had always written my own stuff, anyways
the problem i was having was i had a 64 bit unsigned value in EDX:EAX and wanted to display it in decimal
the documentation was a little unclear as to how to do that
one of the things about wsprintf is, if my code starts looking like C, i want to do it differently - lol
part of the reason i write in assembler to begin with is to have control over things like function overhead
i have dis-assembled programs written in C (many years back)
i know why the apps are so slow - i have seen stuff like this........

SomeStupidProc proc

push bp
mov bp,sp
push ax
mov ax,[bp+4]
inc ax
mov [bp+4],ax
pop ax
pop bp
ret

SomeStupidProc endp

you get the idea (half the time, the value was in ax to begin with)
it seemed a little excessive to me - lol
since then i have written everything in assembler
and i like writing in assembler because if it is slow,
i can isolate the bad guy and try to make it faster