Search:

Type: Posts; User: Genxi

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    856

    Thank-you for your time and effort, I really...

    Thank-you for your time and effort, I really appreciate it! :D
  2. Replies
    6
    Views
    856

    Thanks for the quick response. Yes, I want these...

    Thanks for the quick response. Yes, I want these structs to be located in the 64 bytes, and I want to avoid using arrays. Would it be possible to cast my struct pointer to a void pointer before doing...
  3. Replies
    6
    Views
    856

    Ah, I did not know that! Since my intention is to...

    Ah, I did not know that! Since my intention is to make each memory block to be 64 bytes and I know my structure is smaller than 64 bytes, how would I go about moving the pointer by 64 bytes instead?...
  4. Replies
    6
    Views
    856

    Pointer Arithmetic Question

    Hi everyone, I am trying to make a function that allows me to allocate memory to a "mem" variable and setting each of its chunk's status to FREE. FREE is defined as 0. Below is my code of the...
  5. Replies
    3
    Views
    41,073

    Ah, that makes sense. Is it possible to use "cmp...

    Ah, that makes sense. Is it possible to use "cmp ch,64" instead of "test ch, 64" to test equality since you know that if ch and 64 are equal, their difference is simply 0.

    In another words, are...
  6. Replies
    3
    Views
    41,073

    When to use TEST vs CMP in Assembly Code?

    Hi there,

    I'm sorry if this question doesn't belong here, this may be deleted if that is the case.

    Anyways, I am curious when TEST and CMP are used in assembly codes? According to examples in...
  7. Replies
    5
    Views
    1,571

    Thank you for your advices, Tim! I got my code to...

    Thank you for your advices, Tim! I got my code to work after allocating some space and linking by -lm. -high five-!!!
  8. Replies
    5
    Views
    1,571

    Hey Tim, I've tried compiling with the...

    Hey Tim,

    I've tried compiling with the following:

    gcc -Wall -o IntToString IntToString.c -lm

    but, after I ran the code, it gave me the segmentation fault.

    Any more ideas?
  9. Replies
    5
    Views
    1,571

    Cannot find my error

    Hi there, I am trying to create a function that takes in any integer and convert it into a string. For example 1000 ---> "1000".

    I have gone through an hour trying to figure out my error, but I...
  10. Wow, thank you Adak! I'm so glad my friend...

    Wow, thank you Adak! I'm so glad my friend advised to visit this forum -- so far, it has been a much better experience than talking to my professor/TA during SUITABLE office hours. Hopefully I can...
  11. Thank-you for all the answers, I really...

    Thank-you for all the answers, I really appreciated your time and effort! I got some more questions as a result of your guys' description. So I often see a pointer made (we'll go with our original...
  12. What is the difference between datatype* and regular datatype?

    So, I am currently learning the C language in class and I am still somewhat confused about pointers.

    My question are the following:

    What is the difference between initiating char with with a...
Results 1 to 12 of 12