Forum: Assembly Sep 20th, 2008 |
| Replies: 1 Views: 667 Oh, Oh, panic homework assignment.
I don't understand what relevance word and sentence limits have in so much as the reversal algorithm and can there be more than one sentence in the string.
... |
Forum: Assembly Sep 11th, 2008 |
| Replies: 5 Views: 1,006 Interesting Nathan, however your example renders the computer redundant as you've already done the calculating, therefore a word processor would have been a better choice.
I do agree with your... |
Forum: Assembly Sep 10th, 2008 |
| Replies: 5 Views: 1,006 Here is my version of FizzBuss and it took me 2 1/2 hrs. I've read these little
blurbs about how this is used to test potential programmers and in fact the
overall method only took me 20 seconds to... |
Forum: Assembly May 3rd, 2008 |
| Replies: 1 Views: 3,166 Actually that's not correct, you did convert it and a reasonably good job too, the only problem is it's not working as expected.
1. You only initialize AL to -1 (255 or 0FFH) once and then inside... |
Forum: Assembly Mar 1st, 2008 |
| Replies: 1 Views: 908 Visualization is probably one of the best methods to comprehension. Invoke DEBUG and then step through the program one instruction at a time and just observe what's going on. OLLYBUG is even better... |
Forum: Assembly Feb 14th, 2008 |
| Replies: 1 Views: 1,298 Outer: inc eax
call Writeint
push ecx
mov ecx, 3
Inner: inc eax
call Writeint
loop Inner
pop ecx
loop... |
Forum: Assembly Feb 1st, 2008 |
| Replies: 0 Views: 3,951 I use GetTickCount in a lot of my applications, so I built this snippet to convert to hours minutes and seconds. Leading extraneous data is excluded from output. |
Forum: Assembly Jan 27th, 2008 |
| Replies: 1 Views: 684 Your question if far to arbitrary to give a concise answer and google will give you lots of links to examples. |
Forum: Assembly Jan 24th, 2008 |
| Replies: 2 Views: 4,999 masm32.com has all the resources you need to get started |
Forum: Assembly Dec 24th, 2007 |
| Replies: 6 Views: 1,560 Maybe consider writing a small boot loader and use BIOS calls instead. Most of the functionality you need is provided by any of the PC BIOS's. That way you are completely independent of any... |
Forum: C++ Dec 8th, 2007 |
| Replies: 2 Views: 4,351 Your computer must run quite a bit different than mine then.
Once you've entered your stringchar word [80];
cin >> word;or whatever size you think you need, then just cycle through all the... |
Forum: C++ Dec 4th, 2007 |
| Replies: 11 Views: 3,071 You can also let 'c','p' & 't' fall through to 'g' |
Forum: C++ Dec 3rd, 2007 |
| Replies: 5 Views: 1,056 I also remebered the way I wanted to do it
LPMINMAXINFO Info
Info = LPMINMAXINFO (lParam)
I don't believe their is any advantage this way other than less to type and easier to... |
Forum: Assembly Dec 3rd, 2007 |
| Replies: 5 Views: 1,219 Post your code please so we can see exactly what it is you have done |
Forum: C++ Dec 3rd, 2007 |
| Replies: 5 Views: 1,056 Thank-you Duoas, my adaptation is as follows and works as expected
case WM_GETMINMAXINFO:
((LPMINMAXINFO) lParam)->ptMinTrackSize.x = WndInfo.MaxWidth;
((LPMINMAXINFO)... |
Forum: C++ Dec 2nd, 2007 |
| Replies: 5 Views: 1,056 How would I declare a pointer to MINMAXINFO that is passed to WPARAM
In WM_GETMINMAXINFO wParam is a pointer to a place on the stack that holds MINMAXINFO. I've triedMINMAXINFO *Info;
Info =... |
Forum: Assembly Dec 1st, 2007 |
| Replies: 2 Views: 3,660 Actually what you want is someone to do your homework not help with a specific problem. I can think of three places where you could find this exact answer, but I think you should at least make a... |
Forum: Assembly Nov 26th, 2007 |
| Replies: 5 Views: 1,219 Based on your example and because you have variable length records SCASB is your best option
mov edi, Emp1
mov al, '$'
xor ecx, ecx
dec ecx
repnz scasb
Now you are... |
Forum: Assembly Nov 19th, 2007 |
| Replies: 2 Views: 1,422 tryinvoke RegOpenKeyEx HKEY_LOCAL_MACHINE, ADDR szRegSubKey, NULL, KEY_ALL_ACCESS, ADDR hKey) |
Forum: Assembly Nov 18th, 2007 |
| Replies: 9 Views: 1,594 Assuming EAX is already null
or ah, 7
or al, 8awould give you that result
ROL SAL SHL and instructions to do bitwise shifts either left in this case or right using ROR RAR SHR.
Knowing the... |
Forum: Assembly Nov 18th, 2007 |
| Replies: 2 Views: 1,275 _printf is not resolved until linked, therefore you have to make the complier aware of this.
extern _printf
I haven't had any success using standard "C" libraires so I use wsprintf which... |
Forum: Assembly Nov 14th, 2007 |
| Replies: 5 Views: 1,855 It appears there are two ways you can do this. (1) I assume CodeWarrior is on a different computer, so after compiling/assembling your code create a flat binary file and this can be read through the... |
Forum: C++ Nov 3rd, 2007 |
| Replies: 9 Views: 1,655 I am an avid and would even venture to say an excellent assembly programmer. In the early 80's my assembly overlays to basic where an essential component to greater throughput. Example sorting 1,000... |
Forum: Assembly Oct 13th, 2007 |
| Replies: 6 Views: 1,886 I've read your private message and appealing to me on what you perceive to be a private area is not going to work. Although I empathize with your dilemma, but there are two problems. (1) Your... |
Forum: Assembly Oct 13th, 2007 |
| Replies: 6 Views: 1,886 I'm not sure what you mean by this, but when making comparisons if you have more than one value you do it successively, meaning check value A then if true value B and so on.
Loop example:
... |
Forum: Assembly Oct 13th, 2007 |
| Replies: 6 Views: 1,886 After you've entered Month & Day, your program has no way of knowing which sign those entries are applicable too.
One way would be to calculate the number of days that have elapsed since Jan 1 and... |
Forum: Assembly Oct 10th, 2007 |
| Replies: 3 Views: 3,774 I see what you mean in respect to the first example and the only conclusion I can come too is although new processors are backward compatible, but there are problems when attempting to use the high... |
Forum: Assembly Oct 5th, 2007 |
| Replies: 2 Views: 1,234 http://www.husseinsspace.com/teaching/udw/1996/asmnotes/chapsev.htm |
Forum: Assembly Oct 4th, 2007 |
| Replies: 1 Views: 697 Let's see your code for doing indvidual lights and explain exactly what you mean by "running lights" |
Forum: C++ Sep 22nd, 2007 |
| Replies: 8 Views: 5,107 Start with int main () {
int a = 2, c = 1, b, d;
while (c < 100) {
b = 2;
a++;
/* Implement your next loop here changing the logic a bit */
} |
Forum: Assembly Sep 21st, 2007 |
| Replies: 12 Views: 4,438 Post a new thread, and I assume you've read all the posts in this one so be a little more informative of what you have in mind. Make your subject line representative of your intentions and we'll... |
Forum: C++ Sep 17th, 2007 |
| Replies: 4 Views: 1,039 int TxtSize = GetWindowTextLenth (hwndEditBox) + 1;
char *Entry = new char [TxtSize];
GetWindowText (hwndEditBox, Entry, TxtSize);
MessageBox (NULL, Entry, "", MB_OK | MB_ICONINFORMATION)
delete... |
Forum: C Sep 17th, 2007 |
| Replies: 1 Views: 647 Well it sound like you've got the logic already figured out, and dependant upon operating system I would recommend researching high precision timers in either *nix or windows. |
Forum: Assembly Sep 17th, 2007 |
| Replies: 12 Views: 4,438 Sure, would be glad to help if you need it. |
Forum: C++ Sep 16th, 2007 |
| Replies: 2 Views: 637 When creating an "EDIT" window there are several flags associated all begining with ES_. The one you want to use is ES_AUTOHSCROLL in dwStyle. |
Forum: C++ Sep 16th, 2007 |
| Replies: 8 Views: 1,335 Without seeing your code or header file it's impossible to know where the problem is, but my implementation would have each node with two pointers. One to students name and other to array of grades.... |
Forum: C++ Sep 15th, 2007 |
| Replies: 2 Views: 872 Assuming your using CreateWindowEx, change the value of y (vertical position of window) before the next window is created. |
Forum: C++ Sep 15th, 2007 |
| Replies: 2 Views: 704 It almost looks like you threw something out in the wind in the hopes that someone will fix it up for you. Clean up your code with indentation to begin with so it's a little more legible. Then run... |
Forum: Assembly Sep 14th, 2007 |
| Replies: 12 Views: 4,438 Post notes on all the things you want the program to do and what the user interface is going to look like.
#1: Maximum length of input
#2: Number of players
#3: Scroing method
#4: Ability to... |
Forum: Assembly Sep 13th, 2007 |
| Replies: 12 Views: 4,438 I've already given you one idea, apart from that there's not much I can do until you decide on something |