Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~12.3K People Reached
About Me

I'm a 17-year old programmer. I first started with programming more than 2 years ago in C#. Later, I changed to Linux and C and I'm today writing software that has to do with lower-level actions (related to assembly or hardware)

Interests
Computers, Programming, Guitar, Heavy Metal
PC Specs
OS: GNU/Linux with GNOME
Favorite Tags
c x 13
c++ x 7
c# x 1
php x 1

27 Posted Topics

Member Avatar for GuitarComet

Hi! I'm working on a hobby OS. Almost every time I try to link my files I get a 'undefined reference to' error. As I've been trying to compile with different compilers, the errors generated by the linker changes. I have only been using different ports of the GNU compilers. …

Member Avatar for Ömer
0
322
Member Avatar for anders10

[QUOTE=anders10;1593592]Thank you for answering, I solved the problem by coding globl puttext, outimage in the intellab file. But now I get another problem. When I try to run the program I get an error message: Segmentatoin fault What is this? //Anders[/QUOTE] The reason your program is SegFaulting is because your …

Member Avatar for angah
0
375
Member Avatar for ThatGuy2244

Programs in DOS start from address 0x100, right? You'll need this at the top of your code: [CODE]ORG 0x100[/CODE]

Member Avatar for ThatGuy2244
0
877
Member Avatar for lochnessmonster
Member Avatar for onus

[QUOTE=gerard4143;1396362]because your added extern extern int stack_counter; extern snode sroot; This informs the linker that both of these are defined elsewhere.[/QUOTE] Actually no. It's because the variables are initialized outside any function and without any data type specifier (which is why the compiler says "data definition has no type").

Member Avatar for GuitarComet
0
185
Member Avatar for Josue198s

The JWasm assembler is MASM-compatible, available for Linux and free. Available from: [URL="http://www.japheth.de/JWasm.html"]http://www.japheth.de/JWasm.html[/URL]

Member Avatar for GuitarComet
0
132
Member Avatar for Lightslei

The first error could be because of two things. If you're using MASM, it probably has to do with operand sizes (AX is a WORD while Values is a BYTE). In that case, use [U]one[/U] of the following lines to replace you're old lines: [CODE]Values dw ? ; Declare 'Values' …

Member Avatar for low_coder
0
85
Member Avatar for SpyrosMet

In the code that you show you're comparing the addresses of two pointers, and not the actual contents of them. It's strange that 'strcmp' didn't work for you, since it's supposed to tell you when two strings are equal. One of the mistakes I did when I was new to …

Member Avatar for Agnusmaximus
0
1K
Member Avatar for gahhon

If you mean the number of bytes of an int, then the sizeof operator is what you want. [CODE]int size_of_int = sizeof(int);[/CODE]

Member Avatar for gahhon
0
6K
Member Avatar for xaop

The extern keyword tells the compiler that the symbol (in this case i) is located in an external module. In simple words, in another source file. In another source file, declare the variable i as you normally would declare a global variable.

Member Avatar for xaop
0
90
Member Avatar for rje7

The star says that you will be providing the width as an argument. In this case, the "%*d" evaluates into 5 characters (4 spaces + 1 digit). In case you want to know more about printf format specifier, I've found [URL="http://www.cplusplus.com/reference/clibrary/cstdio/printf/"]this[/URL] to be very good.

Member Avatar for rje7
0
239
Member Avatar for aabi

There's a guide in the NASM Manual: [URL="http://www.nasm.us/doc/nasmdoc1.html#section-1.3.1"]http://www.nasm.us/doc/nasmdoc1.html#section-1.3.1[/URL]

Member Avatar for GuitarComet
0
79
Member Avatar for Shikhin

After some quick searching I found [URL="http://forum.osdev.org/viewtopic.php?f=1&t=20561"]this[/URL] on the OSDev Forums. If you scroll down on that page, you'll find a bootloader that (according to the author) can boot from a CD. I haven't tested it, but it seems it should work. It's written for the GNU Assembler, and boots …

Member Avatar for Shikhin
0
246
Member Avatar for avataralien

The "system" function in "cstdlib" should work: [CODE]#include <cstdlib> int main() { system("wget -q -E -O index.html http://www.website.com | programfilename"); return 0; } [/CODE]

Member Avatar for avataralien
0
188
Member Avatar for buster2209

The "Contains" method might be what you're looking for: [CODE]string str = "1234567890"; if (str.Contains("456")) { MessageBox.Show("True!"); } else { MessageBox.Show("False!"); }[/CODE]

Member Avatar for buster2209
0
110
Member Avatar for koti86

Wine is not capable of running every single Windows application out there. Have a look in Wine's application database and see if you can find the application you want to run. If you have to do something extra to make it run, that will most likely be listed in the …

Member Avatar for rx4hvn
0
184
Member Avatar for sakthi@daniweb

I think it's because of the C calling convention. Arguments are passed in the order right-to-left (last ++a to string)

Member Avatar for WaltP
0
71
Member Avatar for atticusr5
Member Avatar for atticusr5
0
112
Member Avatar for DenisOxon

It might run in DOSBox ([URL="http://www.dosbox.com/"]http://www.dosbox.com/[/URL]). DOSBox is an MS-DOS Emulator built for running old DOS-games, but according to the site it should also be able to run most DOS applications.

Member Avatar for DenisOxon
0
270
Member Avatar for P-Geist

The Google Chromium OS is available from [URL="http://www.chromium.org/chromium-os"]http://www.chromium.org/chromium-os[/URL]

Member Avatar for GuitarComet
0
83
Member Avatar for ashwinikuma

What exactly is "lid2pstr" returning? Without knowing, I would guess it returns something like a short or char. On 32-bit machines, pointers are (as far as I know) 4 bytes. Short is usually 2 bytes on x86 machines, and char is usually 1 byte.

Member Avatar for Ancient Dragon
-1
78
Member Avatar for aikiart7
Member Avatar for aikiart7
0
222
Member Avatar for laserlars

Yes, strcat is standard. Although, make sure you have enough space in string1 first. I don't know anything about Python, however I would believe that it's some built in feature. In C++, this is achieved through operator overloading. C does not have these features, and you therefore have to work …

Member Avatar for laserlars
0
86
Member Avatar for clarkeboy

[QUOTE=clarkeboy;1307765]How Can I use Clear screen and jump to next line?? like for example. press enter y for yes and n for no to proceed to next line and next screen.[/QUOTE] There's a snippet here at DaniWeb: [URL="http://www.daniweb.com/code/snippet217000.html"]http://www.daniweb.com/code/snippet217000.html[/URL]

Member Avatar for GuitarComet
0
190
Member Avatar for david.1982

You could try using Applications.DoEvents();. That will force the form and all of its controls to be redrawn.

Member Avatar for sid78669
0
120
Member Avatar for umair125

Check this: [URL="http://www.codeproject.com/KB/database/sql_in_csharp.aspx"]http://www.codeproject.com/KB/database/sql_in_csharp.aspx[/URL]

Member Avatar for avirag
-1
204
Member Avatar for modesto007

I don't really know any PHP, but I guess the problem really is on line 6. It says [I]$message=2"$phoneoff";[/I] while it should say [I]$message2="$phoneoff";[/I]. Am I right?

Member Avatar for Josh Connerty
0
175

The End.