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.006s
<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 …

    ...
    OR C
    JR NZ,LOOP
    RET

    DEC B
    JP NZ,LOOP
    RET

    Dr BEEP Dr BEEP July 2002 Games
  • Mysterious bit of codeHi everyone, I found the follow piece of code in a game and was wondering what it does. ld bc,40ffh ld e,40h loop ld a,r …

    ... ,(c)
    cp e
    jp nz,loop
    ret

    dmsmith dmsmith August 2004 Sinclair Miscellaneous
  • Smooth Masked Sprites using fast page flip on 48k Part 2Ok, After all the suggestions in Part 1, which were all excellent (Thankyou), I opted on the following: I have 2 x 6k Offscreen areas (Yes, that's …

    ... (COUNT+1),A

    JP NZ,go


    ... (COUNT2+1),A

    JP NZ,goa


    ... 1),A

    JP NZ,gob

    restoreb ... />
    ORG 0FDFDH
    JP MAINLOOP


    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 ;increase scroll position
    JP NZ, MLOOP
    RET
    ... />
    DEC A
    JP NZ,CLOOPA


    ... first column of this
    JP NZ, FIVECOLS ;one.

    JP NZ, ROWLOOP ;jump back to do ...
    dmsmith dmsmith September 2004 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... DE
    DEC C
    JP NZ,LOOP1
    RET

    Mr Millside Mr Millside February 2005 Development
  • Anyone help re-factoring a tile functionI had some excellent feedback for re-factoring my function that displays the colour for my screen tiles. Can anyone offer some help to improve the fu…

    ... CP 6
    JP NZ,NXTROW1
    LD ... NXTROW3 DEC C
    JP NZ,PRTTILELOOPY
    EI
    JP NZ,TILERENDEREND
    LD ...
    Mr Millside Mr Millside February 2005 Development
  • Optimisation Needed! Is this the Fastest way to copy bytes from screen and back again?I have the screen address (say 0,0 i.e 16384) I want to copy 4 bytes wide by 32 bytes high from the screen to an area of memory. I then want to cop…

    ... br /> AND 7
    JP NZ,C2S_2
    LD A,L ... h
    AND 7
    JP NZ,C2SC_2

    LD ...
    dec ixh
    jr nz,C2SC_1


    ... br /> AND 7
    JP NZ,DRAWBEG
    LD A,L ...
    robpearmain robpearmain November 2005 Development
  • Urgent Help needed to fix this: calling all machine code gurusI am currently trying to write tutorials on the amazing Orfeus music composer by Proxima which allows you to do multi channel music through the beepe…

    ...
    or c
    jr nz,l88c9 ; (-13)
    ld ( ... )
    l89d8: dec e
    jp nz,l894f
    l89dc:
    ld ... /> l8b5b: dec h
    jr nz,l8b72 ; (20)
    xor #10 ... /> l8b72: dec e
    jr nz,l8b5b ; (-26)
    l8b75: djnz ...
    robpearmain robpearmain November 2006 Development
  • Rainbow Generator for 48K Spectrum using PUSHThis is what I came up with from [B]gasman[/B]'s suggestions. It's stable in ZXSpin and ZX32 simulating a 48K Speccy. Anyone like to try it on the …

    ... that was called.
    JR NZ,interrupts_off

    ... 04t => 022t
    jp nz,interrupt_delay_loop ;10t => 032t per ... still works in BASIC):
    jp 56

    ... interrupt routine:
    sample_jump
    jp interrupt_main


    joefish joefish May 2009 Development
  • Z80 'EXX' ConfusionI was working on a little Z80 routine last evening, and, having run out of registers, resorted to sticking one of the values into a memory location a…

    ... ,L
    CP 0
    JP NZ,LOOP

    EXX
    RoseCotton RoseCotton November 2009 Development
  • Using the stack to copy memory blocksA [b]PUSH[/b] and a [b]POP[/b] instruction together take less time than two [b]LDI[/b], so long [b]POP/PUSH[/b] sequences are sometimes used to copy …

    ... .
    cp h ; 4
    jp nz, start ; 10

    ei ... = 16*8
    endm
    jp po, loop ; 10

    ajmoss ajmoss August 2010 Development
  • Machine code[CODE] OPCODE HEX ADD LD A,05 3E05 F000 LD B,00 0600 F002 INC B 04 LOOP F004 CP A,B B8 F005 JP NZ,LOOP C2F003 F006 LD B,00 0600 F009 LD …

    ... A,B B8 F005
    JP NZ,LOOP C2F003 F006
    LD ...
    Robin Robin September 2010 Development
  • Another machine code problem, sorry[CODE] OPCODE HEX ADD LD A,00 3E00 F000 PUSH AF F5 F002 LD B,05 0605 F003 LD C,06 0E06 LOOP F005 POP AF F1 ADD A,C 80 DEC B 05 …

    ... /> CP A,0 FE00
    JP NZ(LOOP) C205F0
    POP AF ...
    Robin Robin September 2010 Sinclair Basic
  • A fast DRAW routineI was investigating how to speed up the line drawing for the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=20225"]BASIC compiler[/URL]…

    ... />
    __DRAW_ERROR:
    jp __OUT_OF_SCREEN_ERR

    DRAW ... ; and (hl)
    jp __DRAW_START

    ... br /> cp d
    jp nz, __DRAW3
    ld (COORDS ... /> cp d
    jp nz, __DRAW5
    ld (COORDS ...
    boriel boriel December 2010 Development
  • CrusoePlease add the following "known errors" description for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0002872"]Crusoe[/URL]: [QUOTE]Bu…

    ... 82BB ; jump correction
    JP NZ, $82E2 ; 82BB C2 E2 ... ; jump correction
    JP NZ, $82CD ; 8401 C2 CD ... ; jump correction
    JP NZ, $87CC ; 970C C2 CC ...
    Einar Saukas Einar Saukas June 2011 Infoseek database
  • Nemesis the Warlock (BUGFIX)This is a bugfix for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0003387"]Nemesis the Warlock[/URL], please add the following "known …

    ... /> 7802: or a
    7803: jp z,$7825
    7806: ld ... : ld ($caf4),hl
    780c: jp $7825
    [/CODE]
    The ... ; POKE 30722,61
    7803: jp nz,$7825 ; POKE 30723,194
    780c: jp $7825
    [/CODE]
    [/LIST ...
    Einar Saukas Einar Saukas June 2011 Infoseek database
  • Kiwi OS for z80 computerHi everyone, Nearly made my z80 computer with 2K ROM 32K RAM. It has an OS im still writing called Kiwi (apple, blackberry, you get the idea ;D) he…

    ... DEC B ;CHARACTER RETRIVED
    JP NZ, PRINT_LOOP ;KEEP LOOPING UNTIL B ... ENTER KEY (1)
    JP NZ, MENU_LOOP ;RESTART THE SCAN IF ... PART OF 8000)
    JP NZ, SAVE_LOOP ;LOOP AGAIN IF NOT ... HIGHER PART OF 8000)
    JP NZ, SAVE_LOOP ;NOT EQUAL? THEN ...
    Robin Robin August 2011 Announcements
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ...
    cpdr ;check code
    jp nz,ERRORA ;return on error
    jr nz,RESSET
    ld b,c ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • Invalid combination of operands and opcodesIt says the error in the title, why is this?? [CODE] ORG 0000 LD HL, 63000 ;LOAD HL WITH STACK LOCATION LD SP, HL ;SET STACK POINTER TO HL LD A, …

    ... THE ENTER KEYBOARD PRESSED
    JP NZ, EXIT_MENU_FUNCTION
    LD A ...
    CP 3
    JP NZ, COMPARE_SAVE ;IF NOT 3, NEXT ...
    CP 4
    JP NZ, COMPARE_LOAD ;IF NOT 2, NEXT ... DEC B ;CHARACTER RETRIVED
    JP NZ, PRINT_LOOP ;KEEP LOOPING UNTIL B ...
    Robin Robin December 2011 Sinclair Miscellaneous
  • Inefficient code in ROM, from ram-check to RAM-DONEHere is the inefficient code: [CODE] ;; ram-check L11DA: LD H,D ; Transfer the top value to the HL register LD L,E …

    ... reached ROM - $3F ?
    JR NZ,L11DC ; Back to RAM-FILL ... we reached ROM - $3F ?
    JP NZ,L11DA ; Back to RAM-FILL ... (HL) ; decrement to zero.
    JP Z,L11E2 ; back to RAM ...
    antoniovillena antoniovillena April 2012 Development
  • syntax checking helpcan anyone help with syntax checking, its been a while since I did any basic extension coding this routine always gives :C nonsense in basic error …

    ... FILENAME
    CP 175
    JP NZ,ERROR ;NOT 'CODE'
    RST ...
    madvanman madvanman October 2012 Development
  • Works in Fuse & SpecEmu, not ZXSpinI decided that I wanted to change the scroll routine which I was using for compiling the Trailblazer maps, as I'd just copied it out of Andrew Hewson…

    ... dec a
    jp nz,SCROLL1
    dec ix ... dec a
    jp nz,SCROLL0
    pop iy ... $ff
    jr nz,PRINT2
    pop af ... dec a
    jr nz,PATLOOP
    ret
    Battle Bunny Battle Bunny June 2013 Emulators
  • z88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…

    ... A
    CP 0
    JP NZ,writeagain
    #endasm
    while ... A
    CP 0
    JP NZ,writeagain

    org 51400 ...
    slenkar slenkar October 2013 Development
  • Venturespeak Helplooking at the code from ZX Computing, October, November & December 1986. How do I make the code do more then 3 letters say 5. and could it be made …

    ... CP 000
    60148 C2EBEA JP NZ,SCAN
    60151 CD26EB CALL ... CP 000
    60215 C284EA JP NZ,CONT
    60218 CDE0EB CALL ... CP 000
    60288 C278EA JP NZ,WAIT
    60291 CDE2EA CALL ...
    ardentcrest ardentcrest February 2014 Development
  • Scrolling Bi-Colour Engine for 4-Player GamesJust putting this code up for people to have a look at. Far from finished. Should simply compile and run a bit of a demo. Only good for 128K and +…

    ... instructions to throw interrupts
    jp never_end


    ;Draw ... af
    dec a
    jp nz,draw_char_frame_loop

    ;Bottom of ... hl ;retrieve data address
    jp print_char_hl_de ;draw character

    joefish joefish March 2014 Development
  • Basic Screen Shadow QuestionHello, I've been porting a game to the Spectrum from another platform. So far so good and I have per pixel screen scrolling working really nicely …

    ... ,d
    or e
    jp nz, _loop
    ret

    or e
    jp nz, _loop
    ret[/code]
    pointblnk pointblnk August 2016 Development
  • Code optimisation! 16bit number to 5 digit stringJust for interest this one, any thoughts on how to make this as fast as possible? Little optimisations to this routine or a complete reimagining? …

    ... b ;overclocked beyond 9?
    jp c,cont
    ld (hl ... digit
    dec l
    jp lp
    cont: ld l ... ,d
    or e
    jp nz,lp
    ret
    ;
    R-Tape R-Tape December 2016 Development
  • Interupt service routinehas anyone set up a interupt service routing with pasmo? this one I tried resets the speccy EDIt- I placed the code after the END directive, I fi…

    ... ,#255
    cp 0
    JP NZ,Labelif2
    ld a,1 ... /> Labelif2
    cp 0
    JP Z,Labelif3
    ld a ... (hl),a
    Labelif3
    jp INFINITELOOPLABEL1
    org 51400
    slenkar slenkar April 2017 Development
  • Using BASIC from Machine CodeHi Folks, Came across a very interesting article by Toni Baker in Your Spectrum: http://www.users.globalnet.co.uk/~jg27paw4/yr11/yr11_66.htm …

    ... ,(23610)
    CP 255
    JP NZ,4867
    RET

    Paddy Coleman Paddy Coleman August 2017 Development
<1234567…34>

Latest Posts

  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade 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
  • 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

HitBox

Word Docs Hits
jp 4.7K 8.4K
nz 2.2K 5.2K

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…
  • NZ earthquake! NZ-WoSsers ok?Just heard about the terrible earthquake that hit New Zealand.<br /> <br /> I hope that any NZ-WoSsers are ok, my thoughts are with you guys.<br /> <…
  • BONG! 02:00 AM Auckland, NZ...Has anybody heard of the musician "Kevin Ayreles(?)" before......?
  • happy birthday jpyup<br /> <br /> happy birthday
  • Happy Burfday jp!Happy Burfday!<br /> <br /> Drink Beer (your avatar implies you may already be ;))<br /> <br /> Have a Gudden!
  • Happy Birthday JPHave a pleasing old time.
  • Happy Birthday jphope it's a good 'un
  • Happy Birthday JP!Happy Birthday JP!<br /> <br /> (Though taking the time difference into account it may no longer be your birthday)<br /> <br /> Happy hacking all the…
  • JP (HL) confusionokay.... JP nn will jump to memory address nn.<br /> JP (HL) ,I assumed would read the contents of memory address HL and jump to the location<br /> …
  • Happy birthday jp!Hope you've had a great day! :)

Related Searches

  • jp peter
  • fast jp table
  • jp
  • jp impossible mission
  • jp impossible mission tweak
  • tweak jp
  • head over heels jp
  • bleepload jp
  • jp speedlock
  • alkatraz jp
  • skate crazy jp
  • king valley jp
  • maketzx jp
  • jp maketzx
  • jp dos
  • jp alkatraz
  • jp hl
  • jp format
  • interface version jp
  • ultimate 3 underwurdle jp

Copyright © 2024 World of Spectrum