BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:34 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Studio 2.0 reserved word?
PostPosted: Thu Oct 14, 2010 5:28 pm 
Offline
Master

Joined: Tue Jun 22, 2010 1:15 pm
Posts: 203
I'm having a problem with the LCD_D5 constant in Studio 2.0 for the ARC-32.

Code:
;LCD (parallel) defines
LCD_RS   con 4
LCD_E   con 5
LCD_D7   con 6
LCD_D6   con 7
LCD_D5   con 8
LCD_D4   con 9
;LCD_RW   con 10

lcdinit 4\5\6\7\8\9    ; ok
lcdinit LCD_RS\LCD_E\LCD_D7\LCD_D6\LCD_5\LCD_D4

lcdwrite LCD_RS\LCD_E\LCD_D7\LCD_D6\LCD_5\LCD_D4,[CLEARLCD,HOMELCD,SCR,TWOLINE,"MicroMouse"]


it doesn't like LCD_5 ! makes it black, rather then light blue for a constant.

Any ideas? maybe it's defined by compiler (I checked in my code)??

EDIT:

Although I was able to do this:

Code:
; LCD (parallel) defines
LCD_D4   con 4
LCD_D5   con LCD_D4 +1
LCD_D6   con LCD_D5 +1
LCD_D7   con LCD_D6 +1
LCD_E    con LCD_D7 +1
LCD_RS   con LCD_E  +1
LCD_RW   con LCD_RS +1


Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Sat Oct 16, 2010 12:37 pm 
Offline
Master

Joined: Sun Aug 17, 2008 5:26 pm
Posts: 798
Location: CA bay Area
You dropped the "D". ;) You created "LCD-D5" for the constant but used "LCD_5" in the lines afterward.

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Mon Oct 18, 2010 12:31 pm 
Offline
Master

Joined: Tue Jun 22, 2010 1:15 pm
Posts: 203
OK, so I feel really stupid now! I don't know how many times I looked at and re-typed the define and use of that constant.

Thanks!

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Tue Oct 19, 2010 9:11 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
I think most of us have been there and done that, so don't feel too bad. :)

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Tue Oct 19, 2010 2:13 pm 
Offline
Master

Joined: Sun Aug 17, 2008 5:26 pm
Posts: 798
Location: CA bay Area
Yeah, why should I be the only one? ;)

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Tue Oct 19, 2010 5:45 pm 
Offline
Master

Joined: Tue Jun 22, 2010 1:15 pm
Posts: 203
Actually, it's a relief to hear it's just a user error, rather then an obscure compiler error! (although terribly embarrassing!)

On another topic, is there an ASM file generated that can be viewed for the 'PRO? I still see one for the BasicAtom.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Tue Oct 19, 2010 6:22 pm 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 528
I believe by default the asm file is now deleted if the program compiles properly. There have been a few times when I needed one and I forced one by adding some line of code which has an error.
Like: mov.l myvar er8

There is no er8...


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Tue Oct 19, 2010 7:27 pm 
Offline
Master

Joined: Tue Jun 22, 2010 1:15 pm
Posts: 203
Thanks Kurt, I'll try it!

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Wed Oct 20, 2010 1:53 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Or you can just uncheck Delete temp files in the preferences. :)

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Studio 2.0 reserved word?
PostPosted: Wed Oct 20, 2010 3:34 pm 
Offline
Master

Joined: Tue Jun 22, 2010 1:15 pm
Posts: 203
Thanks!

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO