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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 260
» Latest member: Jamesflina
» Forum threads: 1,075
» Forum posts: 6,435

Full Statistics

Online Users
There are currently 164 online users.
» 0 Member(s) | 162 Guest(s)
Bing, Google

Latest Threads
Strange Happenings
Forum: Bug Reports
Last Post: zedex82
05-07-2025, 09:05 AM
» Replies: 0
» Views: 26
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 405
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 323
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,644
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 589
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 925
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 367
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,123
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,913
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 437

 
  [enerdyne-americanspeedway] first test
Posted by: nitrofurano - 11-14-2014, 06: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: 732)
Print this item

  [taito-thelegendofkage] first test
Posted by: nitrofurano - 11-14-2014, 04: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: 755)
Print this item

  [mondial-ladyfrog] first test
Posted by: nitrofurano - 11-13-2014, 02: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: 757)
Print this item

  [taito-samurainihonichi] first test
Posted by: nitrofurano - 11-08-2014, 10: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: 729)
Print this item

  [sega-appoooh] first test
Posted by: nitrofurano - 11-08-2014, 07: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: 783)
Print this item

  [taito-chacknpop] first test
Posted by: nitrofurano - 11-07-2014, 02: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: 816)
Print this item

  [taito-thefairylandstory] first test
Posted by: nitrofurano - 11-07-2014, 10: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: 714)
Print this item

  [orca-marineboy] first test
Posted by: nitrofurano - 11-06-2014, 05: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: 839)
Print this item

  [komax-flower] first test
Posted by: nitrofurano - 11-05-2014, 01: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: 735)
Print this item

  Another optimizer bug (*solved*)
Posted by: einar - 11-04-2014, 01: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