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.111s
<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
  • 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 B,16
    PRTTILELOOPX PUSH BC
    PUSH DE
    LD A,(IX ... +0)
    LD (MAPLUMODIFY + 1),A
    CALL PRINTTILE ...
    Mr Millside Mr Millside February 2005 Development
  • 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? Cheers

    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?

    Cheers
    robpearmain robpearmain November 2009 Development
  • 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 a,(ix)

    but it likes ld a,(ix+0)

    xor a ;zeroise a
    ld (ix+0),a ;reset x
    ld a,(ix+1) ;get ... y
    add a ...
    Atari_Jetman Atari_Jetman November 2012 Development
  • Movin And A Groovin Horizontal Flip improvementOn the left is the flip horizontal portion from Andy Pennell'S excellent Movin' & a Groovin' machine code screen routines from Your Spectrum #19 (Oct…

    ...
    LD A,(IX+#00) ; moved down
    ld c,a ;b=ABCDEFGH
    LD C ... /> LD A,(IX+#00) LD C,(IX+0) ; bung it in C instead
    LD (HL),A LD ...
    MatGubbins MatGubbins August 2013 Development
  • IX register wonderings...***noob alert*** I'm doing a lot of these in my program: ld a,(ix+n) cp 0 jp z I know you can do things like this: dec (ix+n) but can you test …

    ... my program:


    ld a,(ix+n)
    cp 0

    dec (ix+n)

    but can ...
    Atari_Jetman Atari_Jetman February 2014 Development
  • IX+n and self modifying code and pasmoI'm using pasmo and if I wanted to use ix+n like this: (ix holds the position to a sinus table) ld (symbol), a LD a, (ix+symbol) What I want to do…

    ... if I wanted to use ix+n like this:
    ... to a sinus table)

    ld (symbol), a
    LD a, (ix+symbol ... do is to use LD a, (ix+n), but declare n ... used like this (I'm a total newbie).

    ix) discussion :)

    ...
    Arda Arda January 2015 Development
  • A Neat Redefine Keys RoutinePreviously, I’ve only shared this routine with a couple of people via PM, but I’ve now decided to make it public. I optimized it for size, so it uses…

    ... $ push bc ;remember counter
    ld a,(ix) ;# of keys to skip (dummy_key ... ' ;save A
    ld a,22 ;AT code
    rst $10
    ld a,(ix+1 ... ) ;? down (vertical coordinate)
    rst $10
    ld a,22 ...
    Ast_A_Moore Ast_A_Moore October 2017 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,8
    SUB (IX+6)
    LD (IX+2),A

    LD A,(IX+0 ... /> LD A,(IX+1)
    LD B,A
    LD C,(IX+0)
    INC C
    LD A ...
    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,8
    SUB (IX+6)
    LD (IX+2),A

    LD A,(IX+0 ... /> LD A,(IX+1)
    LD B,A
    LD C,(IX+0)
    INC C
    LD A ...
    robpearmain robpearmain August 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 C,9
    LOOP1 LD B,16

    LOOP2 LD A,(IX+0 ... )
    LD DE,COLOUR
    ADD A,E
    LD E,A
    LD A ...
    Mr Millside Mr Millside February 2005 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…

    ... ; temp = (hl)
    again ld ix,(temp) ; ix=(hl)
    res flag,h ... /> next ld a,(ix)
    ld d,a ; d = current entry
    ld e,(ix+1) ; e ...
    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 (FL1),A
    LD A,0
    LD (FL2),A
    EXX
    LD A,$FF
    LD IX ... ,25500
    LD ...
    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…

    ... /> ld a,(ix+0) ; add x move to a
    add a,(ix+2)
    ld (ix+0),a ... 0
    ld a,(ix+1)
    add a,(ix+3)
    ld (ix+1),a

    robpearmain robpearmain September 2006 Development
  • tricks to simplify codingWhen i started with programming in assembler i had very simple approach to do things. Just shifting bytes around, doing simple tests and so... Later …

    ... /> add a, a
    add a, l
    ld l, a
    jr ... h
    call_from_table1
    ld a, (hl)
    inc hl ...
    ld h, (hl)
    ld (call_from_table2 + 1), ... br /> [CODE]
    ld a, (ix + FRAC_PEN)
    ld hl, p2_fracpentab
    call ...
    Fikee Fikee March 2010 Development
  • pasmo and rept macrosHi, I'm delving back into speccy coding again (and trying to remember Z80 along the way) and I'm trying to figure out how to use a variable in a rep…

    ... out how to use a variable in a repeat macro. for ... example:

    rept 8
    ld a,(ix ... +times_around_compilation_loop)
    ld de,a
    inc de
    a simplified example)

    ...
    sack sack July 2010 Development
  • Nibble SwapHi, I want to swap around the nibbles in a byte pointed to by the IX reg, this works: [CODE] LD A,(IX+5) AND %11110000 RRA …

    ... the nibbles in a byte pointed to by the IX reg, this ... works:

    [CODE]
    LD A,(IX+5)
    AND %11110000
    ld H,A ; store for later
    ld A,(IX+5)
    and ...
    spud spud October 2010 Development
  • Why doesn't my routine work?I have a "level" defined by 504 bytes (28 squares across x 18 squares down) I'm trying to write a routine that will take an X,Y coordinate in pixels…

    ... ; Clear high byte H
    ld a, (ix+SPR_ypos) ; get y position.
    ; = 28x original value!

    ld a, (ix+SPR_xpos) ; get x position
    sekrets sekrets December 2010 Development
  • BeepFX ProblemHi All, I'm currently trying to integrate the BeepFX engine in my 100% Assembler Game and it plays the sound fine, but then plays the sound again, a…

    ... /> ld (SFXRTBORD+1),a
    ld (SFXRNBORD+1),a
    READDATA: ld a,(ix+0)
    ld c,(ix ... ,(ix+5)
    ld d,(ix+6)
    ld a,(ix+9)
    ld (SFXRTDUTY+1),a
    ld ...
    Shando Shando September 2012 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... /> pop ix ;IX=address of parameter string
    ld a,(ix+2) ;A =a
    or a
    ld a,(ix+0) ;A =h
    add a,a
    sub c
    ld c,a ;C ...
    Battle Bunny Battle Bunny November 2012 Development
  • The Pros and Cons of "alternative" assembler syntaxContinuing from [URL]http://www.worldofspectrum.org/forums/showpost.php?p=720754&postcount=72[/URL] [QUOTE=u6c87;720754]But that wouldn't change if…

    ... "ld a, 4(ix)" really that much harder to read than "ld a, (ix+ ... B] instead of [B]ld[/B] and argue " ... doesn't necessarily make it a good idea.
    ... /> The 8080 variations are a slightly different story, because apart ... this offline, to a different thread, or ...
    AndyC AndyC September 2013 Development
  • Colission detection problems.G'ah...it's always the same (I've asked before too) - I'm always struggling when it comes to doing box colission checks, so I'm basically hoping you …

    ... /> ld a,h ; player's y coordinate.
    inc a
    ld b,a
    ld a,(ix ...
    Sokurah Sokurah February 2014 Development
  • Ghosts n' Goblins loaderI'm trying to put Ghosts n' Goblins onto a +3 disk but struggling to understand the mc loader. Basic loader [code] ink 7 : clear 25000 : load "" cod…

    ... : JR 65157

    65150: LD A, (IX+0)
    65153: XOR L ... : LD IX, 16384 ; screen ram
    65264: LD HL, 48896
    65267: LD A, ... (IY+32)
    65379: LD (IX+0), A
    65382: POP AF
    65393: JR 65404
    65395: LD A, (IX+0)
    65398: XOR L ...
    Speccy_James Speccy_James 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 +…

    ... /> ;------------------
    never_end
    ld a,0
    ld a,I
    ld a,(IX+0) ;odd time ... /> ld b,0
    ld a,c
    add a,a
    add a,a
    add a,a ...
    add a,a ;a = y ...
    joefish joefish March 2014 Development
  • Code structureHi all, I'd be interested in opinions on the neatest way to do this. I've got a print string routine in which 0-31 are reserved for control codes, …

    ... do this. I've got a print string routine in which ... ;>
    print_string ;ix pointing at string
    ld a,(ix+0)
    cp ...
    R-Tape R-Tape August 2015 Development
  • Printing text using direct screen addressingHaving some problems printing using the FASE engine which is currently defeating me. Hoping to have someone clear out the bit of fog currently dwell…

    Having some problems printing using the FASE engine which is currently defeating me. Hoping to have someone clear out the bit of fog currently dwelling in my brain for this function. I'm trying to get the text working properly in 128k mode which uses ...
    andydansby andydansby December 2018 Development
  • Anyone for a hacking challenge ?I have to get the DSK version of Tomahawk to work. It uses the well-known Digital Integration "SECURITY CODE" lock just like in Bobsled, ATF, etc. Th…

    ...
    LD A,3 ; Load Accumulator with 3
    LD (40000),A ; Store contents ... of lives:-

    LD A, (40000) ; Load Accumulator with ... br />
    LD A, (40000)
    DEC A ' option appears again leaving ... 03 LD A,03

    Now press A to (A)lter ...
    BadBeard BadBeard August 2003 Sinclair Miscellaneous
  • Collision DetectionHi everyone, This is my first post on WOS. Like most people here I owned a Spectrum when a teenager. At that time I was quite heavily into programmin…

    ... /> LD A,(IX+11)
    LD B,A
    ADD A,16
    LD C,A

    LD A ... /> LD A,(IX+12)
    LD B,A
    ADD A,16
    LD C,A

    LD A ...
    dmsmith dmsmith August 2004 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
a 589.5K 1.7M
ix 1.5K 6.5K

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
  • How to separate a character from a number in a string?Hi <br /> I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say…
  • A TZX, a MIA and a previously unknown title from QLSThe Spanish website [url="http://trastero.speccy.org/"]El Trastero del Spectrum[/url] has a TZX of [url="http://www.worldofspectrum.org/infoseekid.cg…

Related Searches

  • ld ix
  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • ld bytes
  • ld a r
  • ld r a
  • ld a b xor c loop
  • ld a b or c loop
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • ld a 5b5c
  • ld a r counter
  • ld a r rnd
  • ld a r bug
  • ld bc 65533 a 254 out c
  • cpi ld a b or c
  • ld ixl a
  • ld a 1 call 1601

Copyright © 2024 World of Spectrum