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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 267
» Latest member: ConradoBadenas
» Forum threads: 1,083
» Forum posts: 6,474

Full Statistics

Online Users
There are currently 197 online users.
» 0 Member(s) | 194 Guest(s)
Baidu, Bing, Google

Latest Threads
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
Yesterday, 11:52 AM
» Replies: 7
» Views: 139
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 108
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 160
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 91
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 217
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 380
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: zedex82
2025-10-05, 07:36 PM
» Replies: 2
» Views: 280
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 271
ZX Basic Studio Bugs
Forum: Bug Reports
Last Post: Duefectu
2025-09-23, 04:07 PM
» Replies: 5
» Views: 1,083
Printing with FZX
Forum: Help & Support
Last Post: boriel
2025-07-17, 10:08 PM
» Replies: 1
» Views: 1,965

 
  Cansino Pac
Posted by: alboran70 - 2017-11-24, 04:44 PM - Forum: Gallery - Replies (2)

Hola,

un jueguecillo hecho con este fantastico compilador


.zip   CansinoPac-source.zip (Size: 56.29 KB / Downloads: 1051)


.zip   CansinoPac-game.zip (Size: 18.72 KB / Downloads: 1011)

.jpg   CansinoPac-b.jpg (Size: 104.54 KB / Downloads: 2426)

saludos

Print this item

  RANDOMIZE USR issue
Posted by: LukeBord1 - 2017-11-23, 09:16 PM - Forum: Help & Support - Replies (15)

I'm trying to compile a short menu program including a RANDOMIZE USR command which calls an external assembly routine (tested).

Using both the latest ZXB v.1.7.2 and the previous v.1.6.12, the compiled program freezes. Recompiling it without the RANDOMIZE USR command, all goes ok!
Even trying to change the memory addresses, it seems the problem persists between the RANDOMIZE USR instruction and something inside the code...

Code:
DIM y,a,i AS UBYTE
y=10: a=0: i=1

10 BORDER 0: PAPER 0: INK 0: CLS: POKE 32005,0
   RANDOMIZE USR (address of the external tested routine)

20 PRINT AT y,11; BRIGHT 1; OVER 1; INK i;"          "

   IF a < 10 THEN a=a+1
   ELSE a=0
   END IF

   IF a=10 THEN
   IF i < 7 THEN i=i+1
   ELSE i=1
   END IF: END IF

   IF (INKEY="1" AND y <> 10) THEN GOSUB 70: y=10: POKE 32005,0: END IF
   IF (INKEY="2" AND y <> 11) THEN GOSUB 70: y=11: POKE 32005,1: END IF
   IF INKEY="3" THEN BEEP .04,50: RANDOMIZE USR (game start address): GO TO 10: END IF
   GO TO 20

70 PRINT AT y,11; BRIGHT 0; OVER 1; INK 7;"          ": BEEP .04,50: RETURN

Thoughts?

Print this item

  Question about the ORG value
Posted by: LukeBord1 - 2017-11-18, 05:37 PM - Forum: How-To & Tutorials - Replies (3)

Maybe the question could result dumb to Assembly experts; however, is there a way to make an ORiGin memory address flexible? Saying it more clearly, even setting an ORG value in the ZXB commandline, is there a way to import the code into a new memory address?

Print this item

  [enterprise] first test
Posted by: nitrofurano - 2017-11-04, 02:28 PM - Forum: Other Archs - Replies (3)

first test for enterprise 64/128, using attr display mode
(as shown at <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_Enterprise#test01_attrdisplaymode">http://www.boriel.com/wiki/en/index.php ... isplaymode</a><!-- m --> )



Attached Files
.zip   example01r5_improving.zip (Size: 27.89 KB / Downloads: 1023)
Print this item

  [zilec-enigma2] first test
Posted by: nitrofurano - 2017-10-18, 05:11 PM - Forum: Other Archs - No Replies

first test for the Zilec’s Enigma II arcade machine
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_ZilecEnigma2">http://www.boriel.com/wiki/en/index.php ... lecEnigma2</a><!-- m --> )



Attached Files
.zip   example01e_improving.zip (Size: 23.01 KB / Downloads: 992)
Print this item

  [pal-chance32] first test
Posted by: nitrofurano - 2017-10-18, 05:08 PM - Forum: Other Archs - No Replies

first test for the PAL’s Chance Thirty Two arcade machine
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_PalChance32">http://www.boriel.com/wiki/en/index.php ... alChance32</a><!-- m --> )



Attached Files
.zip   example01d_improving.zip (Size: 39.44 KB / Downloads: 1096)
Print this item

  [sanremo-numberone] first test
Posted by: nitrofurano - 2017-10-12, 05:47 PM - Forum: Other Archs - No Replies

first test for San Remo’s Number One arcade machine:
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_SanremoNumberOne">http://www.boriel.com/wiki/en/index.php ... oNumberOne</a><!-- m --> )



Attached Files
.zip   example01e_improving.zip (Size: 30.46 KB / Downloads: 1008)
Print this item

  [orca-zodiack] first test
Posted by: nitrofurano - 2017-10-12, 05:42 PM - Forum: Other Archs - No Replies

first test for the Orca-Zodiack arcade machine
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_OrcaZodiack">http://www.boriel.com/wiki/en/index.php ... rcaZodiack</a><!-- m --> )



Attached Files
.zip   example01f_improving.zip (Size: 25.69 KB / Downloads: 1059)
Print this item

  [valadon-bagman] first test
Posted by: nitrofurano - 2017-10-10, 05:57 PM - Forum: Other Archs - No Replies

first test for the Valadon Bagman arcade machine
( the wiki page related to this thread is at <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_ValadonBagman">http://www.boriel.com/wiki/en/index.php ... adonBagman</a><!-- m --> )



Attached Files
.zip   example01g_improving_joystickbug.zip (Size: 34.01 KB / Downloads: 993)
Print this item

  [orca-funkybee] first test
Posted by: nitrofurano - 2017-10-10, 05:52 PM - Forum: Other Archs - No Replies

first test for the Orca-FunkyBee arcade machine
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_OrcaFunkyBee">http://www.boriel.com/wiki/en/index.php ... caFunkyBee</a><!-- m --> )



Attached Files
.zip   example01g_improving.zip (Size: 27.56 KB / Downloads: 1101)
Print this item