Question
This is a BASCOM code i have got as a homework,, The picture on the left is the code required of us to write on
This is a BASCOM code i have got as a homework,, The picture on the left is the code required of us to write on BASCOM (Which is on the right), I've wrote it on the left but it doesn't work and i don't know why.
The errors displayed in the BASCOM program is :
Error 103 @ line 2
Error 93 @ line 2
Error 124 @ line 2
The Code:
Do For int position = 1 to 16
Locate 2, position ,Move Cursor w
LCD "Hello", ,Display text
Waitms Timedelay ,Wait a bit
Locate 2,position ,move cursor
LCD " " ,Blank LCD
Next
For position = 16 to 1, step -1
Locate 2,position ,Move Cursor
LCD "World", ,Display text
Waitms Timedelay ,Wait a bit
Locate 2,position ,move cursor
LCD "" ,Blank text
Next
Loop
End 'end program
Pexe-Whapsinuga. 221-321 at 01 N. COURIEDA72-1. Verder s stran The Wint- + A tecido Por och LOCAR ACEST PCESC. Frie. or CURED: Din 61 Quitar Tas Tit. C! lank position=1 Ful LCD ted" Delay 13 move cursor to position put text on screen Waitas Taide. Test . bis move cursor back to postion put spaces on screen ECD luat x Do For Position - 1 To 16 Locate 2. position 'move cursor w Lcd "Hello" 'display text Waits Timedelay wait a bit Locate 2. position "move cursor Led "blank Icd Next For Position = 16 To 1, step - 1 Locate 2. position 'move cursor Lcd "world" "display text Waits Timedelay Wait a bit Locate 2. position 'move cursor 'blank text Next Loop End end program losa -1- incr position N position 11 Led -- 1 Bro: 33 Us: 2 ro: w - De: Contratto Coxa Les Lleol. LOCAR bic ..., Wadded cross med needed Alrer ON b. Pexe-Whapsinuga. 221-321 at 01 N. COURIEDA72-1. Verder s stran The Wint- + A tecido Por och LOCAR ACEST PCESC. Frie. or CURED: Din 61 Quitar Tas Tit. C! lank position=1 Ful LCD ted" Delay 13 move cursor to position put text on screen Waitas Taide. Test . bis move cursor back to postion put spaces on screen ECD luat x Do For Position - 1 To 16 Locate 2. position 'move cursor w Lcd "Hello" 'display text Waits Timedelay wait a bit Locate 2. position "move cursor Led "blank Icd Next For Position = 16 To 1, step - 1 Locate 2. position 'move cursor Lcd "world" "display text Waits Timedelay Wait a bit Locate 2. position 'move cursor 'blank text Next Loop End end program losa -1- incr position N position 11 Led -- 1 Bro: 33 Us: 2 ro: w - De: Contratto Coxa Les Lleol. LOCAR bic ..., Wadded cross med needed Alrer ON bStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started