Alrite. Sounds like a good start. Thanks for the lead guys.
Type: Posts; User: 7force
Alrite. Sounds like a good start. Thanks for the lead guys.
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...
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...
One way found was to 'fool' the compiler
Header File:-
#ifndef ENUM_TYPE
typedef enum
{
...
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:-
...
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...
Here is the scenario;
A header uses an enum as follow:-
typedef enum {
NONE,
FEW,
SOME,
MORE,
MOST,
Ah okie..i confused a pointer method as pass by reference. Thanks for higlighting that out.
And thanks for the inputs.
Given the structure below:-
typedef struct {
int a;
word b;
} process;
By reference:-
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...
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...
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...
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...
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...