funny thing

Beta Testing discussion on mikroPascal PRO for 8051.
Post Reply
Author
Message
piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

funny thing

#1 Post by piort » 18 Jul 2008 16:06

since i pass trough all exemple, i found a funny thing in button exemple

Code: Select all

 
while TRUE do
  begin
   jhjkhkjhk
   mjkjhkj  kjbbmmn nb mbm
  
    if (Button(1, 0) <> 0) then
still have
1 304 Syntax error: Expected "unit" but "#" found AT89S8252.mpas
if i change mcu ... so i have chk the def file...the only working one start by unit keyword.... all the no working one start by

Code: Select all

#ifndef __AT89S8252_H__
#define __AT89S8252_H__
so i change the file to have the same declaration then the 8253 and that compile... if i correct some mistyping mistake...in the 8252 def file...

line 72 = ':' for ';'
line 228 = one too much GP0
line 229 = one too much GP1
line 231 forgot ':'
line 231 to the end... miss all ':' for type declaration of conts.

User avatar
marko.ziv
mikroElektronika team
Posts: 530
Joined: 06 Dec 2007 10:11
Contact:

#2 Post by marko.ziv » 21 Jul 2008 13:39

Hi,

the compiler fist "loads" the definition file for the chosen MCU and then proceeds
with the code you have made. Therefore if the def file is incorrect it will always
stop at this file (until you correct it, that is)

piort keep up with a good work,
anybody else would like to pitch in or what? :)

Best Regards

Post Reply

Return to “mikroPascal PRO for 8051 Beta Testing”