World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.005s
<1234567…34>
  • [Asm] Is this nested loop faster than LDIR or a bunch of unrolled LDI's?Hi all. I'm learning Z80 asm on Speccy 48K, and to start with I decided to write my own "CLS" routine (without relying on ROM calls or LDIR) as a lea…

    ... could unroll my own inner loop a bit too, but code ... end of attributes RAM and loop backwards. Attributes RAM = 768 bytes ... column counter for the next loop iteration.
    dec c ; Move ... end of screen RAM and loop backwards. Screen RAM = 6144 bytes ...
    ST1 ST1 November 2018 Development
  • RAND USR that doesn't work in emulators and clonesEons ago, I "discovered" a strange RANDOMIZE USR. This is it: [b]RANDOMIZE USR 46578[/b] Using it on a genuine ZX Spectrum rubber key or Plus model,…

    ... the main part (the double nested loop) begins at a memory address ... during the execution of the loop, hence, DRAM rows greater than ... with 0 just before the loop, and checked after it has ...
    mcleod_ideafix mcleod_ideafix May 2011 Emulators
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... . But there was a triple nested loop with even an extra little ... accurate then a FOR...NEXT loop outperforms a GOTO. There may ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • I have done a Spectrum Screen Design Template As PDFI use this for my games, to work out attribute and screen addresses. It is A4, to be printed landscape [url="http://www.peargames.co.uk/downloads/s…

    ... /> In my code I use nested loop macros (in PASMO) to generate ...
    joefish joefish September 2013 Development
  • PROBLEM. reading a grid 1000*1000*1000 or biggerHere is a nice problem to think about. You have a grid of boxes 1000*1000*1000 (or bigger) and you are at the center of that grid at say 500,500,500…

    ... along x and have a nested loop from y1 to y2 in ... />
    EDIT3: For 3d you loop nested from min value of (x ... /max (x, y, z) and loop over those coordinates.
    Paradigm Shifter Paradigm Shifter January 2014 Sinclair Basic
  • Running out of fingers in AssemblyDear all, Still trying to learn Assembly and have put a few routines together. However, as my routines become a little more involved I find myself…

    ... learn how to perform a loop before you worry about T ... (an X and a Y loop) because they tend to think ... comes from the "nested loop" solution isn't wasted - nested loops are important ...
    AndyC AndyC September 2016 Development
  • z80 Helper?When you are programming with z80 do you get 'lost' you are in the middle of making a routine and you can't remember which registers are holding val…

    ... have a program that has nested loops,
    you can use ... keep track of the outer loop.

    This sounds good ... value of the outer loop in the inner loop.

    ... times. To traverse the whole nested loop structure.

    Also, has ...
    slenkar slenkar April 2017 Development
  • z80 Helper?When you are programming with z80 do you get 'lost' you are in the middle of making a routine and you can't remember which registers are holding val…

    ... have a program that has nested loops,
    you can use ... keep track of the outer loop.

    This sounds good ... value of the outer loop in the inner loop.

    ... times. To traverse the whole nested loop structure.

    Also, has ...
    Einar Saukas Einar Saukas April 2017 Development
  • Game loop design?Having some thoughts on how to design the game loop and could do with some hints and tips from folks who have done it before! It's all about how to …

    ... br />
    [code]
    loop:
    call spritemove

    The above loop design means that the loop is synchronized with ... demands that every game loop is about the same length ... Ideas on the main game loop, interrupt synchronization and whether ...
    ekoman ekoman July 2004 Development
  • Announce Pasmo 0.5.1Hello. New release 0.5.1 of Pasmo, multiplatform Z80 cross-assmbler. The main news are related to macros: the MACRO parameters now are expanded ins…

    ... expanded inside REPT and IRPD nested, a new operator ## allows identifier ... REPT now can have a loop variable.

    Available as ...
    NotFound NotFound December 2004 Development
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code] dec bc ld a, b or c jp nz, loop can be replaced (bc starts >255, short jump) by: dec bc inc b djnz loop [/code] …

    yesterday i saw nice trick:[code]

    dec bc
    ld a, b
    or c
    jp nz, loop

    can be replaced (bc starts >255, short jump) by:

    dec bc
    inc b
    djnz loop
    [/code]
    ..nice
    Fikee Fikee February 2005 Development
  • TZX Loop 0The original Road Blasters TZX has a decryption tone loop with a counter of zero. I'm coding TZX handling in my emulator and I'm wondering the best w…

    ... TZX has a decryption tone loop with a counter of ... br />
    If this means loop 65536 times then the tone ... !
    If it means loop 0 times then why does ... the loop and blocks exist?
    ... If it means loop only once then why have ...
    Unique Unique March 2005 Emulators
  • Do these games loop forever?Hi chaps :) Right, after what... n=n+1 years of not getting to the switch on Firefly, I decided to have a go at it last night and with judicious use…

    ... you do, anyway, does Firefly loop forever after that? Or does ... />
    Also, does Shockway Rider loop forever, or is there an ...
    Vertigo Vertigo November 2005 Games
  • Reggie Watts (?his loop machine?)So ... just wondering what the name/type of that green loop machine he always uses is. Enjoying his muzak so far ...

    So ... just wondering what the name/type of that green loop machine he always uses is.

    Enjoying his muzak so far ...
    ZnorXman ZnorXman April 2009 Chit chat
  • Why doesn't my loop work?Can anyone help me understand why my loop doesn't work? Is it to do with how DEC HL affects the flags? [code] ; Read 32k bytes from port 191 as fa…

    ... help me understand why my loop doesn't work?
    Is ... ; Destination start address

    loop: IN A,(C)
    LD ... /> DEC HL
    JR NZ,loop

    RET
    [/code ...
    trellis trellis December 2010 Development
  • FOR 1 TO 0 - Execute "no times"?I checked a couple of basic variations, and generally a for loop executes at least once, even if you create a negative loop without step -1. But in s…

    ... variations, and generally a for loop executes at least once, even ... if you create a negative loop without step -1. But in ... if you create a wrong loop, eg. "For x=1 to ... logically spread out. Many are nested under if statements, and some ...
    Arda Arda June 2012 Sinclair Basic
  • Using R as a loop counterThis is just something silly I've found a while back. xD [b][How-to][/b] Setup your routine like this:[code] ld a,X ;see below ld r,a loop ;your …

    ... /> ld r,a
    loop
    ;your routine here
    jr nz,loop[/code]Here, X is calculated ... times you want it to loop.

    [b][Example ... b]

    This will loop 4 times and reflect the ... the slowest possible way to loop using an 8-bit ...
    Hikaru Hikaru October 2012 Development
  • Shifting the UDG pointer from a MC loop...I have got myself in a bit of a mess again, I am trying to write a machine code subroutine that shifts the udg pointer (23675) up 64 places then shif…

    ... it back on the next loop of the game, basically to ...
    daveysludge daveysludge June 2013 Development
  • Ending a DJNZ loop prematurelyHow do you exit a DJNZ loop before its finished, I've tried loading b with zero but cant get it to stop.

    How do you exit a DJNZ loop before its finished, I've tried loading b with zero but cant get it to stop.
    daveysludge daveysludge November 2013 Development
  • Game loopJust working on my first ever Spectrum game, and am struggling to work out what the game-loop should look like. I've got interrupts enabled (mode 2)…

    ... (pseudo code):

    loop: halt ; wait for interrupt to ... /> update_stuff
    draw_sprites
    jr loop

    Does this look ... something like this:

    loop: update_stuff
    halt
    ...
    feynman feynman January 2014 Development
  • DIM and FOR, NEXT loopHi there. I'm making a program with 100 items on screen using dim and a for next loop. The thing is, each time I want to manipulate the items I do an…

    ... dim and a for next loop. The thing is, each time ... I do another for next loop which is slow(even after ...
    davepierce07 davepierce07 May 2014 Sinclair Basic
  • Animation loopHi. How would you read from a lookup table and cycle through the animations when a key is pressed it's Just the loop example i'm interested in not…

    ... />
    it's Just the loop example i'm interested in ...
    alienbanana alienbanana January 2016 Development
  • what is wrong with this loop?here is the loop: ld b,12 ld a,31 ld de,right_screen_array right_screen_array_label call charaddress ex de,hl ;de now contains screen address…

    here is the loop:

    ld b,12< ... it out as an unrolled loop it does work, so this ...
    slenkar slenkar July 2017 Assembler
  • FOR loop without NEXT instruction. How come?I've been looking through the BASIC listing for M.C. Lothlorien's Red Baron and have noticed a line of looping code that is puzzling me. This is lin…

    ... ]
    I thought every FOR loop had to have a NEXT ...
    LevelUp LevelUp October 2019 Sinclair Basic
  • Recursive functionsA while ago Phil demonstrated a nice example of recursiveness in a DEF FN function. Sadly it doesn't appear to be online anymore and I have difficult…

    ... to store state for deeply nested calls. A couple of examples ... iterative solution using a FOR loop) and the floodfill program you ...
    Alcoholics Anonymous Alcoholics Anonymous November 2006 Sinclair Basic
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... . Getting rid of the loop and unrolling would also help ... of those 16 times a loop is run four times, ... double width helper routine loop is run 64 times ... double char. If the C loop code takes, say, 100 ... small, simple and is deeply nested.

    A table ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 Development
  • Your sinclair magazine All issuesYour sinclair magazine All issues here: [url]http://www.seedpeer.com/details/2776851/your-sinclair-all-issues.html[/url]

    ... in a one or two-nested for-loop :)

    [code]
    NickH NickH June 2010 Sinclair Miscellaneous
  • Your sinclair magazine All issuesYour sinclair magazine All issues here: [url]http://www.seedpeer.com/details/2776851/your-sinclair-all-issues.html[/url]

    ... in a one or two-nested for-loop :)

    [code]
    landex landex June 2010 Sinclair Miscellaneous
  • A question about M1 cyclesI'm writing an interrupt routine that, after the usual register pushes, will jump to a location of my choice with a [b]JP (IY)[/b] instruction. If I…

    ... that couldn't tolerate being nested and wasn't guaranteed to ... and again in an infinite loop. By running 1 instruction later ...
    MrCheese MrCheese July 2010 Development
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
nested 172 204
loop 4.8K 8.5K

Related Threads

  • [Asm] Is this nested loop faster than LDIR or a bunch of unrolled LDI's?Hi all. I'm learning Z80 asm on Speccy 48K, and to start with I decided to write my own "CLS" routine (without relying on ROM calls or LDIR) as a lea…
  • Game loop design?Having some thoughts on how to design the game loop and could do with some hints and tips from folks who have done it before!<br /> <br /> It's all a…
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • TZX Loop 0The original Road Blasters TZX has a decryption tone loop with a counter of zero. I'm coding TZX handling in my emulator and I'm wondering the best w…
  • Do these games loop forever?Hi chaps :)<br /> <br /> Right, after what... n=n+1 years of not getting to the switch on Firefly, I decided to have a go at it last night and with j…
  • Another infinite death loop strikes!Oh, blinkin' bother and similar expressions of extreme exhasperation!<br /> <br /> Roller Coaster. Was doing very well on it, cleared 14 screens, wh…
  • Reggie Watts (?his loop machine?)So ... just wondering what the name/type of that green loop machine he always uses is.<br /> <br /> Enjoying his muzak so far ...
  • Why doesn't my loop work?Can anyone help me understand why my loop doesn't work? <br /> Is it to do with how DEC HL affects the flags? <br /> <br /> [code]<br /> ; Read 32k b…
  • Help needed with a loop counterVariable W counts to 12 then calls a subroutine to move a character, it then resets to zero and starts again.<br /> <br /> For every 2 moves of that …
  • Using R as a loop counterThis is just something silly I've found a while back. xD<br /> <br /> [b][How-to][/b]<br /> <br /> Setup your routine like this:[code] ld a,X ;see be…

Related Searches

  • play drum loop
  • play 128 drum loop
  • xor c loop
  • ld a b xor c loop
  • ld a b or c loop
  • until loop
  • outer loop
  • delay routine loop
  • delay loop
  • feedback loop
  • while loop basic
  • one line per loop
  • inke game loop
  • inkey loop
  • loop delay
  • timing loop
  • replacing this routine with a fixed loop
  • for next nested loops
  • for next nested loops strange odd
  • for next nested

Copyright © 2024 World of Spectrum