| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 165 online users. » 0 Member(s) | 164 Guest(s) Bing
|
| Latest Threads |
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 214
|
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 486
|
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 1,302
|
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 1,392
|
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 2,080
|
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 1,081
|
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 1,180
|
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 630
|
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 1,218
|
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,382
|
|
|
| debug information |
|
Posted by: wilco2009 - 2012-12-19, 12:42 AM - Forum: Help & Support
- Replies (6)
|
 |
It is possible to debug a zxbasic program in any emulator but at BASIC level (not assembler) using the debug information generated on compiling time?
|
|
|
| Var declaration checking |
|
Posted by: wilco2009 - 2012-12-19, 12:34 AM - Forum: Wishlist
- Replies (5)
|
 |
Please, Could be possible to add an command option to require declare all variables.
I think, not declared variables is the source of bugs more difficult to find.
The problem is worse when you consider that BASIC is case sensitive.
|
|
|
| Non sense results (or error) working with defm strings |
|
Posted by: wilco2009 - 2012-12-15, 11:48 AM - Forum: Help & Support
- Replies (2)
|
 |
Just to save space, I'm coding some strings in inline Asm sentences, and I found a bug.
If you execute the following code:
Code: Dim x as byte = 1
Dim y as byte = 5
Dim c as byte
textdata:
Asm
defm " BILBO GUARDO EL TESORO Y EL "
db 0
defm " ANILLO POR MUCHO TIEMPO, SIN"
db 0
defm " SOSPECHAR SU VERDADERA"
db 0
defm "NATURALEZA Y SU TERRIBLE PODER"
db 0
defm "HASTA MUCHO TIEMPO DESPUES"
db 0
defm "PERO ESO YA ES OTRA HISTORIA.."
defb $FF
End Asm
Border 0: Paper 0: Ink 6: Bright 1: Cls
dir = @textdata
Do
c = Peek dir
If c <> 255 Then
if c <> 0 Then
print at y, x; Chr$(c)
x = x 1
Else
x = 1
y = y 2
End If
dir = dir 1
End If
If Inkey$ <> "" Then Exit Do: End If
Loop
Pause 1000
End Sub
You will not get the expected result. Instead of it, you will get a white screen.
If you delete the lines:
Code: defm "HASTA MUCHO TIEMPO DESPUES"
db 0
Program shows a correct behaviour.
I think the bug have relation with the memory reserved by the asm lines, because deleting or adding lines you get differents errors, sometimes you get an "Out of Memory" message or shows the correct result but paper white instead black.
|
|
|
| Incorrect values asigned to an uinteger matrix (*solved*) |
|
Posted by: wilco2009 - 2012-12-15, 10:42 AM - Forum: Bug Reports
- Replies (1)
|
 |
Si se compila el siguiente fragmento de código el resultado es muy diferente del esperado:
Code: Dim obj(15) as uinteger
for i = 0 to 15
obj(i) = 9999
Print Obj(i)
nex i
Si ahora consultas el resultado del array de objs, en lugar de contener todos los elementos 9999 contienen el valor 255.
Compiling the following code, the value of the matrix elements is totally diferent to the expected one:
Code: Dim obj(15) as uinteger
for i = 0 to 15
obj(i) = 9999
Print Obj(i)
nex i
All the elements of the obj matrix are now 255 instead 999.
Using a intermediate scalar variable the result is correct.
NOTE: Bug fixed in the new version 1.3.0s952
|
|
|
|