Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 510 online users. » 0 Member(s) | 508 Guest(s) Facebook, Yandex
|
Latest Threads |
Includes in ASM
Forum: How-To & Tutorials
Last Post: bracckets
04-04-2024, 12:17 AM
» Replies: 2
» Views: 693
|
Intermittent errors
Forum: Help & Support
Last Post: zarsoft
03-12-2024, 12:39 PM
» Replies: 0
» Views: 385
|
Store array information i...
Forum: Help & Support
Last Post: rbiondi
03-10-2024, 09:42 PM
» Replies: 0
» Views: 499
|
ScrollLeft function scrol...
Forum: Bug Reports
Last Post: rbiondi
03-07-2024, 03:57 PM
» Replies: 2
» Views: 968
|
string.bas errors when co...
Forum: Bug Reports
Last Post: rbiondi
03-01-2024, 10:10 AM
» Replies: 2
» Views: 854
|
Using Beepola with ZX BAS...
Forum: How-To & Tutorials
Last Post: edtoo
02-29-2024, 09:47 AM
» Replies: 15
» Views: 33,555
|
Johnny Bravo
Forum: Gallery
Last Post: zarsoft
02-11-2024, 11:20 PM
» Replies: 0
» Views: 544
|
Compiling +D G+DOS progra...
Forum: ZX Basic Compiler
Last Post: boriel
01-22-2024, 08:32 AM
» Replies: 4
» Views: 8,911
|
VAL = ? (solved)
Forum: Bug Reports
Last Post: zarsoft
01-03-2024, 11:44 PM
» Replies: 8
» Views: 3,649
|
Wrong math (solved)
Forum: Bug Reports
Last Post: zarsoft
01-03-2024, 11:38 PM
» Replies: 4
» Views: 1,996
|
|
|
for without next error |
Posted by: maeloterkim - 10-10-2021, 02:22 PM - Forum: Help & Support
- Replies (3)
|
|
Hi
I found that if i dont write a next in a for the compiler only says "error: Unexpected end of file"
pointing to the LAST LINE of the program
if i only have a few lines is "easy" to find the error
but if i have 2000 or more lines is a crazy thing to find the error
Can the compiler add a rule to search if every FOR have a NEXT and throw the error "for without next" ?
This way is more easy to find the error in a BIG program with a lot of lines
You can look the example code
''EXAMPLE CODE WITH EXPLAINED ERROR
dim example as uByte = 0
for example = 0 to 10
print example
'' THE NEXT MUST GO HERE IN LINE 9 but the compiler logically dont know that
'' BUT Can the compiler say "error: for without next"
'' instead of "19: error: Unexpected end of file" ?
'' because if we have 2000 or more lines
'' and we dont know what happens
'' is a crazy thing search that error
print "end of program"
|
|
|
not updating the DF CC variable |
Posted by: maeloterkim - 10-01-2021, 08:46 AM - Forum: Help & Support
- Replies (3)
|
|
Hi
In the original ZX spectrum basic when you PRINT something the variable DF CC is updated with the screen position
for example the next program must print 16384 that is the first position of the screen
but the only answer always with every diferent position is 16448
this means that the print routine is not updating the DF CC variable like the original ROM
Is this a bug?
You can try this program and change the coordinates of the first print 0,0
Code: dim myScreen as uInteger
print at 0,0;
myScreen = peek (uInteger, 23684) '' 23684 = DFCC = Must be screen position after every print
print at 10,10; myScreen
|
|
|
|