Re: Simple C++/Asembler question

  • From: "The Elf" <inthaneelf@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 31 Mar 2011 11:07:15 -0700

as ken pointed out, not true!

on my grab bag site (URL under my name) there are a few different compilers for C++ work including the ever popular eclipse IDE

and although 2010 isn't working well 2008 does! so go get it and do your thing!

ask the question correctly and we may well be able to answer it.

elf
Moderator, Blind Access Help
Owner: Alacorn Computer Enterprises
Specialists in customized computers and peripherals
- own the might and majesty of a Alacorn!
www.alacorncomputer.com
proprietor, The Grab Bag,
for blind computer users and programmers
http://grabbag.alacorncomputer.com

----- Original Message ----- From: "Ken Perry" <whistler@xxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Thursday, March 31, 2011 4:44 AM
Subject: RE: Simple C++/Asembler question


This is not true you could get mingw and learn  c++ after you learn a
command line compiler you can use any c++ compiler in fact you can use the
express at the command line now.

ken

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Harmony Neil
Sent: Thursday, March 31, 2011 2:28 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Simple C++/Asembler question

To the original poster, what compiler are you using? Wish I could get visual
studio 2010 express to work with jfw, but apparently not, so I can't even
start learning c++.

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Sina Bahram
Sent: 31 March 2011 07:25
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Simple C++/Asembler question

How are you printing?

The old way of printing was to move 9 to AH, or was it AL,.. god I don't'
remember. But it was an int 21

Take care,
Sina

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Celia Rodriguez
Sent: Thursday, March 31, 2011 2:17 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: Simple C++/Asembler question

Hi Everyone,

Is there someone who can help me on this little simple problem?
I am sure that my main problem is that I do  not understand how the
registers and storage areas work.
The following is a simple console program. It adds two numbers entered by the user. and displays the answer. My problem is when the anser is > then 9
I have tried adding the two numbers to eax  and displaying from eax, and
moving the numbers to ah, al and adding the two numbers,  all I display is
garbage.
I hate to bother you with this such a small problem,  but I really do not
understand why I cannot display what is in register eax.
I will greatly appreciate anyone's help on this.

Thank you,
Celia

// reads the first digit then clears the buffer
loop10:
lea ecx,b;
call putstr;
call getch;
cmp eax,'0';
je loop10
sub eax, '0';
mov x, eax;

call getch;


// reads the second digit

lea ecx,b;
call putstr;
call getch;
sub eax,'0';
mov y, eax;



mov ebx,x;
mov ecx,y;


add eax,ebx;
add eax,ecx;

// this part does work when adding two  numbers < 10
add ecx,ebx;

//cmp eax , '10';

add eax,'0';


add ecx,'0';

call putch;





}0;//return 0;
}




__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: