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 159 online users.
» 0 Member(s) | 156 Guest(s)
Baidu, Bing, Google

Latest Threads
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 141
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 110
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 161
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 92
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 219
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 383
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: 273
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,967

 
  [funaigakken-eshsaurunmilla] first test
Posted by: nitrofurano - 2015-07-08, 11:23 AM - Forum: Other Archs - No Replies

first test for the Funai/Gakken Esh’s Aurunmilla arcade machine (laserdisk not supported yet)



Attached Files
.zip   example01b_working.zip (Size: 29.11 KB / Downloads: 952)
Print this item

  [epos-megadon] first test
Posted by: nitrofurano - 2015-07-07, 04:15 PM - Forum: Other Archs - No Replies

first test for the Epos-Megadon arcade machine



Attached Files
.zip   example01g_working.zip (Size: 24.65 KB / Downloads: 992)
Print this item

  [inchang-funnybubble] first test
Posted by: nitrofurano - 2015-06-29, 11:21 AM - Forum: Other Archs - No Replies

first test for the In Chang’s Funny Bubble 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_-_InChangFunnyBubble">http://www.boriel.com/wiki/en/index.php ... unnyBubble</a><!-- m --> )



Attached Files
.zip   example01d_startingtowork.zip (Size: 22.99 KB / Downloads: 1044)
Print this item

  [barko-oneplustwo] first test
Posted by: nitrofurano - 2015-06-29, 04:13 AM - Forum: Other Archs - No Replies

first test for the Barko’s One+Two 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_-_BarkoOnePlusTwo">http://www.boriel.com/wiki/en/index.php ... OnePlusTwo</a><!-- m --> )



Attached Files
.zip   example01b_working.zip (Size: 17.49 KB / Downloads: 1040)
Print this item

  [universal-mrdo] first test
Posted by: nitrofurano - 2015-06-27, 06:20 PM - Forum: Other Archs - No Replies

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



Attached Files
.zip   example01e_working.zip (Size: 30.06 KB / Downloads: 951)
Print this item

  Debugging
Posted by: britlion - 2015-06-26, 11:29 PM - Forum: Help & Support - Replies (4)

Is a pain.

Right now I've got a program that:

Code:
FOR n=40 to 50                                                                    
FastPlot (n,50)
next n

draws pixels in all the wrong places Sad So my fastplot is wrong?

Code:
FOR n=40 to 50                                                                    
FastPlot (n,50)
pause 0
next n

Ah! That fixed it. Now it plots all the pixels, with pauses, in all the right places.

*headscratch*

Presumably fastplot is wrong. I think. But...huh? How does that make it work better?!?


Code:
SUB FastPlot (x as uByte, y as uByte)

ASM
ld HL,FastPlotYValue+1
LD E,(IX+7) ; y
LD (HL),E

call FastPlotASMStart
END ASM
return

ASM
FastPlotASMStart:
    ld      hl,BLtabpow2
    ld      (FastPlotSaveX+1),A
    and     7       ; x mod 8
    ;ld      b,0
    ;ld      c,a
    ;add     hl,bc
    add a,l
    ld l,a
    jr nc, FastPlotSkip1
       inc h
    FastPlotSkip1:
    
    ;ld      a,(hl)    ; optimize - load e with (hl) directly, not (hl) -> a -> e.
    ld      e,(hl)     ; e contains one bit set

    ld      hl,BLTabLinIdx
END ASM
FastPlotYValue:
ASM
FastPlotYValue:
    ld      a,0 ; Self modding code that puts y value here
    ;ld      b,0
    ;ld      c,a
    ;add     hl,bc
    add a,l
    ld l,a
    jr nc, FastPlotSkip2
       inc h
    FastPlotSkip2:
    ld      a,(hl)      ; table lookup

    ;ld      h,0
    ;ld      l,a
    ;add     hl,hl
    ;add     hl,hl
    ;add     hl,hl
    ;add     hl,hl
    ;add     hl,hl       ; x32 (16 bits) (this multiply routine is 66 t states)

    rrca
    rrca
    rrca
    ld h,a
    and %11100000
    xor h
    or %01000000
    ld h,a   ;- this is faster at 35 T states to do hl=a*32

    ;set     6,h         ; adds the screen start address (16384) (moved up to previous and %010 instruction)

FastPlotSaveX:
    ld      a, 255 ; X Self Modifying - this is written into to save X earlier.
    ;srl     a
    ;srl     a
    ;srl     a           ; x/8 24 T states
    rrca
    rrca
    rrca
    and %00011111        ;x / 8 19 T states
    
    or      l
    ld      l,a         ; + x/8.

    ld      a,(hl)
    or      e           ; or = superposition mode.
    ld      (hl),a      ; set the pixel.
    ret

END ASM


#ifndef BLTabLineIdxPresent
#define BLTabLineIdxPresent
ASM
    ;; small screen lines lookup table

BLTabLinIdx:
    defb    0,8,16,24,32,40,48,56,1,9,17,25,33,41,49,57
    defb    2,10,18,26,34,42,50,58,3,11,19,27,35,43,51,59
    defb    4,12,20,28,36,44,52,60,5,13,21,29,37,45,53,61
    defb    6,14,22,30,38,46,54,62,7,15,23,31,39,47,55,63

    defb    64,72,80,88,96,104,112,120,65,73,81,89,97,105,113,121
    defb    66,74,82,90,98,106,114,122,67,75,83,91,99,107,115,123
    defb    68,76,84,92,100,108,116,124,69,77,85,93,101,109,117,125
    defb    70,78,86,94,102,110,118,126,71,79,87,95,103,111,119,127

    defb    128,136,144,152,160,168,176,184,129,137,145,153,161,169,177,185
    defb    130,138,146,154,162,170,178,186,131,139,147,155,163,171,179,187
    defb    132,140,148,156,164,172,180,188,133,141,149,157,165,173,181,189
    defb    134,142,150,158,166,174,182,190,135,143,151,159,167,175,183,191

BLtabpow2:
    ;; lookup table with powers of 2
    defb    128,64,32,16,8,4,2,1    

END ASM
#endif    
        
END SUB


FOR n=40 to 50                                                                    
FastPlot (n,60)
next n

FOR n=40 to 50                                                                    
FastPlot (n,50)
pause 0
next n

Ideas accepted Smile

(Not sure any are in the right places, but the non pause version had them non-contiguous, which was very weird).

Print this item

  [sega-dottorikun] first test
Posted by: nitrofurano - 2015-06-25, 02:03 PM - Forum: Other Archs - No Replies

first test for the Sega Dottori Kun arcade machine



Attached Files
.zip   example01b_working.zip (Size: 12.85 KB / Downloads: 928)
Print this item

  [konami-supercobra] first test
Posted by: nitrofurano - 2015-06-24, 12:54 PM - Forum: Other Archs - No Replies

first test for the Konami’s Super Cobra arcade machine (Strategy-X configuration)



Attached Files
.zip   example01f_working.zip (Size: 37.38 KB / Downloads: 1002)
Print this item

  [konami-targetpanic] first test
Posted by: nitrofurano - 2015-06-23, 06:05 PM - Forum: Other Archs - No Replies

first test for the Konami’s Target Panic arcade machine



Attached Files
.zip   example01d_working.zip (Size: 31.93 KB / Downloads: 961)
Print this item

  [konami-moguradesse] first test
Posted by: nitrofurano - 2015-06-22, 08:40 PM - Forum: Other Archs - Replies (1)

first test for the Konami Mogura Desse arcade machine



Attached Files
.zip   example01c_working.zip (Size: 23.83 KB / Downloads: 1000)
Print this item