|
the problem in this code is that it can't compile it when "A" is defined as "int"
"C:\Documents and Settings\simon\Desktop\the program.cpp(34) : error C2443: operand size conflict"
in my program A is in the range of 1-512 in decimal so thier is no problem with the size.
so how i force it to compile?
or how i change the program to compile it?
void light_port_b(int A)
{
_asm
{
mov Dx,PORTB
Mov Al,A
Out Dx,Al
}
}
|
|
|
|
|
Ints are 32 bits nowadays, and AL is a 16 bit reg. Change it to unsigned short.
Odd forum for a programming question by the way
Ryan
|
|
|
|
|
Ryan Roberts wrote:
and AL is a 16 bit reg.
its 8 bits
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Oops. Teach me to answer questions when drunk.
I'll leave my stupidity for prosperity
Ryan
|
|
|
|
|
Where I'm currently working, I have no reasonable career path. Moving up isn't an option, as there's (practically speaking) nowhere to go without becoming a manager. However, I'm quite well paid as developers go generally speaking, particularly given my location .
I'm not averse to moving, but I live in a 4 bedroomed detached house (with office at home, broadband etc) facilities, and if I move, it's going to cost to achieve the same environment.
Ideally I'd like to be able to work from home most days, which, via VPN, isn't a problem at the moment (although when I'm doing a lot of work involving our test servers, I do go into the office).
Are there many companies in the UK that are properly geared up for this, and actually trust their employees to work rather than watch daytime TV?
Steve S
|
|
|
|
|
(Oh no, another change in the organisational structure....)
Looks like I'll be going back to contracting real soon now.
Steve S
|
|
|
|
|
We are in search of a java script writter. If you are interested in some money on the side, not full time, please click this link: CLICK ME
LOSTTWARE.com
My site allows for people to develop private programming teams, with password protected forums for each team.
|
|
|
|
|
I've made a few practical applications of UML at work over the past year or two, applying what I've learned from a couple of books on the subject. My questions are:
* What books have you used to learn UML?
* Where did you learn UML -- self taught, instructor-led, OJT?
* If you actually used it at work, what was the scope and scale of the project?
Any other recommendations?
|
|
|
|
|
Perhaps very few people are reading this forum...?
|
|
|
|
|
John Kuhn wrote:
Perhaps very few people are reading this forum...?
This does seem to be a slow forum
|
|
|
|
|
John Kuhn wrote:
* What books have you used to learn UML?
UML Distilled followed by the Craig Larman book which is excellent.
John Kuhn wrote:
* Where did you learn UML -- self taught, instructor-led, OJT?
Self taught
John Kuhn wrote:
* If you actually used it at work, what was the scope and scale of the project?
I've only used it on one large project at my previous job and on some small scale stuff currently.
|
|
|
|
|
Avery, thanks for the response.
This book by Larman?: Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process (2nd Edition)
|
|
|
|
|
John Kuhn wrote:
This book by Larman?: Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process (2nd Edition)
That's the one.
|
|
|
|
|
Hi, Friends, I developed a shareware to protect and manage passwords, which has following features:
1. USB-Disk and Floppy disk supported
2. MD5 Algorithm supported to store User account info
3. Industrial-Standard Encryption Algoritm to protect password items
4. Bird-Eye (C) Technology adopted to prevent peering
5. Hacker Hooking prevented
Welcome evaluate it from http://www.annexsoft.com/kingpass/index.htm
and send any comments to me (relations@annexsoft.com).
//***************************
I believe ideal is not always so far...
|
|
|
|
|
Contact Chris for advertisements please
I was born intelligent Education ruined me!.
|
|
|
|
|
Data structures has always been favorite topic among interviewers. How about sharing our interview experiences on data structures?
Mine:
Reversing a linked list.
|
|
|
|
|
Ironically, in the last 13 years, no one has ever asked me any real "computer science 101" questions. As a result, I've become incredibly bad at answering them, and I don't often construct my own linked lists or binary trees when programming in C# or VB.NET, so I feel really rusty in these areas. I while ago, I picked up a book called "Programming Interviews Exposed" published by Wiley & Sons. It's crammed with exactly that kind of question, along with logic puzzles, etc., that might be asked during a programming interview.
|
|
|
|
|
Hi All,
Currently I'm working on generation of makefile scripts.
I have a lot of problems here since the make utility I use is from Cygwin package.
This means that it recognizes only the paths in UNIX encoding, all of those \ to / and other stuff with spaces allowed in Win.
To avoid problems I have to double all my makefile vars with the followed method:
Example:
SOME_PATH = C:\My Path\
SOME_PATH_UNIX = C:/My\ Path
SOME_PATH_UNIX/target : SOME_PATH_UNIX/prerequisite
sometool "SOME_PATH\prerequisite"
In other words I have to use UNIX path encoding for specifing targets and prerequisites and Windows path encoding for commands. That sux.
So my question is: Have anybody ever heard about FREE make utility for Windows with native Windows path encoding? It seems I cannot find it over Inet. I mean so FREE so I can redistribute it.
I would appreciate for any help
|
|
|
|
|
You could either download and install cygwin[^], a Win32 port of UNIX posix libraries and utilities (including build tools like make, or download and install the Microsoft Platform SDK[^], which includes build tools like nmake (basically the same as make).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you for reply, but unfortunately these utilities are not redistributable.
|
|
|
|
|
nmake from the PSDK might not be, but make from cygwin is. In fact, I see a lot of applications that distribute the cygwin1.dll, other optional DLLs, and utilities to run *nix applications that have been recompiled against cygwin to run on Win32.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have contacted with Red Hat sales manager about redistribution of Cygwin components. Here is the answer:
"Red Hat owns the copyright on the Cygwin dll and
as such makes the code freely available under the
licensing terms of the GPL. If the application
you are distributing is open source, you are fine.
If you want to distribute a prorietary application
you must purchase a Commercial License from us. We
offer a 3 year unlimited buyout for $50,000..."
--
Shawn Hunter
Sales Development Representative
Red Hat, Inc.
This is not my case in fact, because my application is commercial and close source.
So these guys that use Cygwin in close source manner may have troubles with the law.
|
|
|
|
|
Some time ago there was a free MAKE source from somewhere like Lattice, the people that produced C compilers (I said it was a while ago). It was more UNIX oriented, although it was source code and #ifdef'd for MS-DOS. Shouldn't take too much conversion.
it's at this location[^] as NMAKE.ZIP
Steve S
|
|
|
|
|
Found this in a job posting online (no, they are not looking for a team, they are looking for an individual..amen):
BSCS, Modeling and Systems Integration, analyses, design, development, implementation, data modeling, OOA, HTML, XML, CSS, XSL, Windows, GUI, MFC , J2EE, UNIX, C, C++ , COM , Java, Perl, RUP, DB2, Oracle, SQL Server, .NET
Man Learns from History that he never learns from History
|
|
|
|
|
I'm not qualified. But it wouldn't be surprising for a person to have a wide range of skill - if the person has like ten years of experience in IT. But, I don't think anyone can be an expert in everything. I mean, I don't remember a lot of the stuff I did two years ago.
But recruiters are becoming... unreasonable these days
Norman Fung
|
|
|
|