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.040s
<1234567…34>
  • [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…

    ... without relying on ROM calls or LDIR) as a learning exercise ... code is faster than LDIR because that is ... previous attributes address.
    djnz cls_attributes_loop ; Keep looping until ... previous screen address.
    djnz cls_screen_loop ; Keep looping ...
    ST1 ST1 November 2018 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 …

    ...
    Instead of LDIR or multiple LDI's I have ...
    INC HL
    DJNZ loopc

    restorec ... ; REPEATE 253 TIMES
    DJNZ PP1

    LD ... br /> INC HL
    DJNZ loopb

    ...
    robpearmain robpearmain September 2004 Development
  • High score table routineI wrote this general purpose high score table routine. It stores 5 scores and displays them alongside the player names, which are 8 characters long. …

    ... next character

    DJNZ CICLO_1 ; repeat until B = ... s coordinates and attributes
    DJNZ LOOP_2

    ... LD BC,8
    LDIR
    OR A ; do we have ... LD BC,8
    LDIR
    OR A
    RET Z ...
    Alessandro Grussu Alessandro Grussu July 2017 Assembler
  • 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
  • Tinkering with DMASo, some afternoon tinkering... [img]http://photo.alioth.net/tmp/dma_small.jpg[/img] The purpose of this all is to see what's possible using the Xi…

    ... />
    A better comparison is LDIR which is something like 21 ... be modifying registers like LDI/LDIR or PUSH.

    The same ...
    Winston Winston November 2014 Hardware
  • 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 …

    ... offset for things like JR or DJNZ instructions.

    Really, really ...
    AndyC AndyC September 2004 Development
  • Background image with SP1 and Z88DKWhat is the prefered way to place an entire (or very large) image in the background when using SP1? Should I convert it to a long (32*24=768 ) list o…

    ... large (256 by 192 pixels or something like that) picture I ... the screen$ yourself with an LDIR (or better, uncompress it into the ... a compression program like MegaLZ or the one that comes with ... to supply background instead of or in combination with tiles. Doing ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Ways to use double buffering in basicI was meddling with woody's print stream code where you can print characters at any pixel location on screen. I was playing with 12 sprites, very ann…

    ... to the machine code instruction LDIR but treats addresses, if they ... probably six or seven times slower than a regular LDIR because of ... 16k and does a regular LDIR (or equiv) into/from the screen ...
    Alcoholics Anonymous Alcoholics Anonymous November 2006 Sinclair Basic
  • New protection systemsAs a follow-up to [URL="http://www.worldofspectrum.org/forums/showthread.php?t=14311&page=2"]this[/URL] thread regarding relatively new protection sy…

    ... can't just remove the LDIR as it would affect the ... /> However I will mention that LDIR (or LDDR) coupled with the R ... calculator get the val or R entering the LDIr then val (2 ...
    Kilby Kilby July 2007 Development
  • Z80 Developer ConsoleHi, This is a project I have meaning to do for ages, recently had a kid, had some time off work (as a software developer) and surprisingly had a bit…

    ... is that when a JR or DJNZ is entered, it highlights where ...
    carlinski carlinski August 2007 Development
  • [BASin] Bug report and question[B]1. Bug report:[/B] BASIC Editor behavior I'm using a variable to store the contents of the BC register. But the BASIC editor works strangely. I t…

    ... a parameter to a JR or DJNZ op so I wouldn't ... some ops (JR, JR cc, DJNZ) accept a relative parameter and ...
    BloodBaz BloodBaz January 2009 Emulators
  • Please test my Manic Miner remake!Thanks to everyone who downloaded my sneak preview of Manic Miner Turbo. Thanks especially to na_th_an who is the only person so far to give feedback…

    I still use LDIR ;) Or rather I use REPT and ...
    Paradigm Shifter Paradigm Shifter February 2010 Games
  • Please test my Manic Miner remake!Thanks to everyone who downloaded my sneak preview of Manic Miner Turbo. Thanks especially to na_th_an who is the only person so far to give feedback…

    ... Shifter;425196]I still use LDIR ;) Or rather I use REPT and ... 's is much better than LDIR (Green Beret uses unrolled LDI ... must be close to lapping or even over-lapping a frame ...
    frobush frobush February 2010 Games
  • Sprite MaskingI was looking at the sprites in some games, and noticed they have sprite followed by mask. Usually a row at a time (so the mask is sort of interleave…

    ... block load instructions (ldi, ldd, ldir or lddr) unless you have a ...
    ajmoss ajmoss June 2010 Development
  • Coming soon: Apulija-13My new Spectrum game, [B]Apulija-13[/B], is almost ready to be released. It has been authored with Jonathan Cauldwell's Arcade Game Designer 3.2 for …

    ... Squad for the overall design, or Xecutor for the design of ... how something like PUSH, POP or DJNZ translates into them :)
    Alessandro Grussu Alessandro Grussu December 2012 Announcements
  • Coming soon: Apulija-13My new Spectrum game, [B]Apulija-13[/B], is almost ready to be released. It has been authored with Jonathan Cauldwell's Arcade Game Designer 3.2 for …

    ... how something like PUSH, POP or DJNZ translates into them :)[/QUOTE]
    Turrican Turrican December 2012 Announcements
  • Coming soon: Apulija-13My new Spectrum game, [B]Apulija-13[/B], is almost ready to be released. It has been authored with Jonathan Cauldwell's Arcade Game Designer 3.2 for …

    ... how something like PUSH, POP or DJNZ translates into them :)[/QUOTE]
    DJNZ. It took me 27 years ...
    snigfarp snigfarp December 2012 Announcements
  • SpeedLockI'm aware that there are seven (7) - yes, SEVEN!! - different iterations of the SpeedLock loader. I've loaded games from all 7 types, one by one, and…

    ... versions did not do an LDIR or similar to get the screen ...
    spider spider February 2013 Games
  • Is there an emulator that can "autosnapshot" after loading a tape?The reason i'm asking is that my everyday speccy is a grey +2 with a DivIDE 2k11. Some TAP files simply won't work because of rom checks and other in…

    ... the screen to a file, or grab a .SCR of the ... counter to just before the LDIR or LDDR instruction that is clearing ...
    stephenw32768 stephenw32768 August 2013 Emulators
  • Change JPs by JRsIs there any (easy) way to replace all long jumps with relative ones in assembler code? Of course, I can replace all in text editor, and then place …

    ... use the "-j" option (or the pseudo-op "jrpromote"). Then ... you can always use "JR" (or DJNZ) and it will automatically convert ... them to "JP" (or DEC B; JP NZ) instructions ... /> Alternatively you can use "-J" (or "jperror") which will point out ...
    gp2000 gp2000 September 2016 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…

    ... methods are the same here - LDIR or series of PUSH.

    Ralf Ralf December 2016 Assembler
  • Whats the smallest amount of time to precise emulate a Spectrum?Whats the smallest amount of time to completely emulate a Spectrum? Maybe the ULAs timings as mentioned here: [url="https://opencores.org/projects…

    ... a time, or one step of an instruction (example: LDIR), or a pixel ... update, or a sound wave by ... the beeper, or 1 tick of the z80 ... , or 1 bit of tape. There ...
    Timmy Timmy June 2021 Emulators
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

    ... 512 by 128 pixels, or 64 bytes per line stored ... FOR 32 CHARS
    LDIR ; DO A LINE OF ... RETRIEVE THE LINE COUNTER
    DJNZ LOOP2 ; DECREMENT THE LINE ... after popping BC the DJNZ doesn't decrement it ... the reason behind the DJNZ problem, but also if ...
    mulder mulder January 2016 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:

    POP BC
    DJNZ lp1


    ; Check ... ,(DE) ; Get Graphic
    OR (HL) ; OR on top
    LD (HL ...
    robpearmain robpearmain September 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
  • 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…

    ... recv and close work more or less as a subset of ... they should work (modulo one or two bugs, and still ... in and out of registers or buffers.

    Bus ... a register, or to copy a buffer, simply LDIR it to ... number of T-states as LDIR.

    I shall ...
    Winston Winston November 2007 Hardware
  • So... you want to format your 3.5" as 720K eh?Well, i've been trying to get hold of an application to make proper use of my 3.5" +3 floppy disks but i haven't been able to find any. I stumbled up…

    ... very interested in releasing it or the source code, so... ... br /> INC IX
    DJNZ FOR3 ; And keep looping until ... of 16 bytes
    LDIR ; Transfer it to the ... 65 (0 for A or 1 for B)
    ...
    NaMcO NaMcO December 2008 Development
  • 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…

    ... are either residing in, or reading/writing, contended RAM ... program will have the LDIR instruction in non-contended ... will start either 7 or 8 T-states ... 21T) means that when LDIR synchronises with the gaps ... situ (either in 48K, or double buffered -- paging RAM ...
    ajmoss ajmoss June 2010 Development
  • 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…

    ... was using B for a DJNZ loop).

    It should ... /> ;# values: AND=A, XOR=X, OR=O, BIT=B, RES=R ... /> scf
    SETBIT: rla
    djnz SETBIT
    jr LDOPC2
    38 PRINT "OR ";a;TAB 9;b,"=";USR ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
<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
or 193.7K 292.9K
djnz 1.4K 2.6K

Related Threads

  • PSP or GPX2 (or Pocket PC or whatever)?I'm going to get either a PSP or a GPX2 (or a Nintendo DS, or a PocketPC or something), so what are the differences between the PSP, the GPX2 and wha…
  • "HAS" or "MAS" or "NAS" or "KAS" (missing artist/coder)The loading screen for [URL="http://www.worldofspectrum.org/infoseek.cgi?regexp=^Bubble+Dizzy$&amp;pub=^Code+Masters+Ltd$&amp;loadpics=3"]Bubble Dizz…
  • Norway Spirals - Missiles or Black holes or Aliens or Giant Rave LasersSomehow I managed to miss all the internet kerfuffle over this weird spiral "thing" that appeared in the sky over Norway a week or so ago...and in my…
  • Unusual or Experimental or just New or Quirky Presentations of SoftwareWhen it was all new software vendors had to work out the best way to sell their wares. In the beginning ,there was no absolute consensus ,and so ther…
  • What speccy game or games did your parents or siblings like?Just thought this might be an interesting topic over Chrimbo...<br /> <br /> My older sister was never really into games in a big way, but there were…
  • Labour or Conservative or Lib Dem...you can have TOO MUCH CHOICE...Election fever is here... <br /> <br /> and what better way to get into it's spirit of crapness, but by downloading the excellently crap:<br /> <br /…
  • Live Free, or Die Hard 4.0 or whatever.Just saw it ... ok action flick ... that kid from the Mac commercials was tolerable ... Kevin Smith is getting a bit fluffier around the edges.<br />…
  • Help! Need Vesa or glide or whatever help (Carmageddon)Since being forced to run Windows XP instead of Windows 98 a few months ago (new hardware made it necessary), I've spent the odd hour or two here and…
  • Joypad or Joystick (or should that be Joyce Stick)I was reading the following article about Joysticks<br /> [url]http://tech.uk.msn.com/features/article.aspx?cp-documentid=7488178[/url]<br /> <br /> …
  • Any Australians with ZX hardware, software or magazines to sell or swap?Darn it's so annoying looking on ebay.co.uk and seeing the thousands of ZX Spectrum related items for sale there, there's usually bugger all Sinclair…

Related Searches

  • ldir
  • move ldir
  • all or nothing abbex
  • xor and or
  • ret or reti
  • raww or
  • 128k shadow ldir
  • picture ldir
  • ldir picture
  • ldir picture to shadow
  • ldir and parity
  • when to use ldir
  • ld a b or c loop
  • energy or lives
  • just speccy or harlequin
  • spectacular or
  • cannot open no such file or directory
  • pentagon or scorpion
  • test or 1
  • pentagon or scorpion memory paging

Copyright © 2024 World of Spectrum