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.001s
<1234567…34>
  • LDIR timings in contended RAM?The 48K Spectrum technical reference page ([URL="http://www.worldofspectrum.org/faq/reference/48kreference.htm"]here[/URL]) describes the detailed ti…

    ... /> My program will have the LDIR instruction in non-contended memory ... to the duration of a LDIR instruction (normally 21T) means ... that when LDIR synchronises with the gaps in ... per byte.

    Using LDIR to scroll the full screen ...
    ajmoss ajmoss June 2010 Development
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ... long time that uses an LDIR instruction to move the screen ...
    mjwilson mjwilson January 2012 Sinclair Miscellaneous
  • Quickest way to fill the attributes using LDIRI'm looking for a small routine to fill the entire attribute area of the memory with a single value, I've used LDIR in the past, but forgotten how to…

    I'm looking for a small routine to fill the entire attribute area of the memory with a single value, I've used LDIR in the past, but forgotten how to do it... :confused:
    daveysludge daveysludge August 2012 Development
  • Addressing mode of LDIR and LDDRWhat addressing mode would the instructions LDIR and LDDR be classed as using? Would I correct in thinking that they're register indirect, as both t…

    What addressing mode would the instructions LDIR and LDDR be classed as using?

    Would I correct in thinking that they're register indirect, as both the source (HL) and destination (DE) registers are pointing into memory?
    cmonkey cmonkey January 2015 Development
  • [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…

    ... relying on ROM calls or LDIR) as a learning exercise. What ... this code is faster than LDIR because that is operating on ...
    ST1 ST1 November 2018 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 …

    Ideally, yes. At 12000 bytes though, sometimes you have to trade off. Unrolling the loop, so you have say 256 LDIs and only looping 27 times will still be much faster than an LDIR.
    AndyC AndyC September 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…

    ... doing multicolour effects - but if LDIR does the job acceptably, I ... B / JP NZ if the unrolling makes the routine too long ... for a relative jump). Without unrolling at all, you can possibly ...
    gasman gasman April 2005 Development
  • writing an emulator-newbie needs helpHi, this is my first post here. I decided to write a minimalistic emulator of ZX Spectrum-no emulation of advanced peripherals, no emulation of sound…

    ... got in them is by unrolling the LDIR. Even worse, the back ...
    kphair kphair August 2011 Emulators
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    ... , so you have to use LDIR for looping anything over 256 ... ], you can do some loop unrolling:


    [code]
    RetroTechie RetroTechie October 2016 Development
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    ... , so you have to use LDIR for looping anything over 256 ... ], you can do some loop unrolling:


    [code]
    rich_chandler rich_chandler October 2016 Development
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    ... , so you have to use LDIR for looping anything over 256 ... ], you can do some loop unrolling:


    [code]
    Dr BEEP Dr BEEP October 2016 Development
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    ... , so you have to use LDIR for looping anything over 256 ... ], you can do some loop unrolling:


    [code]
    rich_chandler rich_chandler October 2016 Development
  • Advice about drawing sprites on spectrum I've coded sprite drawing before and know all the theory about masks from a long time ago (microhobby rules! ;), but since I did it on Amiga with ha…

    ... a hidden screen, and then LDIR to real screen at interrupt ...
    windenNTW windenNTW July 2003 Games
  • 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…

    ...
    ld (hl),229
    ldir

    ld hl,58853 ...
    ekoman ekoman July 2004 Development
  • Z80 core testing ?OK, my z80 core is almost finished (apart from RRD, RLD, and block instructions except LDI,LDIR,LDD,LDDR). I run the 48K rom and hurray, it resets co…

    ... , and block instructions except LDI,LDIR,LDD,LDDR). I run the ...
    GOC GOC July 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 …

    ... [/url]

    Instead of LDIR or multiple LDI's I ...
    LD (HL),%01000111
    LDIR


    MAIN:
    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 …

    ...
    LD BC,1800h
    LDIR

    MAIN:

    robpearmain robpearmain September 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…

    ... the screen. I know that ldir/lddr are slow, but not ...
    AE.Vasconcelos AE.Vasconcelos April 2005 Development
  • Push/Pop methodMachine code question: Could somebody explain, how do we use the stack in assembler to copy data from one place of memory to another? I've heard it i…

    Machine code question:
    Could somebody explain, how do we use the stack in assembler to copy data from one place of memory to another?
    I've heard it is one of quickest methods, faster then e.g using ldir or writing a loop.
    Is it true?
    Ralf Ralf July 2005 Development
  • Old emulators on DOSBOX.Sadly, my Win'98 machine is going loco a bit too often. I've finally decided that I'll have to move everything over to the noisy, underused XP machi…

    ... : :)

    (Z80 V3.02 - LDIR on, all other slowdowns off ...
    Jmk Jmk November 2005 Emulators
  • 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…

    ...
    ld bc,6143
    ldir

    ; Copy from store ...
    robpearmain robpearmain November 2005 Development
  • Pimp my code...Erm, this is just the result of a mental exercise - I wanted to repeatedly display a UDG but decided against using a ROM routine and UDGs! Any sugges…

    ...
    ld (hl),a
    ldir
    pop bc
    djnz ...
    jp jp August 2006 Development
  • Mode 2 Tile Editor SourceA Timex Mode 2 Tile Editor incorporating a byte mirror table. The compiled version is available in the CSSCGC 2008 collection from the WoS archive. …

    ... remaining bytes to clear
    ldir ; wipe screen
    ret ; done ...
    chev chev January 2007 Development
  • Currah MicroSource emulationIt appears to be impossible to emualte the MicroSource in software on the ZX Spectrum SE as hardware polling is required. The following patch is not …

    ... /> ld bc,$4000 ; length
    ldir ; copy

    ; page ... /> ld bc,$2000 ; length
    ldir ; copy

    ; emulate ... /> ld bc,13 ; length
    ldir ; copy

    ; ... /> ld bc,22 ; length
    ldir ; copy

    ; move ...
    chev chev March 2007 Emulators
  • 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…

    ...
    ld bc,6143
    ldir
    ret

    ;---------------------------------------------------------------;< ... of bytes per line
    ldir ;draw line

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

    ... E,1 30 1
    LDIR 237 176
    RET 201 ...
    bobbyjaykid bobbyjaykid July 2007 Development
  • A few questions about machine codeOh no... another noob. I'm giving my first steps in assembler (finally, after 20 years stuck in BASIC). I read a SU article explaining that if I wan…

    ...
    ld bc,40832
    ldir[/CODE]

    I know ...
    zxbruno zxbruno August 2007 Sinclair Miscellaneous
  • Blok*Load on Multiface 128Spinning this off into a new thread to avoid cluttering up the original: [url]http://www.worldofspectrum.org/forums/showthread.php?t=17999&page=7[/u…

    ... (05CE9h),A ;overwrite end of LDIR routine with a RET
    CALL 05CD0h ;execute the LDIR routine then return to us ...
    StuBruise StuBruise October 2007 Sinclair Miscellaneous
  • The direct bus or indirect one... that is the questionThe Ethernet project continues...and I'm in a quandry. So I've managed to implement enough socket library for the W5100 that socket, bind, listen, a…

    ... to copy a buffer, simply LDIR it to wherever it ought ... number of T-states as LDIR.

    I shall ponder ...
    Winston Winston November 2007 Hardware
<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
ldir 1K 1.7K
unrolling 68 78

Related Threads

  • LDIR timings in contended RAM?The 48K Spectrum technical reference page ([URL="http://www.worldofspectrum.org/faq/reference/48kreference.htm"]here[/URL]) describes the detailed ti…
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said:<br /> <br /> [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg use…
  • Quickest way to fill the attributes using LDIRI'm looking for a small routine to fill the entire attribute area of the memory with a single value, I've used LDIR in the past, but forgotten how to…
  • Addressing mode of LDIR and LDDRWhat addressing mode would the instructions LDIR and LDDR be classed as using?<br /> <br /> Would I correct in thinking that they're register indirec…
  • [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…

Related Searches

  • ldir
  • move ldir
  • 128k shadow ldir
  • picture ldir
  • ldir picture
  • ldir picture to shadow
  • ldir and parity
  • ldir or djnz
  • when to use ldir
  • z80 ldir
  • z80 snapshot ldir
  • z80 ldir emulation
  • ldir emulation
  • fusetest ldir
  • ldir failed 0x05
  • ldir interrupt
  • ldir overwrite
  • ldir contended
  • ldir ldi
  • ldir unrolling

Copyright © 2024 World of Spectrum