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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 272
» Latest member: sdo303
» Forum threads: 1,084
» Forum posts: 6,477

Full Statistics

Online Users
There are currently 82 online users.
» 0 Member(s) | 81 Guest(s)
Bing

Latest Threads
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
10 hours ago
» Replies: 1
» Views: 25
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 776
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 1,319
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 649
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 717
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 395
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 775
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 908
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 684
ZX Basic Studio Bugs
Forum: Bug Reports
Last Post: Duefectu
2025-09-23, 04:07 PM
» Replies: 5
» Views: 1,777

 
  Different result than expected when poking to screen
Posted by: emook - 2016-12-10, 10:31 PM - Forum: ZX Basic Compiler - Replies (5)

Hello,

In normal basic we can do this following code :

Code:
10 BORDER 0: PAPER 0: INK 6: CLS
20 FOR i=1 TO 7
30 FOR y=0 TO 21
40 FOR x=0 TO 31
50 LET l=22528+x+y*32
60 POKE l,8*i
70 NEXT x
80 NEXT y
90 NEXT i

[Image: tK1VcJ5.png]

To fill the screen with the desired colour (I know this example seems pointless, but the same method to poke a screen char is used quite a bit for me)

however, in ZXB it only seems to pokes to the top third of the screen :

Code:
border 0
paper 0
ink 6
cls

dim i as ubyte
dim x as ubyte
dim y as ubyte
dim l as uinteger

FOR i=1 TO 6
FOR y=0 TO 23
FOR x=0 TO 31
l=22528+x+y*32
POKE l,8*i
NEXT
NEXT
NEXT

[Image: UdGaSL2.png]

Anyone know what I am doing wrong here?

Thanks!

Print this item

  [universal-ladybug] first test
Posted by: nitrofurano - 2016-12-10, 06:39 PM - Forum: Other Archs - Replies (1)

first test for the Universal Lady Bug arcade machine
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_UniversalLadyBug">http://www.boriel.com/wiki/en/index.php ... salLadyBug</a><!-- m --> )



Attached Files
.zip   example01e_improving.zip (Size: 35.7 KB / Downloads: 1103)
Print this item

  [omori-carjamboree] first test
Posted by: nitrofurano - 2016-12-08, 03:06 PM - Forum: Other Archs - No Replies

first test for the Omori’s Car Jamboree 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_-_OmoriCarJamboree">http://www.boriel.com/wiki/en/index.php ... arJamboree</a><!-- m --> )



Attached Files
.zip   example01f_improving.zip (Size: 32.05 KB / Downloads: 1137)
Print this item

  [sun-markham] first test
Posted by: nitrofurano - 2016-12-07, 09:16 PM - Forum: Other Archs - No Replies

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



Attached Files
.zip   example01d_fixingtiles_3bitdepth.zip (Size: 26.5 KB / Downloads: 1077)
Print this item

  [taito-kusayakyuu] first test
Posted by: nitrofurano - 2016-12-07, 04:20 PM - Forum: Other Archs - No Replies

first test for the Taito-Kusayakyuu 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_-_TaitoKusayakyuu">http://www.boriel.com/wiki/en/index.php ... Kusayakyuu</a><!-- m --> )



Attached Files
.zip   example01d_improving.zip (Size: 35.14 KB / Downloads: 1148)
Print this item

  Just a little test
Posted by: emook - 2016-12-06, 02:29 AM - Forum: Gallery - Replies (1)

Some IM music playback. Music converted with Autosirli from the mastersystem into Vortex Tracker, then some INS and OUTS.

[Image: tgxWTml.png]



Attached Files
.zip   combined_edited_3.zip (Size: 6.88 KB / Downloads: 1159)
Print this item

  Just something silly
Posted by: emook - 2016-12-06, 02:27 AM - Forum: Gallery - Replies (3)

[Image: tgxWTml.png]

Some IM music converted from the MS using AutoSirli and Vortextracker. Code could be massively optimised!

EDIT

source now available : http://zxbasic.uk/files/source.rar



Attached Files
.zip   combined_edited_3.zip (Size: 6.88 KB / Downloads: 1119)
Print this item

  [olympia-dday] first test
Posted by: nitrofurano - 2016-12-04, 01:22 PM - Forum: Other Archs - No Replies

first test for the Olympia’s D-Day 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_-_OlympiaDDay">http://www.boriel.com/wiki/en/index.php ... lympiaDDay</a><!-- m --> )



Attached Files
.zip   example01e_improving.zip (Size: 30.31 KB / Downloads: 1107)
Print this item

  [kiwako-mrjong] first test
Posted by: nitrofurano - 2016-12-03, 03:21 PM - Forum: Other Archs - Replies (1)

first test for the kiwako’s Mr. Jong arcade machine
( the wiki page related to this thread is at - <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php?title=ZX_BASIC:Released_Programs_-_KiwakoMrJong">http://www.boriel.com/wiki/en/index.php ... wakoMrJong</a><!-- m --> )



Attached Files
.zip   example01e_improving.zip (Size: 29.47 KB / Downloads: 1141)
Print this item

  [wing-superwing] first test
Posted by: nitrofurano - 2016-12-02, 07:08 PM - Forum: Other Archs - No Replies

first test for the Wing’s Super Wing arcade machine
( <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_WingSuperWing">http://www.boriel.com/wiki/en/index.php ... gSuperWing</a><!-- m --> )



Attached Files
.zip   example01d_improving.zip (Size: 21.97 KB / Downloads: 1110)
Print this item