Search:

Type: Posts; User: 7force

Search: Search took 0.01 seconds.

  1. Thread: __align usage

    by 7force
    Replies
    5
    Views
    3,897

    Alrite. Sounds like a good start. Thanks for the...

    Alrite. Sounds like a good start. Thanks for the lead guys.
  2. Thread: __align usage

    by 7force
    Replies
    5
    Views
    3,897

    Sorry for the late reply..been away from the...

    Sorry for the late reply..been away from the boards.
    The compiler I'm using is ARM compiler.

    Is there a good site from whcih I can find out how the a compiler treat the __align command?
    I've did...
  3. Thread: __align usage

    by 7force
    Replies
    5
    Views
    3,897

    __align usage

    I want to create a buffer variable that starts from an even address in memory. Does the __align achieve this?

    What I found states that:-
    "Use the __align specifier to explicitly specify alignment...
  4. Replies
    1
    Views
    2,697

    One way found was to 'fool' the compiler ...

    One way found was to 'fool' the compiler

    Header File:-



    #ifndef ENUM_TYPE
    typedef enum
    {
    ...
  5. Replies
    3
    Views
    1,540

    Like I said before, Im suspecting the constant...

    Like I said before, Im suspecting the constant refreshing may be the one causing the problem you face, esp when you key in consecutive invalid entry. to overcome your later post, try these:-


    ...
  6. Replies
    3
    Views
    1,540

    Not sure exactly what could be wrong..but I did...

    Not sure exactly what could be wrong..but I did use graphics along time back.

    One way to improve the code, and hoepfully resolve your issue is putting the display main menu outside the loop and...
  7. Replies
    1
    Views
    2,697

    Conflicting enum issue

    Here is the scenario;
    A header uses an enum as follow:-


    typedef enum {
    NONE,
    FEW,
    SOME,
    MORE,
    MOST,
  8. Replies
    8
    Views
    19,516

    Ah okie..i confused a pointer method as pass by...

    Ah okie..i confused a pointer method as pass by reference. Thanks for higlighting that out.

    And thanks for the inputs.
  9. Replies
    8
    Views
    19,516

    Passing structure by reference or pointer?

    Given the structure below:-


    typedef struct {
    int a;
    word b;
    } process;


    By reference:-
  10. Replies
    6
    Views
    1,058

    Okie, I realise there's one setback for the above...

    Okie, I realise there's one setback for the above idea:-



    FeatureData* fd = multi_read(1);
    if(fd->code == BOOLEAN)
    printf("%d", fd->dat_boolean);


    Since the multi_read() returns the...
  11. Replies
    7
    Views
    3,338

    I suppose with item 5, it really depends on what...

    I suppose with item 5, it really depends on what the program is intended for. If you are talking abt a time-critical software, then yes... otherwise, it is not too impt really.

    Normally what I do...
  12. Replies
    6
    Views
    1,058

    I'm now looking into Dave's idea.. and will try...

    I'm now looking into Dave's idea.. and will try to get a simple program running based on it. Too bad the link didn't have an example, but at least I got something to start with.

    Will see how it...
  13. Replies
    6
    Views
    1,058

    by the way, I put a void in the function type but...

    by the way, I put a void in the function type but I know that needs to be something else... Also, if possible, I'm trying to avoid casting so that means whoever call the function can simply use it...
  14. Replies
    6
    Views
    1,058

    Multiple read types

    I'm trying to develop a function that could return different data type e.g. byte, word, dword etc.

    How do i get started on doing this?

    A simple example would be something like this:-


    void...
Results 1 to 14 of 14