Re: Windows graphics problem



maan kapoor wrote:
hi can u help

i have problems with an example from my textbook on windows console
programming. here is some code to change the background to blue,

asm movb ah, 0x2
asm movb dl, 0x7
asm int 0x21

this works fine on turbo c 2.01.

but i try to compile it with lcc, a free windows compiler, and it doesnt
work.

can u help

thx


Your textbook on windows console programming is about
MSDOS console programming. Putting some values in the registers
and calling int 0x21 stopped working more than 12 years ago when MSDOS
died a natural death.

Besides, lcc has another assembler syntax so that your code will not
be understood.


Now, the good news is that lcc has a compatibility library to use the
console, similar to the one turboc uses.

#include <tcconio.h>

int main(bvoid)
{
textbackground(BLUE);
}


You link the above program with tcconio.lib.


--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.



Relevant Pages

  • Re: window console assembly with win32 API
    ... I'm looking for tutorials on programming in a windows console with the ... Programming with the win32 API. ...
    (alt.lang.asm)
  • window console assembly with win32 API
    ... I'm looking for tutorials on programming in a windows console with the ... Programming with the win32 API. ...
    (alt.lang.asm)
  • Re: MSIL or Bytecode taught instead of ASM
    ... "to the general programming community"?... ... heavily used programming languages (whether C, C++, or Java is most ... I think it is as practical to learn for modern college students ... ASM wouldn't be much more challenging. ...
    (comp.programming)
  • Re: a turbo assembly language
    ... >>that ASM is no more time consuming than an HLL. ... >of the programming SoftWares has gone wrong. ... language representation is, by definition, attempting to create an HLL. ...
    (alt.lang.asm)
  • The Great Debate
    ... > but ASM proved to be very cumbersome and unproductive, ... He did *not* say assembly language projects ... as structured programming grew in popularity). ... the *physics* was harder than the math. ...
    (alt.lang.asm)

Loading