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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 270
» Latest member: Exile
» Forum threads: 1,083
» Forum posts: 6,474

Full Statistics

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

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

 
  [enerdyne-americanspeedway] first test
Posted by: nitrofurano - 2014-11-14, 07:11 PM - Forum: Other Archs - No Replies

first test for the Enerdyne’s American Speed Way 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_-_EnerdyneAmericanSpeedWay">http://www.boriel.com/wiki/en/index.php ... anSpeedWay</a><!-- m --> )



Attached Files
.zip   example01c_working.zip (Size: 21.9 KB / Downloads: 985)
Print this item

  [taito-thelegendofkage] first test
Posted by: nitrofurano - 2014-11-14, 05:46 PM - Forum: Other Archs - No Replies

first test for the Taito-TheLegendOfKage arcade machine



Attached Files
.zip   example01c_working.zip (Size: 182.03 KB / Downloads: 1005)
Print this item

  [mondial-ladyfrog] first test
Posted by: nitrofurano - 2014-11-13, 03:20 PM - Forum: Other Archs - No Replies

first test for the Mondial-LadyFrog 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_-_MondialLadyFrog#test01">http://www.boriel.com/wiki/en/index.php ... rog#test01</a><!-- m --> )



Attached Files
.zip   example01e_working.zip (Size: 28.66 KB / Downloads: 1004)
Print this item

  [taito-samurainihonichi] first test
Posted by: nitrofurano - 2014-11-08, 11:56 PM - Forum: Other Archs - No Replies

first test for the Taito-SamuraiNihonIchi arcade machine (Nunchackun configuration)



Attached Files
.zip   example01g_working.zip (Size: 29.8 KB / Downloads: 975)
Print this item

  [sega-appoooh] first test
Posted by: nitrofurano - 2014-11-08, 08:51 PM - Forum: Other Archs - No Replies

first test for the Sega-Appoooh arcade machine



Attached Files
.zip   example01f_working.zip (Size: 23.75 KB / Downloads: 1036)
Print this item

  [taito-chacknpop] first test
Posted by: nitrofurano - 2014-11-07, 03:49 PM - Forum: Other Archs - No Replies

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



Attached Files
.zip   example01e_working.zip (Size: 19.95 KB / Downloads: 1081)
Print this item

  [taito-thefairylandstory] first test
Posted by: nitrofurano - 2014-11-07, 11:34 AM - Forum: Other Archs - No Replies

first test for the Taito-TheFairylandStory arcade machine



Attached Files
.zip   example01d_working.zip (Size: 34.01 KB / Downloads: 978)
Print this item

  [orca-marineboy] first test
Posted by: nitrofurano - 2014-11-06, 06:23 PM - Forum: Other Archs - No Replies

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



Attached Files
.zip   example01f_working.zip (Size: 34.3 KB / Downloads: 1085)
Print this item

  [komax-flower] first test
Posted by: nitrofurano - 2014-11-05, 02:11 PM - Forum: Other Archs - No Replies

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



Attached Files
.zip   example01d_working.zip (Size: 27.69 KB / Downloads: 978)
Print this item

  Another optimizer bug (*solved*)
Posted by: einar - 2014-11-04, 02:47 AM - Forum: Bug Reports - Replies (3)

Ouch! This bug gave me a headache! It took me some time to figure out the reason my game was crashing...

Take a look at this sample:

Code:
sub test()
    asm
        call    $fc12
        di
        ld      a, $fe
        ld      i, a
        im      2
        ei
    end asm
end sub

test()

Try compiling this sample above using:

Code:
zxb.exe -A -O2 prog.bas

And it will produce the expected result:

Code:
_test:
    push ix
    ld ix, 0
    add ix, sp
#line 1
        call    $fc12
        di
        ld      a, $fe
        ld      i, a
        im      2
        ei
#line 7
_test__leave:
    ld sp, ix
    pop ix
    ret

However try compiling it again using:

Code:
zxb.exe -A -O3 prog.bas

Now the result won't make sense anymore:

Code:
_test:
    push ix
    ld ix, 0
    add ix, sp
#line 1
    call    $fc12
    di
    im      2
    ei
#line 7
_test__leave:
    ld sp, ix
    pop ix
    ret

The problem is, the optimizer is supposed to try to optimize its own generated code only, not someone else's assembly code that it doesn't have enough information to understand!

Print this item