Re: win32 or native NT windows API



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



Relevant Pages

  • Re: Socialism in SF
    ... then certainly Caucasians (although I recognize that term ... the wheel, Caucasians probably did invent wheels for their own use, ... Writing was invented either in ancient Egypt or in Mesopotamia. ...
    (rec.arts.sf.written)
  • Re: There just is not enough scorn in the universe to properly deal with this
    ... We didn't invent it. ... The wheel was given to us by space aliens. ... and hence turned into pools of petroleum by God for looking at ... Surely you don't think a tiny stone from space would have ...
    (alt.sysadmin.recovery)
  • Re: Woodstock vs. Isle of Wight
    ... As a matter of fact, we did invent the wheel, so to speak. ... Instead, I'll recommend that you rent a movie, "Berkeley in the 60s." ... Rent it and watch it and learn something, or get into a Usenet pissing ...
    (rec.music.dylan)
  • Re: Reading XML Via Delphi 6 App?
    ... But I would not recommend it ... > to any boss. ... with this task: "Invent yourself a wheel". ...
    (comp.lang.pascal.delphi.misc)