- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I spend copious amounts of time programming an operating system in assembly and C. When I'm not geeking out I read, listen to music, work, climb mountains and work towards running my own company.
- Interests
- Photography, mountain climbing, hiking
- PC Specs
- i5 @ 3.5GHz | 4GB RAM @ 2005MHz | 5850 @ 1200/850 1.7TB HDD space | Soundcardless :( Windows 7 | Ubuntu…
Returning back to asm and coding in general, got an issue with what's probably an obvious mistake but I'm stumped non-the-less. [CODE='c']kputs("Testing");[/CODE] [CODE]; ; Print a single character to screen ; kputchar: ; assumes the register ax will contain the character to print mov edx, [SCREEN] ; edx = screen … | |
Re:
Hmm I was lookin through a recursion program in this book i have here and the only thing I'm having trouble with is the modulus operator. I know that it returns the remainder of 2 numbers. But, suppose I have this: x % y If x > y then the … | |
Is there any documentation available on creating a dynamic voltage frequency scaling tool in C? I've been unable to find anything on Google and the only applications I seem to be able to find using DVFS are closed source. My preference would be for a Windows based system as that … | |
Just wondering how I can get the time the program was compiled into my code dynamically, I'm guessing it'll be through my makefile somehow but my Google-fu has failed today. Any help would be great! (GCC + make *only*) | |
Re:
Hi! CAN YOU PLEASE ME CODES OF SCIENTIFC CALCULATOR IN ASM TNX.. nEED IT BADLY.. | |
Re:
Ok, Here is the problem in the book; You are developing a database of measured meteorological data for use in weather and climate research. Define a structure type measured_data_t (which I have done) with components site_id_num (a four digit integer), wind_speed, day_of_month, and temperature. Each site measures its data daily, … | |
Re:
what my code does is it waits for the user to type in "led" and performs the blink function. what i am trying to do is introduce the letter 'p' as a command to stop the blinking. what happens is that blink is only executed once. [CODE]if (!(strcmp(userinput, led))){ //condition … | |
Re:
hello can you help me how can i print asterisk to form triangle like this [CODE] * *** ***** ******* [/CODE] here is my code [CODE] int main() { for(i=0;i<10;i++) for(j=0;j<i;j++) { printf("*"); } printf("\n"); getch() return 0; } [/CODE] please help me hoping for your positive responds...thank you in … | |
Re:
Hello, I have a problem with compiling my code... Platform: [b]Ubuntu Linux 10.04[/b] Compiler: [b]gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3[/b] IDE: [b]Netbeans 6.9.1[/b] My C program is required to exclusively deal with Unicode. I can use these functions just fine: [b][COLOR="Green"]wcscpy(), wcslen(), mbstowcs(), wcstombs(), snprintf()[/COLOR][/b] The problem seems to only be when … | |
Re:
Hi! I have been learning c language on linux for two months.Today I have changed to Windows and don't know how to ,where to write programs and compile them and execution.Please exlain me. (Windows-7,acer) Thanx. | |
Re:
What are all the possible stamements that can be used in C, instead of printf and scanf statements? | |
Re:
I'm writing a function that stores an integer as separate bytes in an array, see [URL="http://www.daniweb.com/forums/thread25312.html"]here[/URL]. I've got to the part when I detect a button push, and increment the digit over the cursor. If this digit gets to 9, the next push should reset it back to 0. The … | |
Re:
how kernel interact with hardware.???they says kernelsr mainly written in assembly language n then it is converted to machine language. bt even i cant feel how machine language accomplish our work wot we wish for can ane one explain concept fully or some refrences | |
Re:
which one of the following will execute faster? int p=2; p++; OR p=p+1;OR p+=1; and y?? is it p++ bcoz it is a single instruction??...nd the rest r multiple... | |
Re:
Hey guys, i needed some help with this encryption-decryption program that i am trying to write, as you will notice, i am not very skilled or experienced but i want to grow naturally, so it would be great if you guys could point out the mistakes rather than suggest smth … | |
Re:
I have seen similar posts but could not find the exact answer that i can understand. I have to store and print the value which will 2 power 5 digit number. ex: 2 ^ 55555 2 ^ 99999 etc ... Please help me [B]coding:[/B] C [B]Compiler:[/B] DevC++ | |
I'm in the process of coding my own OS and right now I'm working on a stdio lib but was just wondering about fputs and how it should write to the screen, which would be a better approach? Making stdout a file descriptor and having puts call fputs with the … | |
Re:
Hi, I need some help from u again..... if we type: Enter Input : eee ddd cccc the result should be like this : sorting : ddd eee cccc but actual result is like this : sorting : eee eee cccc I don't know why... Can u help me ?? … | |
Re:
Hi, I've been developing some code that parses output reports and re-reports on information that is of interest. I utilize strtok quite heavily in this program and I have run into the situation where my final strtok call may or may not return some info. Depending on if there is … | |
Re:
Hi Im rather new to this but I want to ask how to re-define the array argv[] after the program main(int argc, char *argv[]) have been called? example main(int argc, char *argv[]) //assume the program is called by: program //this would give argc=1 and argv[0]= program //but know I want … | |
Re:
hi all,I want to learn assembly language.I know nothing about it.can anyone suggest me any book for begginers? thanx a lot | |
Re:
I am planning to create a simple bulls and cows( also know as mastermind board game) in C.The computer is supposed to make 4 digit code in which the allowed digits are 1,2,3,4,5,and 6 ! 0,7,8,9 are to omitted !! How do I make the computer create such a 4 … | |
Re:
Here is what I have to do. 1)Read integers from a file 2)If it cannot be opened, display an error message and exit the program. 3) Otherwise, read an integer from the file (there is guaranteed to be at least 1). 4) If that count is 0, display an error … | |
Re:
How could i know the total elements an array can store??? whether it depends on the datatype or os(32bit or 64bit)??? | |
Re:
Hello, I've learnt a bit more C since I posted [url=http://www.daniweb.com/forums/thread302037.html]the last code review thread[/url], so I've decided to rewrite the Mystery Word application, this time using strings, pointers and pointer arithmetic, and dividing the program into files (I've only got three of those). I've also created a very basic … | |
I've never used inline assembly shockingly, and I'm just wondering how/if I can do something. Bit of background; I'm coding a basic OS kernel, I have various subroutines written in assembly and amongst others I have a puts subroutine that is an attempt at mimicking puts in C. In order … | |
Re:
How do you write Hello world in dynamic C is this correct? main() { printf("Hello World"); } | |
Trying to write a puts like subroutine in assembly but failing miserably. I'm using BIOS calls only (I.E. I'm not running another operating system). The code is using Intel syntax. What I have so far is: [CODE=asm]; [BITS 32] [GLOBAL hello_world_asm] ; ; a very basic puts function without the … | |
Finished writing this a little while ago but unfortunately the generated MD5 doesn't match other application's hashes. I have basically used [URL="http://en.wikipedia.org/wiki/Md5"]Wikipedia[/URL] for reference. I have a feeling my error is introduced in the padding stage but I can't be certain, hoping a fresh set of eyes could point out … | |
Hi there, I'm in the process of moving some code into Visual C++ 2008, the code works fine when compiled with Mingw however crashes when compiled with VC++: [CODE=c++] s_cell **cell; *cell = (s_cell *) malloc(sizeof(s_cell) * MAP_X); for(int loop = 0; loop < MAP_X; loop++) { cell[loop] = (s_cell … |