Forum: Assembly Nov 2nd, 2009 |
| Replies: 4 Views: 610 I just would like to ask, what is the function of the 'CBW'?
Does it replace the
CMP al,'0' part?
I am really confused, since it does not seem to pass through the WEEK_:
Here's my code;
... |
Forum: Assembly Oct 18th, 2009 |
| Replies: 4 Views: 610 MOV AH,DAY
DIV DIVISOR
CMP Al,'0'
JE WEEK_
JMP NOT_WEEK_
that is my code that tries to find out if the "DAY" is divisible by "7", which is the DIVISOR..
i initialized them as.. |
Forum: C Sep 4th, 2009 |
| Replies: 2 Views: 328 thanks for the reply, but I did not fully get your point.I have a code that almost looks like that but it is a working one.
if (a[*x]==':')
{
*(x++);
... |
Forum: C Sep 4th, 2009 |
| Replies: 2 Views: 328 am I doing the right thing here?
I am making a simple lexical analyzer and in the code below, I am trying to check if there is a valid "relational operator" in the input.
The code's parameters:... |
Forum: C Aug 17th, 2009 |
| Replies: 3 Views: 281 here's the code from the tutorial I mentioned above.
BOOL SaveTextFileFromEdit(HWND hEdit, LPCTSTR pszFileName)
{
HANDLE hFile;
BOOL bSuccess = FALSE;
hFile =... |
Forum: C Aug 17th, 2009 |
| Replies: 3 Views: 281 I am trying to make a dialog box that can open, edit and save .txt files. I referred my codes in this tutorial (http://www.winprog.org/tutorial/dialogs.html).
How am I going to modify the code so... |
Forum: C Jul 23rd, 2009 |
| Replies: 1 Views: 195 BOOL SaveTextFileFromEdit(HWND hEdit, LPCTSTR pszFileName)
{
HANDLE hFile;
BOOL bSuccess = FALSE;
hFile = CreateFile(pszFileName, GENERIC_WRITE, 0, NULL,
CREATE_ALWAYS,... |
Forum: C++ Jul 13th, 2009 |
| Replies: 3 Views: 291 our project is to make a lexical analyzer. I am using DevCpp and it is in C. I barely know the idea of the analyzer. Can someone please ive me a clue on where to start in this project. I think if I... |
Forum: C++ Sep 6th, 2008 |
| Replies: 5 Views: 1,270 i didn't find any "simple directmedia layer" in there. am i supposed to get it from somewhere? |
Forum: C++ Sep 6th, 2008 |
| Replies: 5 Views: 1,270 guys, what do you think is the best compiler for beginners in C++?
actually we are asked to make a game in C++. we are now using Dev C++, but we can't find a graphics library in it.
thanks. |