Problem comand HI mickroC V8.0

General discussion on mikroC.
Post Reply
Author
Message
Fabiano
Posts: 29
Joined: 28 Apr 2010 21:07

Problem comand HI mickroC V8.0

#1 Post by Fabiano » 21 Jan 2011 17:28

I'm using a pic 18F452 and can not use the "hi"

when compiling the following error appears:

undeclared identifier [HI] in expression.

what is the correct way to use this command?

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Problem comand HI mickroC V8.0

#2 Post by tihomir.losic » 26 Jan 2011 13:38

Hello,

Lo, Hi, Higher and Highest functions in version 8.0 are not implemented. If you want to use these functions you must include built_in.h into your project.
Please, look at the example:

Code: Select all

#include <built_in.h>
unsigned int dtest, tmp;

void main() {

    dtest = 0x1AC30F4;
    tmp = Hi(dtest);
}
Best regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroC General”