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.181s
<1234567…34>
  • 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
  • Short Z80 QuizQ1) Which program gives different result ? A) XOR A ADD A,A B) XOR A ADC A,A C) SCF ADD A,A D) SCF ADC A,A Q2) What is the equivalent of NEG …

    ... /> LOOP: LD (HL),C
    INC HL
    DEC BC
    LD A,B
    OR C
    JR NZ,LOOP
    RET

    C)
    LD B,10 ...
    LD ...
    Dr BEEP Dr BEEP July 2002 Games
  • RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM : ;print a long string "help me" start .org 32000 ld a,2 call 5633…

    ... start .org 32000
    ld a,2
    call 5633
    ld de,data
    ld bc,7
    loop ld a,b
    or c
    dec bc
    ret z
    ld a,(de ... )
    inc de
    RST 16
    jr loop ...
    Steve(spt) Steve(spt) April 2004 Development
  • Fastest way to write something to screen$Hi, I just got pasmo.exe and start playing with attr scrolling, well, not scrolling, just write different values to a block and see if I can introdu…

    ... /> LOCAL LOOP

    LD (OLDSP),SP
    LD SP,base ... LD E,val2
    LOOP
    PUSH DE
    DEC BC
    LD A,B ...
    OR C
    JR NZ,LOOP
    LD SP,(OLDSP)< ...
    AE.Vasconcelos AE.Vasconcelos April 2005 Development
  • 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 …

    ... hl
    qsloop ld h,b
    ld l,c
    or a
    sbc hl ... ,de
    jp c,next1 ;loop ...
    Arjun Arjun January 2006 Development
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... br /> ; The games main loop ;
    ;---------------------------------------------------------------;
    ... bc

    ld a,b
    or c
    jr nz, DrawLine< ...
    HexDump HexDump April 2007 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…

    ... /> - draw our 'road' by using a loop to create two vertical stripes ... code's equivalent of a FOR-NEXT loop, djnz.
    djnz stands ... we want to loop.
    Insert line 7, 'ld b,24 ;print road ...
    dec bc
    ld a,b
    or c
    jr nz, wait
    bigjon bigjon November 2009 Development
  • Help needed with simple MCode routineI'm trying to code a routine to clear the screen and I can't figure out why it's not working: ld hl,16384 ld bc, 6144 loop:ld (hl),0 inc hl dec bc l…

    ... :

    ld hl,16384
    ld bc, 6144
    loop:ld (hl),0 ...
    inc hl
    dec bc
    ld a,b
    or c ...
    jr nz,loop
    ret

    It only clears about a third ...
    Rebelstar without a cause Rebelstar without a cause November 2010 Development
  • Fast way to clear the screen ?So I was wondering fastest way to clear the screen. I've tried this and this works but is it better than CLS ? LD HL,16384 LD BC, 6144 Loop…

    ... , 6144

    Loop:
    LD A,0
    LD (HL),A
    INC HL ...
    DEC BC
    LD A,B
    OR C
    JR NZ, Loop
    RET
    ivanb303 ivanb303 December 2016 Assembler
  • 42 column text, Sinclair Print Utilities, etcI'm currently developing the next of the ZXIF text adventures - "43 Minutes" and, as a side issue, I'm really interested in 42 column text for this g…

    ... .

    PRINT USR START,A$

    Where at START ... and execute this loop

    [code]
    LOOP: LD A,(DE)
    do ... /> DEC BC
    LD A,B
    OR C
    JR NZ,LOOP
    RET
    Dr BEEP Dr BEEP March 2004 Development
  • Amiga MOD on ZX SpectrumWell, there were several question about music matters on WOS lats times, so I decided to describe some of my 'adventures', heheh, with MOD playing on…

    ... /> I've written a complete inner loop below using a 4K lookup table ... br /> ptr:
    ld bc,ptr
    ld a,b
    or c
    jr z ... br /> ; l' = $0a
    ; h' = loop count for 1/50s to ... apply effects
    ; h' = loop count for 1/50s to ...
    Alcoholics Anonymous Alcoholics Anonymous April 2004 Sinclair Miscellaneous
  • Does Screen Flipping work on a 48k Spectrum?On the other post it showed some basic code to flip the screen on a +3. Does it work on a 48k Spectrum. Can anyone show me the machine code to: Se…

    ... of screen
    LOOP LD A,(DE) 'fetch value ... LD A,B 'test for end of screen
    OR C
    JR NZ,LOOP ...
    RET
    [/code]

    The test
    LD A,B
    OR C ...
    JR NZ,LOOP
    ...
    Dr BEEP Dr BEEP May 2004 Development
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... ld (hl),a
    inc hl
    dec bc
    ld a,b
    or c< ... /> dec bc
    ld a,b
    or c
    jp nz, cs1 ...
    _SpriteLoop: DEFW 0 ; sprite loop size.

    ; ---------------------------------------------------------------
    ...
    robpearmain robpearmain 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] …

    ... /> dec bc
    ld a, b
    or c
    jp nz, loop

    can ... /> dec bc
    inc b
    djnz loop
    [/code]
    ..nice ...
    Dr BEEP Dr BEEP February 2005 Development
  • Fastest way to write something to screen$Hi, I just got pasmo.exe and start playing with attr scrolling, well, not scrolling, just write different values to a block and see if I can introdu…

    ... way to fill a block of memory. However, the loop construct in ... your program ( DEC BC / LD A,B / OR C / JR NZ ... /> You should try unrolling the loop to have more than one ... PUSH in each iteration - or, if you have enough memory ...
    gasman gasman April 2005 Development
  • Fastest way to write something to screen$Hi, I just got pasmo.exe and start playing with attr scrolling, well, not scrolling, just write different values to a block and see if I can introdu…

    ... way to fill a block of memory. However, the loop construct in ... your program ( DEC BC / LD A,B / OR C / JR NZ ... thinking about that loop control... Would it be a faster way to ... all the pushes without any loop, and a ret at the end ...
    AE.Vasconcelos AE.Vasconcelos April 2005 Development
  • Suggestion for EmulatorsHi, Could I make a suggestion as to a feature to be included in future emulator updates. Not so much an emulator feature, rather a feature of the b…

    ... is the 1st loop
    ld a, b
    or c
    jr nz, .loop ; this goes ... is the 2nd loop
    ld a, b
    or c
    jr nz, .loop ; this goes ...
    Marko Marko July 2005 Emulators
  • 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 …

    ... hl
    qsloop ld h,b
    ld l,c
    or a
    sbc hl ... ,de
    jp c,next1 ;loop ...
    Metalbrain Metalbrain January 2006 Development
  • Assistance with IM2 routineI subsequently got a working IM2 routine.

    [code]
    loop: dec bc
    ld a, b
    or c
    jp nz, loop
    [/code ... of time whether you jump or not, making your timing calculations ...
    icabod icabod March 2006 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ... ]
    ; and moddified to be a loop
    ;The arrow comments show ... what lines I added or commented out from the original ...
    jp jp June 2006 Development
  • Loading schemes18 years ago I hated loading schemes like Alcatraz and Speedlock because they were a b*tch to copy and became unreliable when the tape got older. Now…

    ... /> ld hl,$3d00
    ld bc,$300
    loop ld a,(hl)
    rra
    or ... /> dec bc
    ld a,b
    or c
    jp nz,loop
    pop de ...
    Tom-Cat Tom-Cat July 2006 Games
  • Not so BRIGHTOk, on the Spectrum I'm a crayon man so I don't know much about the coding. If I create a graphic in, say, SevenUp or TommyGun and the graphic is not…

    ... ,a
    ld (hl),a
    inc hl
    dec bc
    ld a,b
    or c ...
    jr nz,loop
    ret
    rich_chandler rich_chandler October 2006 Development
  • Not so BRIGHTOk, on the Spectrum I'm a crayon man so I don't know much about the coding. If I create a graphic in, say, SevenUp or TommyGun and the graphic is not…

    ... /> loop: set 6,(hl)
    inc hl
    dec bc
    ld a,b ...
    or c
    jr nz, loop
    ret
    rich_chandler rich_chandler October 2006 Development
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... started in the innermost loop and worked out:

    ld a,b
    or c
    jr nz, DrawLine ... dec d
    ld a,d
    or a
    jr nz,NextPass ...
    Alcoholics Anonymous Alcoholics Anonymous April 2007 Development
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    Most of the code I post here, or worse still on css, doesn't work :-)
    It is best to use

    DEC BC
    LD A,B
    OR C
    JR NZ, LOOP
    Geoff Geoff July 2007 Development
  • 'orange' on a spectrumalways wondered why spectrums could never seem to achieve the colour orange? wasn't one of the default colours, and don't remember seeing anything th…

    ...
    dec bc
    ld a,b
    or c
    jr nz, attrfill0
    loop
    flicker2
    ; Invert bit 3 of paging register
    ld a ... 'q' being pressed- loop back if not
    ld a,(23560)
    cp ...
    Digital Prawn Digital Prawn August 2008 Sinclair Miscellaneous
  • Using INPUT without clearing last two lines of screen?I'm trying to print to the 22nd row of the screen using the ol' print #0 trick. Unfortunately, I require user INPUT which seems to wipe out the botto…

    ... /> dec bc
    ld a, b
    or c
    jr nz, .loop
    [/code]
    a C string):

    [code]
    ld hl, address_of_character_string
    .loop
    ld a, (hl ...
    Winston Winston January 2009 Sinclair Basic
  • Jetpac questionHi all, I just bought a copy of Jetpac off of Ebay and I'm having problems. To start, I'm trying to play it on an issue 2 Speccy with Interface 1, 2 …

    ... Next Address

    LD A,H ; Exit loop if we have wrapped ... />
    LD B,NUMPATTERNS ; Loop for each pattern

    LD A,(ENDSCAN) ; Save ... LD A,B
    OR C
    JR Z,ZeroTotalFailures

    SomeTotalFailures

    LD A ...
    Digital Prawn Digital Prawn January 2009 Games
<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
ld 6.3K 67.3K
a 589.5K 1.7M
b 55.2K 190K
or 193.7K 292.9K
c 20.3K 48.8K
loop 4.8K 8.5K

Related Threads

  • 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…
  • A hundred or so speccy games up on ebay, ending in a few hours or so!Should have put this up last week really! They end today..ie sunday thou.<br /> <br /> Pretty generic stuff but, all starting at 99p.<br /> <br /> If…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • can someone make manic miner in b.a.s.i.c (oh, the horrors!)can someone make manic miner (or it's first level) in b.a.s.i.c . yes i know this is stupid, but i would like to know what would happen! from matthew
  • jet set willy in b.a.s.i.c (oh, even more horrors!!!!!!!!)what about jet set willy in b.a.s.i.c ? is anyone doing that? i think it's a really bad idea, but it's sure is a funny one! oh yes, i do know a littl…
  • ant attack in b.a.s.i.ccan someone make ant attack in b.a.s.i.c . it may be impossible!<br /> from a 14 year old kid.
  • who do you use 1 key b.a.s.i.c?well how do you. is there a web site about it. i do not have the original instruction book.<br /> from a 14 year old kid (named matthew.......)<br />…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • A athlon 3000 32 bit system or a athlon 3000 64 bit systemThey will cost about the same which i was suprised to learn, but which system would you recommend, if i build the 64 bit one, can I still play my 32 …

Related Searches

  • ld a r
  • d a w b
  • ld r a
  • xor c loop
  • ld a b xor c loop
  • play a b c
  • b c bill
  • a m c
  • t a c
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • spectrum 2 a b rgb cables
  • out c a
  • ay out c a
  • screen address c b l
  • ld a 5b5c
  • ld a r counter
  • ld bc 65533 a 254 out c
  • cpi ld a b or c

Copyright © 2024 World of Spectrum