Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 294
» Latest member: nordikeyewear
» Forum threads: 1,028
» Forum posts: 6,212

Full Statistics

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

 
Big Grin Frogger 50
Posted by: Jbizzel - 01-23-2022, 02:53 PM - Forum: Gallery - Replies (2)

OK, I've been at it again. 

FROGGER 50

Changes:

Cool loading screen
Music - Cars by Gary Newman (Get it???)
New BeeperFX sound routines
The original boasted as many UDG as is possible - now there are even more!
Changes to the graphics
re compiled in ZX Basic
Many code tweaks, changes and improvements

keys are 1,9,0 - I couldn't bring myself to change them.




https://www.spectrumcomputing.co.uk/foru...f=3&t=6287

[Image: Frog.jpg]

Print this item

  snake game
Posted by: Jbizzel - 01-21-2022, 06:06 PM - Forum: Gallery - Replies (1)

He is a game I made while leaning ZX basic

It has 5 levels of speed and some nice beeper tracks Smile

SNAKE game

[Image: 0037666-load-1.scr&border=0]

Print this item

  Problem with compiling game
Posted by: retrofan - 12-29-2021, 03:03 PM - Forum: Help & Support - Replies (1)

On the spectrumcomputing forum we are struggling to compile a frogger basic game with Boriel Compiler.
https://spectrumcomputing.co.uk/forums/v...=21&t=6057
We have made some progress (in .bas file), but the game is still far from fully functional.

Any help would be welcome...



Attached Files
.zip   frogger_cass50.zip (Size: 4.96 KB / Downloads: 404)
Print this item

  ZXBC to target 128K BIOS ROM
Posted by: RandomiserUsr - 12-27-2021, 02:54 PM - Forum: Help & Support - Replies (2)

Very quick question,

 could ZXBC target a 128K BIOS ROM in the asm compile routines?

I'm expecting a "no" 

thanks 
Smile Smile

Print this item

  ORG 60000 - LEN(compiled code) (solved)
Posted by: zarsoft - 12-03-2021, 09:54 AM - Forum: ZX Basic Compiler - Replies (2)

Hi
I want to put the code on top memory.
How do I know the length of the compiled code?

Print this item

  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"

Print this item

  BASIC FROGGER
Posted by: maeloterkim - 10-04-2021, 10:14 PM - Forum: Gallery - Replies (5)

After all the hacking questions about the compiler i ended the game and is presented to bytemanicos contest

The game is BASIC FROGGER

Enjoy the attached file basicFrogg.tap



Attached Files
.tap   basicFrogg.tap (Size: 45.91 KB / Downloads: 5)
Print this item

  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

Print this item

  zx0 compression corruption on decompressing (solved)
Posted by: RandomiserUsr - 09-29-2021, 06:50 PM - Forum: Bug Reports - Replies (3)

Since zxbc.py 1.15.3-beta9 the following is causing screen corruption

dzx0Standard(@Pic1, 16384)

Pic1:
asm
incbin "pic1.scr.zx0"
end asm

The same thing happens for text uncompressing.

See attachments for all of the files.

The same code works fine on 1.15.2 stable

Thanks

.zip   zx0picbug.zip (Size: 2.75 KB / Downloads: 449)

Print this item

  is possible a variable goto or gosub?
Posted by: maeloterkim - 09-27-2021, 01:50 PM - Forum: Help & Support - Replies (3)

Hi

in the original  ZX spectrum basic you can do this

goto MyVariable  or gosub MyVariable  where this variable must be a line number

this way we can goto or gosub to diferents routines that are in diferents line numbers

but i tried this example with the compiler and says error: Syntax Error. Unexpected token 'MyRoutines' <ARRAY_ID>

This is the example you can try:


dim MyRoutines(2) as uInteger => {  @MyRoutine1, _    '' address of my routine 1
                                                       @MyRoutine2, _    '' address of my routine 2
                                                      @MyRoutine3 _    '' address of my routine 3
                                                  }
                               
dim myVariable as uByte = 1

gosub MyRoutines(myVariable)     '' you can try goto too


myLoop:
goto myLoop


MyRoutine1:
print "MyRoutine 1"
return                   

MyRoutine2:
print "MyRoutine 2"
return                   

MyRoutine3:
print "MyRoutine 3"
return       


Is possible do something like that without a lot of ifs ?


I think i found a solution

The solution i found is this:


dim MyRoutines(2) as uInteger => { @MyRoutine1, _ '' address of my routine 1
@MyRoutine2, _ '' address of my routine 2
@MyRoutine3 _ '' address of my routine 3
}

dim myVariable as uByte = 0


poke uInteger (@pokeGosub1 + 1), MyRoutines(myVariable)

pokeGosub1:
gosub MyRoutine1


myLoop:
goto myLoop


MyRoutine1:
print "MyRoutine 1"
return

MyRoutine2:
print "MyRoutine 2"
return

MyRoutine3:
print "MyRoutine 3"
return


I do a poke with the routine direction just before the gosub

maybe you can implement this with the compiler

this way the behaviour is more like the original ZX spectrum Smile

Print this item