- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 10
- Posts with Upvotes
- 9
- Upvoting Members
- 9
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 2
182 Posted Topics
Re: [QUOTE]And yes I would like to learn machine code, but I am so hesitant, I just don't know if that's gonna pay off and I don't want to spend about 5 years of my life on something that doesn't pay off, while for that time I could do something more … | |
Re: void main() is fine. There isn't an OS. The code runs in an infinite loop until the power is removed. | |
Re: Go to c:\tc and make sure there is a folder named "BGI" and that the drivers are in it. | |
Re: With Final Scratch 2, you hook your decks to your laptop and mix your mp3s on vinyl. There's two special records supplied and you select the tracks using software. | |
Re: USB communication is easily 20 times more complex than RS232. No one I know bothers with it. There's a module for the Python language called pyUSB which is said to simplify things. There's also Easy HID. [url]http://www.protongeeks.com/index.php?option=com_content&task=view&id=136&Itemid=30[/url] | |
Re: There are valid reasons why someone would want to write a program in machine code, though I can't myself see why anyone would need to deal in binary. Anyhow, you can hand assemble code by swapping mneumonics with their opcodes, which are mainly giving in hex. | |
Re: Do you know about C File I/O? This is the .bmp format. [url]http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html[/url] Open a bitmap in a hex editor as you follow it along. Then extract the data you want. That's the easy part done. | |
Re: [QUOTE=mail2shrid;663145]I'm using DOS and the compiler is turboc..[/QUOTE] This program only works in Turbo C. [code=C] #include <stdio.h> #include <conio.h> int main(void) { unsigned char key, key2; while( (key=getch()) != '\r' ) { if (key == 0) { key2 = getch(); switch(key2) { case 72: printf("up "); break; case 75: … | |
Hi, I'm a beginner and just started Turbo C I wrote this program in the editor main() { float years, days; printf ("Please type your age in years:"); scanf ( "%f", &years); days = years * 365; printf ("You are%.1f days old.\n", days); } I then run the program and … | |
Re: [QUOTE=lonely_girl;740511]well she didnt specify it, we are to make any kind of animation using C eg: mickey mouse or any other cartoon character....if u can plz make me 1 so that i understand it and try makin another myself...[/QUOTE] [url]http://lazyfoo.net/SDL_tutorials/lesson20/index.php[/url] | |
Re: [url]http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles4.html[/url] | |
Re: Have you watched MTV cribs and seen the houses the music artists are living in. In fact, they make most of their money performing at concerts because they're been robbed by the record companies. It's a complexed issue though. Some forms of piracy are obviously more damaging than others. Not … | |
Re: The default position for a person's fingers are ASDF with the left hand and JKL; with the right hand. All other keys are reached from there, so you can start by making the user learn off those keys first. Display variations of ASDF first, then variations of JKL; Then mix … | |
Re: You're calling your functions wrongly. They should look more like this. [code]rad = radius(x1, y1, x2, y2);[/code] rad, is the value you'd print out as well as pass to your other functions like [code]area = areaOfCir( rad );[/code] Don't call area() inside in your radius function. Call it from main … | |
Re: No one on a forum can teach you how to make a game. You need to learn how to program first before you start thinking about making games. | |
Re: You [B]MUST[/B] have only one active antivirus installed (anti-virus now, you can have as many anti-spyware programs as you like) so choose one and uninstall the rest. More than one active AV can cause serious conflicts and cause system crashes, as well as false positives. I recommend keeping Anitvir. Your … | |
Re: I'd be more inclined to recommend a simulator like Isis from Labcenter myself, since it supports numerous microcontrollers and components which you can wire whatever way you choose. | |
Re: Your mobile may have a certain AT command set which would define all the information you can retrieve, via a serial connection, which might be RS-232 although Nokia usually use the FBUS protocol. [url]http://www.embedtronics.com/nokia/fbus.html[/url]. A better idea might be to use a GSM module. Haven't looked into Bluetooth. An easy … | |
I have this C program with multiple files and I want to introduce a new file called enemy.c. and I'm wondering if I'm going about this right. game.h [code] #ifndef GAME_ #define GAME_ extern void game (void); extern void enemyFunc (void); extern int enemyPosX; #endif [/code] main.c [code]int main (void) … | |
Re: What compiler and graphics library are you talking about? | |
Re: [URL]http://www.free-av.com/[/URL] Avira's antivir is the best free anitvirus, proven. | |
Re: You need a receiver IC and modulate the IR signal at what the receiver is set to detect, usually between 32 and 40 kHz for remote control. You'd then need a way of decoding two data signals. [url]http://www.winpicprog.co.uk/pic_tutorial5.htm[/url] | |
Re: The baud rate in bits/sec is the timer overflow frequency divided by 32. It has to be divided by some number because the timer works faster than the standard serial port baud rates. It;s divided by 16 if SMOD is set which doubles the baud rate. | |
Re: You've explained what you need to do, but you haven't asked a question. An LDR in a voltage divider would replace the switch, if your code works for a switch, it will work with a LDR. But it's not going to be very practical, having to line the laser with … | |
Re: And your question? | |
Re: If you were interested in those topics, you'd come up with a project yourself. Actually you'd think up of a number of projects. You'd be spoiled for choice of projects if you were interested. You wouldn't need anyone's ideas to get started. | |
Re: An IR LED and IR phototransistor will do for the car detection. [url]http://home.cogeco.ca/~rpaisley4/ATDetLong.GIF[/url] You can look on [url]http://www.ftdichip.com/[/url] for creating a parallel or serial to USB interface. | |
Re: There isn't anything special about programmers that work for TV broadcasting companies. Yes, they write the programs in the same languages. If you turn on the news and see a bar chart, it may have been written in Python for example. So without knowing your question, I would say, if … | |
Re: An old book but this is the electronics bible. [url]http://www.amazon.com/Art-Electronics-Paul-Horowitz/dp/0521370957[/url] Less advanced, but useful and easy to learn are all of Floyd's books. [url]http://www.prenhall.com/floyd/html/right.html[/url] | |
Re: Depends how printf is implemented in your compiler. In Keil, TI must be set before printf is called. The is because of how putchar is implemented (which is called by printf.) [CODE] while (!TI); TI = 0; return (SBUF = c); [/CODE] | |
Re: Attach a female DB9 connector onto your male to female RS-232 cable. Get the solder type, not PCB type. Then solder wires to it and tie pin 2 and pin 3 together. | |
Re: I'm sure WolfPack will be glad to finally hear from you. | |
Re: [QUOTE]Is there any way to read the content of the text file or just read the file name of the text file? thanks in advance [/QUOTE] If you can send data, why would you think you couldn't send the name or contents of a text file? If there's more text … | |
Re: An EXE file is a Windows file. Your assembler should output a binary file, which would probably need to be converted to an Intel Hex file, the standard for burning to EPROMs, depending on where the Z80 is executing the code from. | |
Re: XP won't allow access to the port. Install GiveIO, and it will. [url]http://sourceforge.net/project/showfiles.php?group_id=46487&package_id=77441&release_id=150767[/url] | |
Re: Just use a GSM modem for receiving text messages. You can get one with a serial port. | |
Re: Learning assembly helps you understand how the hardware works. On certain platforms, learning how the hardware works is necessary to program the hardware, in any language. Learning the hardware isn't necessary to be a good C programmer- though, if you've ever learned about the indirect addressing mode of certain processors, … | |
Re: [QUOTE=serkansendur;754577]this is not a joke, i create executables with GNU gcc compiler, when i open that executable with notepad i dont see zeros and ones but i do see some absurd set of characters. why do i see them?[/QUOTE] You don't see them because "1" and "0" are just the … | |
Re: Python is nice and easy to learn, but it's powerful. This is a beginner's tutorial and teaches you how to make Pong by lesson 8, which you probably won't find possible in another language. [url]http://openbookproject.net/thinkCSpy/index.xhtml[/url] | |
Re: Here's a fingerprint module you could buy. It doesn't give the price and I can't imagine it being cheap. [url]http://www.badgestuff.com/proddetail.asp?prod=MV1210&cat=105[/url] Read the datasheet if you want to know how to use it in applications. | |
Re: This looks like C not C++, so look into creating structs. | |
Re: Writing FNAME in the program will be the same as writing 9EH. | |
Re: [QUOTE=Nemoticchigga;743479]Is keil software for programming microcontrollers a free tool, or does it need to be purchased with a license? Thanks.[/QUOTE] You can download the uVision IDE with an evaluation compiler that's limited to 2K of object code. If it's the c51 compiler you want, that should be good for a … | |
Re: No one died when Clinton lied. But they did when Yugoslavia got bombed. [url]http://www.antiwar.com/pilger/?articleid=11421[/url] | |
Re: If you need to get ideas from other people for your own projects you musn't be very interested. | |
Re: Have a microcontroller generate the PWM. You can communicate with the microcontroller using the PC. | |
Re: [code] int i; int *p; p = &i; // p holds the address of i *p = 10;[/code] The last assignment says take the value in p, go to that address and put 10 there. Therefore, i now holds 10. To prove that you could print either of these because … | |
Re: In your 2nd for loop i starts at 1. In the first i starts at 0. You're incrementing counters[a[i]] but you're displaying counters[i]. | |
Re: The link in the sig tries to make you download spyware. |
The End.