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.003s
<1234567…34>
  • RET cc QuestionHi, I'm trying to emulate the RET cc instruction at the moment but I'm not sure what the following 2 conditions are: RET P RET M When are these co…

    Hi,

    I'm trying to emulate the RET cc instruction at the moment but I'm not sure what the following 2 conditions are:

    RET P
    RET M

    When are these conditions true?

    MadDoc,
    MadDoc MadDoc July 2008 Emulators
  • RET MHello. I?ve seen in the Joffa game SAUCER a kind of loop like this LOOP LD A,R RET M JR LOOP I do know what this loop mea…

    ... /> LOOP LD A,R
    RET M
    JR LOOP
    climacus climacus July 2012 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 …

    ... HL
    DJNZ LOOP
    RET

    B)
    ...
    JR NZ,LOOP
    RET

    C)
    ...
    JP NZ,LOOP
    RET

    D)
    ... HL
    DJNZ LOOP
    RET

    Q4) And ... /> HALT
    EI
    RET

    Q7) Why ...
    Dr BEEP Dr BEEP July 2002 Games
  • Yet another TR-DOS questionI have yet another TR-DOS problem. I am using "LD C, command; CALL #3D13" to call the system functions. The problem is that TR-DOS automatically enab…

    ... to something harmless like a RET, because TR-DOS doesn't ...
    GOC GOC November 2003 Development
  • AssemblageCan any of you marvellous programmers out there recommend a Speccy assembler that even a complete dunce could use? At the risk of sounding thick, as…

    ... />
    ld bc, 99
    ret

    Is actually (in ...
    The Mighty Dopethrone The Mighty Dopethrone November 2003 Sinclair Miscellaneous
  • Tranz Am with swedish instructionsAnyone interested? I have Tranz Am from Ultimate with swedish instructions. The game itself and hte front of the inlay are both english but the back …

    ... is in swedish.

    "?ret ?r 3472 och allt som ...
    Yanek Yanek April 2004 Sales
  • 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…

    ... c
    dec bc
    ret z
    ld a,(de ...
    Steve(spt) Steve(spt) April 2004 Development
  • 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…

    ... (vsyncst),A
    DI
    ret

    vsyncst .word [1code ...
    robpearmain robpearmain May 2004 Development
  • How to get Grahics to wrap vertically around the screen?I am using the following code to draw an image to the screen. First I use HL to contain ROW and COLUM I then call the MapScreenFunction As I draw m…

    ... /> ok1: and 7
    ret nz
    ld a,h ... br /> and 224
    ret nz
    ld a,h ...
    ld h,a
    ret


    ; ... br /> pop de
    ret
    Superdraw: ld b,16 ... /> looper: djnz prtiv1
    ret
    [/code]
    robpearmain robpearmain May 2004 Development
  • FAST PIXEL DRAWINGI'm looking for the fastest way to put a pixel to the screen (on spectrum ofcoz:). Here is my own procedure (written in PASMO). But I don't how do it…

    ... /> ld (hl),a

    ret

    bits db 128 ...
    zxmaniac128 zxmaniac128 May 2004 Development
  • IM 2 interrupts and smooth scrolling - easy peasy!Okay, been fiddling around with IM 2 and have actually mastered (I think) how to use IM 2! Now I run my game Ragnar Revival in IM2 and use HALT to sy…

    ... /> im 2
    ei
    ret
    [/code]

    [ This ...
    ekoman ekoman July 2004 Development
  • InterruptsA small piece intended for the FAQ. Comments, corrections, additions welcome. Notably: * How long does the 48K ULA hold /INT low? * What happens i…

    ... is just a simple EI/RET and the instruction before the ... at this point. However, the RET will finish 27 tstates after ... in addition to the normal RET actions.

    When an ...
    Philip Kendall Philip Kendall July 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 …

    ... working with a simple EI,RET interrupt function, so that HALT ...
    ekoman ekoman July 2004 Development
  • 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 …

    ...
    jp nz,loop
    ret

    Goes round for ...
    dmsmith dmsmith August 2004 Sinclair Miscellaneous
  • Pixel setting / general speccy codingi just started doing some cross-coding with the [url="http://www.bigfatpanda.fsnet.co.uk/z80.html"]Z80 SNA assembler[/url] and an emulator, and this …

    ...
    ld (hl), a
    ret

    pixelmsk:
    defb ...
    Lambchop Lambchop August 2004 Development
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ... HL
    DEC C
    RET Z
    CALL DRAWCH1 ;returns ... H
    AND 7
    RET NZ
    LD A,L ... /> LD L,A
    RET C
    LD A,H ...
    moroz1999 moroz1999 August 2004 Development
  • Calculate screenaddressWho knows where the topic about the fastest screenaddressroutine is? I can't find it in a search.. The fastest routine was to load a large table of …

    ...
    LD L,A
    RET ; HL holds screenaddress

    Dr BEEP Dr BEEP August 2004 Development
  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…

    ... br /> JR MainLoop

    RET


    MoveSprite:< ... /> CP 0
    RET Z ; Leave right/left ... CALL PChar


    RET
    ; WCHAR

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

    ... /> CP 0
    RET Z ; Leave right/left ... than right!!!

    RET

    ; MOVE ... CALL PChar


    RET
    ; WCHAR

    ; ...
    robpearmain robpearmain August 2004 Development
  • Smooth Color Masked Sprites using fast page flip on 48kHere is a quick demo of using char based sprites using the Page flip method: a) Background is copied to buffer b) Sprites drawn on buffer c) Buffer …

    ... />
    JP MAIN

    RET

    ;PREPARES INTERRUPT HANDLING ... IM2
    EI

    RET

    deoff:
    ... INC DE


    RET

    XPOS: DEFB 0 ...
    robpearmain robpearmain September 2004 Development
  • 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 …

    ... />
    JP MAIN

    RET


    ;PREPARES INTERRUPT ... IM2
    EI

    RET

    deoff:
    ... /> INC DE


    RET



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

    ...
    JP NZ, MLOOP
    RET



    SCROLL ... pointer

    EI
    RET

    SCRPOS DEFW 0 ... /> POP IY
    EI
    RET
    [/code]

    [ This ...
    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…

    ...
    JP NZ,LOOP1
    RET

    ORG 55040
    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…

    ... NZ,PRTTILELOOPY
    EI
    RET


    PRINTTILE LD ...
    TILERENDEREND DJNZ TILERENDERLP
    RET

    ORG 51200 ; MUST ...
    Mr Millside Mr Millside February 2005 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ...
    INC D
    RET NZ
    LD H,A ... /> JP NC,KLOOP
    RET NZ
    LD D,A ... ,NXHALF
    CP A
    RET[/code]

    [ This ...
    Mr Millside Mr Millside July 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 …

    ...
    ld (50000),e
    ret

    notes from what ...
    mestor mestor August 2005 Development
  • Assembler Interest?Any interest in an assembler supporting ACS's UV? I've built an assembler that: supports UV's syntax. has more correct parsing. Microdrive based…

    ... quirks are handled correctly("ret z" not "ret z,")

    Some ...
    JHutcheson JHutcheson August 2005 Announcements
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... /> rst 16 ; with print
    ret ; Back to BASIC

    pop hl
    ret ; A holds RND value
    Dr BEEP Dr BEEP August 2005 Development
  • MC TipPlace your MC tip here: Here is my first: When using alternate registers (EXX) the HL register must not be affected on return to BASIC. Also the IY…

    ... hl,(savehl)
    exx
    ret
    savehl defw 0
    Dr BEEP Dr BEEP November 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 />
    ok:

    ret

    copy2store:
    ld ... />


    ret

    spstore: defw 0 ... ld sp,(spstore)

    ret


    drawblock ...
    robpearmain robpearmain November 2005 Development
<1234567…34>

Latest Posts

  • 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
  • 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
ret 3.4K 9.2K

Related Threads

  • RET cc QuestionHi,<br /> <br /> I'm trying to emulate the RET cc instruction at the moment but I'm not sure what the following 2 conditions are:<br /> <br /> RET P<…
  • RET MHello.<br /> <br /> I?ve seen in the Joffa game SAUCER a kind of loop like this<br /> <br /> <br /> LOOP LD A,R<br /> RET M<br /> …

Related Searches

  • ret

Copyright © 2024 World of Spectrum