Pages: [1]
Author Topic: keil issue/error  (Read 1960 times)
tao13
Hero Member
*****

Karma: +1269/-1007
Offline Offline

Posts: 506


« on: January 20, 2025, 12:41:19 AM »

Somebody knows why KEIL compile this calls   82h, sub_825CC0   like this DA 82 00 00 and not DA 82 C0 5C?
Is it a common bug for C166?
Must modify some "options" in project?
Logged
fknbrkn
Hero Member
*****

Karma: +219/-24
Offline Offline

Posts: 1538


mk4 1.8T AUM


« Reply #1 on: January 20, 2025, 03:32:36 AM »

bc sub_825CC0 is the variable and who knows how you define it

Code:
myRoutine ECU 05CC0h

...

calls 82h, myRoutine

or

Code:
calls 82h, 05CC0h

Logged
tao13
Hero Member
*****

Karma: +1269/-1007
Offline Offline

Posts: 506


« Reply #2 on: January 20, 2025, 08:07:29 AM »

Thanks fknbrkn.
I didn't define like a variable , i used it directly in code like
sub_825CC0:

Now i tried your advice to define it as variable and keil generate correct hex code with both of these:
sub_825CC0 EQU 05CC0h
sub_825CC0 EQU 825CC0h
It works ok too with
calls 82h, 05CC0h

Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.024 seconds with 18 queries. (Pretty URLs adds 0.001s, 0q)