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

    ...
    ADD A,D
    AND A
    LD HL,#1821
    Dr BEEP Dr BEEP December 2008 Development
  • A fast DRAW routineI was investigating how to speed up the line drawing for the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=20225"]BASIC compiler[/URL]…

    ... br />
    exx
    add hl, bc ; error += dY
    ... While loop
    exx
    add hl, de ; error -= dY
    exx
    add hl, bc ; error += dX
    a
    ld de, (SCREEN_ADDR)
    add hl, de ;; ...
    boriel boriel December 2010 Development
  • Add quite a lot of items to my site and a Make an Offer Button.Hi everyone, I asked for some feedback on my site a month or so ago ([URL="http://www.worldofspectrum.org/forums/showthread.php?t=33521"]link[/URL]).…

    ... link[/URL]). I got a few constructive comments and some ... One of them was to add a [B]Make an Offer[/B ... I managed to list a couple of hundred speccy ... , with (at a guess) another 200 still to add.

    Anyhow please feel free to have a ...
    flashbackgames flashbackgames April 2011 Sales
  • A quick newbish questionI'm reading through 'mastering machine code on your spectrum',as kindly posted by Mr bert on this forum. Correct me if I'm wrong from what i read,bu…

    ... pairs like Hl hold 2 bytes or a word (16bit ... A' register,but can use any single register with it ie ADD A ... ,C,ADD A,D but not for example ADD D,A,or ADD ... B,C.Or you can use ADD HL, ... pair ie DE.
    ADD Hl,DE together would still be ...
    bully bully March 2013 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…

    ... (HL),A ; poke flipped byte
    ADD HL,DE ADD HL,DE
    ADD IX,DE ADD IX ...
    MatGubbins MatGubbins August 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... c,NoAddHi
    add a,30h
    ld (hl),a
    NoAddHi and 0fh ... /> add a,3
    and 0fh
    ld c,a
    ld a,(hl)
    mcleod_ideafix mcleod_ideafix November 2013 Development
  • SBC or ADDIs this dangerous/bad practice thing to do..... I want to subtract 64 from a number, but to save a few bytes can I just add (65536-64) 65472 to the…

    ... but to save a few bytes can I just add
    ( ... BC,65472
    ADD HL,BC
    LD (test),HL
    RET
    ADD and one to SBC,
    add.

    Sometimes the ... SBC needs to have a CCF to keep the ...
    MatGubbins MatGubbins April 2014 Development
  • I don't think I'm getting the $22AA Pixel-Add rom routineDear all, I'm misunderstanding how the PIXEL-ADD rom routine works. My code... [code]ld b,175 ld c,1 call $22AA ld (hl),a ret[/code] So…

    ... m misunderstanding how the PIXEL-ADD rom routine works.
    ... /> call $22AA
    ld (hl),a
    ret[/code]

    HL containing $6400 and the ... bit 6 (does this mean A=64?)

    ... So I'm a bit confused why the code ...
    Tobo Tobo March 2016 Development
  • A sped up pixel-shift routine for 1-byte–wide spritesHere’s an optimized (for speed) real-time sprite shifting routine for sprites that are one byte wide. It uses no memory variables for storage of inte…

    ... C
    ld (hl),a ;place it on screen ... /> ld a,(hl)
    xor b
    ld (hl),a ;place ... a,l ;else, load A with L
    add a,32 ;add ... 32 to it
    ld l,a ... jr c,msl_shift_done ;if ADD A,$20 results in overflow, ...
    Ast_A_Moore Ast_A_Moore February 2017 Development
  • Copying a single character from one place to another?[code] ORG 33000 LD A,8 LD HL,16384 LD BC,256 LD DE, 18432 LOOP: PUSH AF LD A,(HL) LD (DE),A ADD HL, BC POP AF DEC A JR NZ,LOOP REST […

    ... 33000
    LD A,8
    LD HL,16384
    LD BC ... AF
    LD A,(HL)
    LD (DE),A
    ADD HL, BC
    POP ... AF
    DEC A
    JR ...
    ivanb303 ivanb303 March 2017 Assembler
  • 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…

    ... ;pair, such as HL and zeroize the high byte ... /> ; ld (control_count+1),hl ;inject # of bytes to ... to the next
    add ix,de ;table row< ...
    ld hl,dummy_key ;point HL to the code of ... key
    ld (hl),a ;now HL points to (dummy_key+BC), ...
    Ast_A_Moore Ast_A_Moore October 2017 Development
  • Tricks to make mirror image of a graphic?I've been working on a sprite routine for lots of sprites and animations. I'm only storing right facing graphics, and converting them to left facing.…

    ... br /> loop: ld a, (de)
    ld (hl), a
    inc h ...

    ld a, c
    add a, %10000000
    ld c ... a, c
    add a, %00000001
    ld c, a
    write: ld (hl), ... br /> loop2: ld a, (de)
    ld (hl), a
    inc h ...
    FrankT FrankT December 2020 Assembler
  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;) But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (ignoring x), I'm…

    ...
    ld e, a
    add hl, de
    inc hl
    ex af ...
    ld e, a
    add hl, de
    inc hl
    ex af ... root
    push hl
    ld e, a
    add hl, de
    push ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code? ORG 60000 LOAD 60000 EA60 21BCEA LD …

    ... A,80H ;set top bit in A
    EA65 86 ADD A,(HL) ;add ... previous digit
    EA66 3C INC A ; and ... /> EA67 77 LD (HL),A ;replace digit in memory< ...
    Duxbuz Duxbuz August 2001 Sinclair Miscellaneous
  • A ZX81 Games QuestionHi All, I'm looking for Sinclair branded ZX81 software titles to add to a collection. I have a number of other ZX81 titles available to swap/sell fo…

    ... software titles to add to a collection. I have a number of other ...
    Anonymous Anonymous March 2002 Games
  • Z80 Emulator Source?Found a link to this on comp.sys.amstrad.8bit. i havent been with the discussion long but supposedly this is the source for a Z80 emulator. Forgive m…

    ... this is the source for a Z80 emulator. Forgive my ... know if it's a Z80 emulator for Spectrum ... a,(de)
    ld l,a
    ld h,21h
    add hl,hl
    add hl,hl ;hl ... =84xxh
    jp (hl ...
    Amigo Amigo August 2003 Emulators
  • 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…

    ... a,l
    ld l,h
    ld h,0
    add hl,hl ...
    ld de,scrtable
    add hl,de
    add a,(hl)
    inc hl ...
    ld h,(hl)
    ld l,a ... ld a,(de)
    or (hl)
    ld (hl),a
    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…

    ...
    rrca
    add a,40h
    ld h,a

    ld ... ,bits
    add a,c
    ld c,a
    ld a,(bc)

    ld b,(hl)
    or b
    ld (hl),a ...
    zxmaniac128 zxmaniac128 May 2004 Development
  • 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 …

    ... hl, lineptrs
    add hl, de
    add hl, de
    ld e, (hl)
    inc hl ... /> add hl, de
    ex de, hl
    ld hl, pixelmsk
    ld a, c ... , a
    add hl, bc
    ld b, (hl)
    ex de, hl
    ld a, (hl ...
    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 …

    ... /> LD A,8
    ADD A,L
    LD L,A
    LD A,(HL)
    LD (DRAWE1+1),A ...
    moroz1999 moroz1999 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…

    ... ,0
    LD HL,gfx
    ADD HL,DE
    ps01 ... br /> LD B,A
    ps0:
    ADD HL,DE
    ... br />
    ADD A,(HL) ; Add the contents of HL to A
    ; So ...
    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] ; ***********…

    ... ,0
    LD HL,gfx
    ADD HL,DE
    ps01 ... br /> LD B,A
    ps0:
    ADD HL,DE
    ... br />
    ADD A,(HL) ; Add the contents of HL to A
    ; So ...
    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 …

    ... /> LD E,A
    LD D,0
    ADD HL,DE ; Add onto GFX ... =FA0AH

    ADD A,(HL) ; ADD THE CONTENTS OF HL TO A
    ; SO AT ...
    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 E,A
    LD D,0
    ADD HL,DE ; Add onto GFX ... =FA0AH

    ADD A,(HL) ; ADD THE CONTENTS OF HL TO A
    ; SO AT ...
    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…

    ... for clipping tile
    ADD HL,BC ;ADD ON A DISP. IF CLIPPING BLOCK ...
    ADD HL,BC ;HL = ADDRESS OF PRESHIFTED BLOCK

    LD A,(BLFLAG ... BC,0
    ADD HL,BC

    LD A,(BLFLAG)
    OR ...
    dmsmith dmsmith September 2004 Development
  • Index register subtractionHi, Just wondering if there a way to perform SBC HL,BC on the IX or IY registers. I can't find an op code for it, and my assembler doesn't recognise…

    ... wondering if there a way to perform SBC HL,BC on the ... doesn't recognise it as a valid instruction, so I guess ... . It seems strange however that ADD HL,BC can be prefixed to ...
    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),A
    PUSH AF
    LD A,31
    ADD A,L
    LD L,A
    POP AF
    LD (HL),A
    Mr Millside Mr Millside February 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…

    ... />
    LD A,L
    ADD A,32
    LD L,A

    ld (hl),a
    inc hl

    ld a,(de)
    inc ... NZ,DRAWBEG
    LD A,L
    ADD A,32
    LD L ...
    robpearmain robpearmain November 2005 Development
  • Amazon charge a fortune to use Z-SHOPSI sold a Dr Who vhs video ( The Face Of Evil ) using Amazon just to see how much they charge for using their service, I sold the video for &#163;7.99…

    I sold a Dr Who vhs video ( The ... £7.99 and Amazon add on a set price for postage which ...
    swordheart swordheart May 2006 Chit chat
  • Problem with rotating procedureHi folks! I wrote a proc in z80 asm, based on: x' = x * cos (z) - y * sin (z) y' = x * sin (z) + y * cos (z) I used a precalculated table of sin a…

    ... add hl,hl
    rla
    jr nc,fin21
    add hl,de
    adc a ... c,d
    add hl,bc
    adc a,0
    ... br /> ld a,128
    ld hl,(xr)
    add a,h
    ... ,a

    ld a,96
    ld hl,(yr)
    add a ...
    xor xor July 2006 Development
<1234567…34>

Latest Posts

  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    harriusherbartio on 11:40AM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Frankie's ZX Spectrum Digouts
    Zup on April 8
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8
  • 1992 Spectrum Software
    harriusherbartio on April 7

HitBox

Word Docs Hits
add 20.8K 30K
hl 6.2K 48K
a 589.5K 1.7M

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…
  • Add quite a lot of items to my site and a Make an Offer Button.Hi everyone, I asked for some feedback on my site a month or so ago ([URL="http://www.worldofspectrum.org/forums/showthread.php?t=33521"]link[/URL]).…
  • Take a game - add a letterBecause all good threads deserve a sequel. Same as before but adding a letter so:<br /> <br /> Beach Head becomes Bleach Head, the adventures of a bl…
  • 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

Related Searches

  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • create a batch file screen
  • change a letter
  • ld hl de
  • is there a system test for the spectrum
  • is there a system test tape for the spectrum
  • how to do a tzx file
  • how to create a tzx file
  • how to make a tzx file
  • add music a g d
  • add ay music to a game
  • add a letter
  • how do i comment add a post
  • how do you add a post
  • how do i add code to a game
  • add adc hl a
  • how do i add a game
  • add hl

Copyright © 2024 World of Spectrum