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>
  • IX register woes - or is SPIN buggy?Or am I missing something? I'm trying to use the IX reg to acess a table containing an x and y coord. My code below just doesnt seem to work proper…

    ...
    ld ix,shptbl ;point to ship table
    ld a,(ix+0) ;get ... ;yes then reset x
    ld (ix+0),a ;and put back ... a
    ld (ix+0),a ;reset x
    ld a,(ix+1) ;get ... one char line down
    ld (ix+1),a ;and put back ...
    Atari_Jetman Atari_Jetman November 2012 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…

    ...

    LD A,(IX+3)
    SUB (ix+7)
    ld (IX+3),A ...
    LD A,(IX+3)
    ADD A,(ix+7)
    ld (IX+3),A ... SUB (IX+6)
    LD (IX+2),A

    LD A,(IX+0)
    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] ; ***********…

    ...

    LD A,(IX+3)
    SUB (ix+7)
    ld (IX+3),A ...
    LD A,(IX+3)
    ADD A,(ix+7)
    ld (IX+3),A ... SUB (IX+6)
    LD (IX+2),A

    LD A,(IX+0)
    robpearmain robpearmain August 2004 Development
  • Techy Z80 questions****** Question 1 ****** Take the instruction SET b, (HL). This is broken down (in machine cycles) as follows (according to Microprocessor Technolo…

    ... br /> Now take SET b, (IX+d).

    This ... 3T) [i.e. the IX offset]
    M3: InternalOperation ... memory address, based on IX and the read offset ... broken down ?

    LD (IX+d), n

    ... DD-CB instructions, every (IX+d) instruction is exactly ...
    GOC GOC 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…

    ... /> LD IX,32768
    LD IY,32848
    CALL ROTATETILE

    LD IX,33088 ... /> LD B,(IX+0)
    LD C,(IX+16)
    LD D,(IX+32)
    LD E,(IX ... +48)
    LD H,(IX ...
    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…

    ... /> LD HL,22528
    LD IX,MAP

    LD C, ... 9
    LOOP1 LD ... br /> LOOP2 LD A,(IX+0)
    LD DE,COLOUR
    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…

    ... /> LD DE,16384
    LD C,9
    LD IX,MAINMAP ...
    DI
    PRTTILELOOPY LD ... DE
    LD A,(IX+0)
    LD (MAPLUMODIFY + ...
    Mr Millside Mr Millside February 2005 Development
  • Switch to 48mode without 'SPECTRUM' commandIs there a poke(s) to switch to 48 mode without SPECTRUM command. I want my tape loaders to switch automatically. I know how to switch ram banks ok…

    ... /> [code]DI
    LD BC,32765
    LD A,20 ;(BANK4)
    LD IX,32768 ;ADDRESS TO LOAD TO ...
    FrankT FrankT September 2005 Sinclair Basic
  • Spin save dissembly problemHey Dunny and others Spin dudes! There seems to be a small problem with the save dissembly function from the dissembler in Spin. This is the exact o…

    ... 10ts
    l_6814: ld ix, l26972 ; 26644 14ts
    ld a, (l26969) ; 26648 ... 7ts
    ld e, a ; 26655 4ts
    add ix, de ; 26656 ...
    Kiwi Kiwi May 2006 Emulators
  • Assembler RequestI need a command line assembler that can compile the following code Structures, [code] CHNPRM struct .PsInOr defs 1 .PsInSm defs 1 .CrAmSl defs 1 .C…

    ... [/code]

    IX indexing
    [code]LD (IX+CHNPRM.Env_En-12), 0 ...
    Kiwi Kiwi May 2006 Development
  • In Machine Code, what is the quickest way to sort bytes?I am playing around with some ordering of sprites, where I want to order them by vertical position. I used some Rodnay Zaks code to order some bytes…

    ... = (hl)
    again ld ix,(temp) ; ix=(hl)
    res flag,h ... dec b
    next ld a,(ix)
    ld d,a ; d = ... xchange ld (ix),e ; store next into current
    ld (ix+1),d ...
    robpearmain robpearmain August 2006 Development
  • Screen LoaderCouple days ago i find very interesting loader routine in ex Yugoslavia magazine "Svet Kompjutera" from january 1987. Authors of article, calls this …

    ... /> LD (HIL),HL
    LD DE,16384
    LD (DIL),DE
    LD A ... /> EXX
    LD A,$FF
    LD IX,25500
    LD DE,18600
    JR NC,LFF3C
    LD (IX+0),L
    PUSH AF ... /> JR LFF43
    LFF3C LD A,(IX+0)
    XOR L
    Pegaz Pegaz August 2006 Games
  • Pixel Explosion CodeJust a little snippet to cause explosive effects. It uses table lookups for the screen address, and can handle up to 32 pixel particles. A particle…

    ... a
    add a,(ix+2)
    ld (ix+0),a

    ld a,(ix+1)
    add a,(ix+3)
    ld (ix+1),a ... /> ld (ix+0),0

    madp_nx1:
    ld b,(ix+0)
    ld c,(ix ...
    robpearmain robpearmain September 2006 Development
  • Help understanding some z80 asmI'm trying to work out how to represent the structure of a "sprite" in the SAM as "Grabbed" by SmallC. I can see the assembler implementation but I …

    ... ix
    ld ix,0
    add ix,sp
    ld e,(ix+6)
    ld d,(ix ... +7)
    rrc d
    rr e
    ld d,(ix ... +4)
    ld b,(ix+8)
    ld c,(ix+10)
    ld a ... ,191
    sub b
    ld b ...
    DonkeyPong DonkeyPong January 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…

    ... ]scf
    ld a,255
    ld ix,16384
    ld de,6912
    call 1366
    ld a ... ,255
    ld ix,24576 ...
    ld de,22564
    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…

    ... />
    startofcode:

    LD IX,05C3Dh ;location to load to ...
    LD (09C23h),A
    LD (09CEAh),A
    LD (09E0Dh),A ...
    LD (0A58Fh),A ... LD (0A5DCh),A
    LD (0A793h),A
    LD (0A8A4h),A
    LD A ...
    StuBruise StuBruise October 2007 Sinclair Miscellaneous
  • 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…

    ... format routine
    FOR2 LD IX,HEAD0 ; Our sector information ... buffer is
    LD IX,XDPB ; Point IX to the extended disk ... to 1)
    LD IX,XDPB ; IX points to the XDPB ...
    NaMcO NaMcO December 2008 Development
  • Routine in HexadecimalHello!!! I was trying to get the following routine in Hexadecimal: LD IX,16384 LD DE,6912 LD A,255 SCF CALL 1366 RET I tried to …

    ... :

    LD IX,16384
    LD DE,6912
    LD A,255
    marcoagpinto marcoagpinto December 2008 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ... /> LD (23606),HL ; set new charset
    LD IX,prat-start ...
    ADD IX,BC ; set IX to PRAT
    LD ...
    Dr BEEP Dr BEEP December 2008 Development
  • Tinkering with Quique Llar?a's Midi2Ay tool...Im tinkering with Quique Llar?a's Midi2Ay tool, found at: [url]ftp://ftp.worldofspectrum.org/pub/sinclair/tools/pc/midi2ay-0.1.zip[/url] Im not a v…

    ... /> ld (R_IX),ix

    pop ix
    push ix
    ld (R_PC),ix
    ld ix,(R_IX ... )

    ld (R_HL ... ),hl
    ld (R_DE ...
    kgmcneil kgmcneil October 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 …

    ... ld ix, source
    ld hl, dest
    ld de, 8 ; stepsize
    ld ... />
    start:
    ld sp, ix ; 10 T
    pop ... Subtotal = 54

    ld sp, hl ; 6
    push ...
    ajmoss ajmoss August 2010 Development
  • Help?Hi All, I wonder if anyone has a few minutes to look at this bit of code I'm working on. I'm trying to move to sprites and want to do it with a scr…

    ... ld b,8 ;draws sprite, 8 lines to the sprite
    ld ix ... ,(seed) ;point ix at where we are ... line at a time
    ld h,(ix+1) ;point hl at ... them, high byte first
    ld l,(ix+0) ;low byte
    R-Tape R-Tape January 2011 Development
  • Saving and Loading from tape in MC?I'm actually having problems with saving and loading from the ROM routines for the interpreter... I'm currently using the following codes for saving…

    ... />
    [CODE]save:
    ld ix, _tape_header
    ld hl, _save_state
    call ... /> scf
    ld a, 0
    ld ix, _tape_header
    ld de, 17
    Timmy Timmy July 2011 Development
  • machine code loadercan someone have a look at this loader and break down what its actually doing and also how i can stop it from executing the 2 loads of headerless blo…

    ... ]
    5B00 LD SP,5BFF
    5B03 LD A,(5C48)
    5B08 LD (5C48),A
    5B0B LD HL,5800< ... 5B11 XOR A
    5B12 LD (HL),A
    5B13 ... 5B1A LD IX,4000
    5B1E LD DE,1B00
    5B21 LD A ... 5B29 LD IX,5CB6
    5B2D LD DE,A349
    5B30 LD A ...
    djgarf djgarf August 2011 Sinclair Miscellaneous
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    Here's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to be combined or merged into other programs. It's sort of a slow version of copy & paste. The two line ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Getting the contents of tablesHi All, I'm risking a potentially daft question here as it seems pretty fundamental but here goes: What's the best way of pointing register pairs a…

    ... ] ld ix,blocktab
    ld d,(ix+1)
    ld e,(ix+0)
    ld h,(ix+3 ... )
    ld l,(ix ... 'm basically longing for a ld hl,(ix) command!), I'm aware ...
    R-Tape R-Tape October 2011 Development
  • Lord Of The Rings; Files skipped ?Hi folks, Does anyone know what blocks 8~13 are for in the Lord of The Rings: [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0006601[/url] I…

    ... 61530
    61619 LD (IX+005),H
    61622 LD (IX+006),L
    61629 LD (IX+002),H
    61632 LD (IX+003),L
    61643 LD (IX+008),H
    61646 LD (IX+009),L
    61653 LD (IX+010),H
    61656 LD (IX+011),L
    Andrew Barker Andrew Barker October 2011 MIA/STP/SDP
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in var…

    Here's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in variables (or expressions which evaluate to variables). Some of this can already be done with VAL or VAL$, ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Undefine functionHere's a routine to selectively remove variables from the VARS area and reclaim the space. This can be done partially from BASIC already by assigning…

    ... ,sp
    ld sp,hl ;undo USR
    ld ix,0
    GETARG ... ;B =number of parameters
    ld ix,(CH_ADD)

    NXTARG: push ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Multicolour demo using z88dk + BIFROST* (+source)This is just a demo to show how to show multicolour using z88dk, using the BIFROST* engine (more info [URL="http://www.worldofspectrum.org/forums/sho…

    ... br /> xor a
    ld ix, 48460
    ld de, 17
    call ... /> scf
    ld a, 255
    ld ix, 48500
    ld de, 3072
    xor a
    ld ix, 48460
    ld de, 17
    call ... /> scf
    ld a, 255
    ld ix, 56768
    ld de, 8515
    Timmy Timmy March 2012 Development
<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
ix 1.5K 6.5K

Related Threads

  • The point of IX+1 IX+2 ?the numbers that you can add-on to IX and IY seem hardcoded, so I dont see the use of that feature?<br /> any examples of the use of IX and IY plus …
  • 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…
  • When would you use LD A,R ?Can anyone tell me a practical use of LD A,R and LD R,A I am confused when you would need to use it?<br /> <br /> Cheers
  • Contention: LDI vs LD (ss), rAccording c.s.s. FAQ:<br /> <br /> instruction LD (ss),r breakdowns as pc:4,[b]ss:3[/b]<br /> and LDI as pc:4,pc+1:4,hl:3,[b]de:3,de:1 x 2[/b]<br /> …
  • IX register woes - or is SPIN buggy?Or am I missing something? <br /> <br /> I'm trying to use the IX reg to acess a table containing an x and y coord. My code below just doesnt seem to…
  • IX register - using/problemsAre there any rules on using the IX register? Are there any restrictions on the memory <br /> locations that it can access? Yes, I know it's slower t…
  • IX register wonderings...***noob alert***<br /> <br /> I'm doing a lot of these in my program:<br /> <br /> <br /> ld a,(ix+n)<br /> cp 0<br /> jp z<br /> <br /> I know you c…
  • SBC IX,DE/BCAlways wondered why there wasn't a SBC IX, DE/BC command....<br /> <br /> so have to use<br /> <br /> PUSH HL ; save original HL<br /> PUSH IX ; …
  • IX+n and self modifying code and pasmoI'm using pasmo and if I wanted to use ix+n like this:<br /> <br /> (ix holds the position to a sinus table)<br /> <br /> ld (symbol), a<br /> LD a, …

Related Searches

  • ld bytes
  • ld hl de
  • ix registers
  • ld bc eostr string
  • ld am
  • ld a r
  • ld r a
  • add ix
  • add constant value to ix
  • ld a b xor c loop
  • ld a b or c loop
  • ix 0
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • reset ix
  • ld fe 00
  • ix register
  • undocumented ix assembler
  • ld a ix

Copyright © 2024 World of Spectrum