PDA

View Full Version : HSEROUT and code



ngeronikolos
- 6th March 2008, 23:24
Hello boys and girls,

I did something simple today .

I add to my code (I use 16f627 = 1024words FLASH Program) the following :


hserout ["'*********************************", 13,10]
hserout ["'* Name : WIRELESS TEMP liNK *", 13,10]
hserout ["'* Notice : Copyright (c)2008 By OLDNICK *", 13,10]
hserout ["'* Notes : UNIT POWER SUPPLY 3VDC *", 13,10]
hserout ["'*********************************", 13,10]

My code increase 450 words?????Just for that???

Can I do the previous(hserout) saving some space code?

Thanks in advance
Nikos

Darrel Taylor
- 7th March 2008, 01:34
Hello boys and girls,
More like Old farts and one nice Lady. :)


Can I do the previous(hserout) saving some space code?

Absolutely,

Here's an example that will work on a 627.

http://www.picbasic.co.uk/forum/showthread.php?p=51931

Notice how the "TOO LOW " and "TOO RICH" strings are stored using POKECODE.
And how it's displayed in the ShowMsg: routine.

Just change the LCDOUT to HSEROUT.

Make sure the Strings are "Null Terminated". (a 0 at the end)

hth,