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.014s
<1234567…34>
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... of RND(), then entered an until loop and compared the generated sequence ...
    Mad Fritz Mad Fritz May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... of RND(), then entered an until loop and compared the generated sequence ...
    Patrik Rak Patrik Rak May 2011 Sinclair Basic
  • Using FOR/NEXT like 'while'I don't know if this has already been discussed (I did search, but the search engine didn't like the word 'while'), but here's a way of using a FOR/N…

    ... is actually emulating an UNTIL loop. The equivalent WHILE loop would emulate "WHILE ... at the top of the loop (if possible) would enhance clarity ... , particularly if the loop contained many statements.

    Battle Bunny Battle Bunny March 2013 Sinclair Basic
  • Using FOR/NEXT like 'while'I don't know if this has already been discussed (I did search, but the search engine didn't like the word 'while'), but here's a way of using a FOR/N…

    ... example is actually emulating an UNTIL loop.[/QUOTE]

    No, this ... Pascal, where it is called UNTIL). Do note that in C ... know it's technically an until construction, but most people who ...
    Timmy Timmy March 2013 Sinclair Basic
  • 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
  • [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…

    ... end of attributes RAM and loop backwards. Attributes RAM = 768 ... column counter for the next loop iteration.
    dec c ; ... end of screen RAM and loop backwards. Screen RAM = 6144 ... .
    djnz cls_screen_loop ; Keep looping until b = 0.
    ; No ...
    ST1 ST1 November 2018 Development
  • AY musicThis is a format I'm proposing for an AY music player. If anyone can see any problems or anywhere it can be improved please say so. An AY music form…

    ... Wait time - 12bit wait frames until reading next message - gives the ... stream only - end playing and loop, 8000 basically repeats from the ... playing
    Wait Time - frames until reading next message

    loop) 1 bit null

    cyborg cyborg October 2001 Sinclair Miscellaneous
  • ZX48k terminal...Hello everybody, I thought someone might help me. I connect my good old ZX48k to my PC via serial (IF1) link, and I was trying to write a little term…

    ... .
    I then need to loop: trying to read a char ... a treat both ways
    until I press Space on the ...
    Alessandro Tommasi Alessandro Tommasi October 2001 Sinclair Miscellaneous
  • VSYNC FunctionI have written a VSYNC function, so that I can clear the screen before redraw without flicker on the screen, I do this by peeking at the address 2367…

    ... way?

    [code]
    ; Loop Until VSYNC Met
    VSYNC:
    robpearmain robpearmain May 2004 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
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it Note, for 48k spectrum using TASM [code] ; ***********…

    ... reaches target, increase anim frame until target reached, reset to 0 ...
    LD B,TOTALSPRITES ; And loop for the total number of ...
    robpearmain robpearmain August 2004 Development
  • Wanted: Code to wait until Border has been drawnWhen my IM2 interrupt fires, I want to wait until the ULA is past the first line of display before drawing. I know I need to wait about 14300T after…

    When my IM2 interrupt fires, I want to wait until the ULA is past the first line of display before drawing.

    I know I need to wait about 14300T after interrupt but how can I tell if the ULA is now past the border and onto the screen?
    robpearmain robpearmain September 2004 Development
  • Smooth Screen Scrolling RoutineHi everyone, this is a follow up to the thread on smooth screen scrolling. As promised here is the code for the routine. It's pretty long and fairl…

    ... A,76 ;delay to wait until raster is
    DELAYA LD ...

    LD IXL,5 ;loop count for no. of tiles ... )

    DEC IXL ;decrease loop counter
    JP NZ, MODHLB ... />
    DEC IXH ;decrease row loop counter
    JP NZ, ROWLOOP ...
    dmsmith dmsmith September 2004 Development
  • Sprites flickeringI am trying to write a Spectrum game in machine code. I am still a beginner in programming, however I did much progress recently, i believe. Now I am…

    ... into background
    3. Delay loop
    4. Draw stored background ... /> My delay loop is just decreasing register
    until it reaches 0 ...
    Ralf Ralf October 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
  • how do i read the keyboard in assembly? here is the code i tried writting to find out the value of a key call 28f (hex) loop: ld a,255 cp e jr z loop ld (50000),e ret notes from what i …

    ... />
    call 28f (hex)
    loop: ld a,255
    cp ... e
    jr z loop
    ld (50000),e
    until i press a key.
    mestor mestor August 2005 Development
  • unreleased spectrum protection system - any use any more? also pokerama sourceDon't know if anyone's interested in this. During my days hacking games for Your Sinclair and Crash (and Sinclair User for a while) I had a pet proje…

    ... which ran in an endless loop until it looped back over the ...
    JonNorth JonNorth September 2005 Development
  • 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
  • Machine Code: quicksort optimisationI came across this z80 quicksort implementation when going through the wikipedia article on the same. It's 44 bytes long. I was wondering if any of …

    ... ,de
    jp c,next1 ;loop until lohi
    ld l,e ...
    Arjun Arjun January 2006 Development
  • Codies help? Werewolves of LondonHi All, never one for shying away from the deep end, having only just dipped my toe in to the world of machine code I find myself trying to find out …

    ... go to this address loop), but the loop isnt touching the B ... the address HL. That is until it gets to the register ... that point tho - running a loop that isnt changing the exit ... point of that loop.

    Can anyone who ...
    Womble Womble March 2006 Sinclair Basic
  • In Machine Code, what is the quickest way to sort bytes?I am playing around with some ordering of sprites, where I want to order them by vertical position. I used some Rodnay Zaks code to order some bytes…

    ... it stuck in an endless loop.

    Also, using "IX ... /> djnz next ; dec b, continue until zero
    bit flag,h ...
    robpearmain robpearmain August 2006 Development
  • Is this advisble for batteries?You know how you shouldn't leave batteries in any portable (or non-portable) item, such as an mp3 player, a digital camera etc, if you're not going t…

    ... use the camera or whatever until you physically put the battery ... broken, the power doesn't loop through the camera, so the ...
    ewgf ewgf February 2007 Chit chat
  • Help with creating .ayI am trying to create an .AY file for Sidewalk. Now this is the first time I am trying to do anything like this, so please bear with me. Using Spin's…

    ... main application runs in a loop waiting for a keypress. The ... wanted to leave the stuff until later).

    Now I ...
    pepak pepak March 2007 Sinclair Miscellaneous
  • Comments for small "sprite" routine wantedI have just written my first machine code program and I am quite happy (and proud) to get it working! :smile: As a child I never learned anything e…

    ... />
    [B]loop1[/B] ;main loop, first part rotates first byte ...
    jr nz,loop1 ;repeat until d is 0


    [B]setcarry[/B] ;small loop to save the carry flag ...
    Rickard Rickard May 2007 Development
  • Another infinite death loop strikes!Oh, blinkin' bother and similar expressions of extreme exhasperation! Roller Coaster. Was doing very well on it, cleared 14 screens, which is more …

    ... drops me, again and again, until Im out of lives. :( Bloody ...
    Graz Graz June 2007 Games
  • IN 255 behaviour not emulated in Spectaculator and ZXSpinI'm not speaking about "normal" IN 255 behaviour. All of you know what I'm taking about: IN 255 can be used to "read" screen data as it's retrieved f…

    ... use this code:
    [code]Loop in a,(c)
    jp ... m,Loop[/code]

    It's ... sometimes, it stucked in the loop while waiting for bit 7 ... ULA stops the Z80 clock until it has finished. When the ...
    mcleod_ideafix mcleod_ideafix January 2009 Hardware
  • err, I like wrote this years ago, and just found it archived.[b]read it, and say it's crap if you want, but do not go on about the technical side, cos it was bullshit, we all know it, and the end makes no sense…

    ... again, and again and again, until the gun was empty. The ... will put it on ice until it gets back'', click BEEP ... him a well executed boolean loop was as beautiful as any ...
    thx1138 thx1138 January 2009 Chit chat
  • 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
  • Level designers wanted...In the summer I requested some help for levels for a game I was writing, and the result was W*H*B, which I'm really proud off. Now I'm asking for he…

    ... 'll keep you in the loop about its development. Whereas I ... keep this game under-wraps until Christmas, and would require everybody ... to keep the secret too until it's released.
    bobs bobs August 2009 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... PRINCIPALLOOP ;label for the loop in the game that will ... game goes round its principal loop.
    At the ... road' by using a loop to create two vertical stripes ... equivalent of a FOR-NEXT loop, djnz.
    djnz ... and de) and Repeat (until bc is zero).
    ...
    bigjon bigjon November 2009 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
until 21K 23K
loop 4.8K 8.5K

Related Threads

  • 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…
  • Wanted: Code to wait until Border has been drawnWhen my IM2 interrupt fires, I want to wait until the ULA is past the first line of display before drawing.<br /> <br /> I know I need to wait about …
  • 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 ...
  • Portal is free!! until May 24th..[url]http://store.steampowered.com/freeportal/[/url]
  • Frank Sidebottom for No.1 !! Only have until 1.30pm Saturday !!I've only just noticed that the "Make Frank No.1" group have been aiming to make him No.1 in the charts this week! Apparently they need as many peopl…
  • 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…

Related Searches

  • play drum loop
  • play 128 drum loop
  • nested loop
  • xor c loop
  • ld a b xor c loop
  • ld a b or c loop
  • until
  • 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
  • time loop
  • stuck in a time loop

Copyright © 2024 World of Spectrum