Re: win32 or native NT windows API
- From: "¬a\\/b" <al@xxx>
- Date: Fri, 16 Jun 2006 17:50:25 +0200
On Wed, 14 Jun 2006, Herbert Kleebauer <klee@xxxxxxxxx> wrote:
"randyhyde@xxxxxxxxxxxxx" wrote:##
Herbert Kleebauer wrote:
Again and again and again and again:
We want to learn how to invent the wheel. There are already
many people which know how to multiply. Why should pupils
invent the wheel again and also learn how to multiply?
i agree
It makes no difference whether you using the INT instruction
or call the code directly in memory (e.g., by obtaining the address
from the interrupt vector table). Indeed, many DOS programs include
their own INT handlers, hence such code is part of the user program
anyway.
If the processor is in V86 mode, you have to call the OS.
And if it is not?
Again and again and again and again and again:
If it is in real mode, you can do it yourself.
so you have your printf(), your scanf() function (and seems your OS
too) etc. all written in "real mode" assembly.
speaking on "to invent the wheel" ...
Is it difficult for you write the printf() function in assembly?
My version written all in x86 assembly is lacking in "short",
"unsigned short" "unsigned long", "long" fmt strings (it seems to me
"%hd" "%hu" "%hx" "%ld" %lld etc) because it seems
all goes well for write the shorts longs etc with the integers fmts
"%d, %i %o %x"
then i don't have "%X, %e %g %n" and in "%10.19s" 19 has the menaing
only (precision i.e the digits after the points) for double or long
double not for string etc
I have a global dword tha control if the double or long double has to
print in scientific way or in fixed way
I have a char (' ') for fill the field ("campo") that i can change
and i think that my_printf can write all (in a different way) a printf
could print
the compiler printf write this
printf("%1000000000000 %%s");
-> "%1000000000000 %%s"
my_printf -> "%1000000000000 %s"
who is right?
then i'm rewrite a c++ like (better) stream class using all the
assembly and C functions :)
.
- References:
- win32 or native NT windows API
- From: Vikas Kumar
- Re: win32 or native NT windows API
- From: Julienne Walker
- Re: win32 or native NT windows API
- From: Herbert Kleebauer
- Re: win32 or native NT windows API
- From: randyhyde@xxxxxxxxxxxxx
- Re: win32 or native NT windows API
- From: Herbert Kleebauer
- Re: win32 or native NT windows API
- From: randyhyde@xxxxxxxxxxxxx
- Re: win32 or native NT windows API
- From: Herbert Kleebauer
- win32 or native NT windows API
- Prev by Date: Re: Book on Assembly
- Next by Date: Re: Book on Assembly
- Previous by thread: Re: win32 or native NT windows API
- Next by thread: Re: win32 or native NT windows API
- Index(es):
Relevant Pages
|