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.100s
<1234567…34>
  • How to add speech to a program?Is it possible to add speech to a machine code program? And with possible I mean with relative ease. Hardware could be 128k. Is there some utility …

    Is it possible to add speech to a machine code program? And with possible I mean with relative ease. Hardware could be 128k.

    Is there some utility around to record something and then be able to play it from inside a program?
    Rickard Rickard January 2008 Development
  • 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,0 ... /> ld c,d
    add hl,bc
    adc a,0
    ld d ... a,e
    add a,c
    ld e,a
    ld a,d
    adc a ...
    xor xor July 2006 Development
  • SimCoupe 1.0 released[size=-2](for those of you that don't read CSS)[/size] SimCoupe, the SAM Coup? emulator, has been updated to version 1.0. This major release adds ma…

    ... re still a SAM virgin, download a copy today! A few sample ... - Added partial scanline support for a more natural looking display
    ADC HL,rr incorrectly setting N flag
    - Fixed ADD IX/IY ... on Czech keyboards, which require a shift modifier
    - ...
    obo obo July 2006 Emulators
  • Urgent Help needed to fix this: calling all machine code gurusI am currently trying to write tutorials on the amazing Orfeus music composer by Proxima which allows you to do multi channel music through the beepe…

    ... a,h
    adc a,d
    cp e
    adc a,d
    add hl,bc ...
    adc a,d ...
    ld e,b
    adc a ...
    robpearmain robpearmain November 2006 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]…

    ... While loop
    exx
    add hl, de ; error -= dY
    ... ld a, 8
    add a, h
    ld h, a
    ld a, ... 1

    ld (hl), a
    ex af, af' ; ... ld h, a
    ld de, (SCREEN_ADDR)
    add hl, de ;; Final ...
    boriel boriel December 2010 Development
  • rotating HL left through CarryI've tried this several ways, and it works for a while, then a particular value has a bit set in an inconvenient place and it all goes to pot. Eg: "…

    ... it works for a while, then a particular value has a bit set ... A", then four repeats of "RL H : RL L"; or ADC HL,HL; with ...
    Battle Bunny Battle Bunny March 2012 Development
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…

    ... /> 1120 LET I=0 : REM ADD HL,DE ; RESULT += MPD
    1121 ... +I: LET I=0 : REM ADC HL,DE
    1141 LET L ... a=1 TO 32: IF a$(a)="0" THEN NEXT a
    1393 PRINT "= "'a$(a ... TO)'32-a+1 ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • 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
  • 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
  • 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
  • Last Problem in Chapter 3 of Toni Baker's Mastering Machine Code on your ZX Spectrum.Chapter 3 of this great book is all about how to use the registers and covers the operations LD, ADD, ADC, SUB, SBC, INC, DEC, SCF and CCF. The la…

    ... covers the operations LD, ADD, ADC, SUB, SBC, INC, ... The last task asks a program be written to ... HL
    LD L, E 6B
    ADD A, ... 00 C600 Reset CARRY
    SBC HL, BC ... HL(DE) then CARRY is 1, otherwise 0
    ADC A,A 8F Set A ...
    Scottie_uk Scottie_uk February 2021 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
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... /> ld l, a
    add hl, hl
    add hl, hl
    add hl, hl ; HL = char * 8
    add hl, de ; + ... /> daa
    add #A0
    adc #40
    ld (de), a
    inc ... /> ld e, a
    add hl, de
    ld a, (hl
    Paradigm Shifter Paradigm Shifter August 2022 Development
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... me ;o)
    ld hl,tad_asc
    ld de,# ... ld (hl),e
    inc hl
    ld (hl),d
    inc hl
    inc d
    ld a ... /> ld d,a
    ld a,e
    add a,#20
    ... ,filltab
    ld a,d
    add a,8
    ld ...
    Mikie Mikie November 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ...
    bit1:
    ADC A,A ; first time carryflag in A, then double it ... nz,nexty
    ld a,l
    add a,32
    ld l ...
    or_pixel3:
    or (hl)
    ld (hl),a
    fim_vert:
    ret
    rtunes rtunes November 2001 Sinclair Miscellaneous
  • 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…

    ... characters. Once you rotate a 2 character wide sprite ... 16 bits using 'add hl,hl; ex de,hl; adc hl,hl', etc and calculated ... for smooth scrollers this is a requirement. Your graphics routines ... also have a bankswitched display but at a different location ...
    Alcoholics Anonymous Alcoholics Anonymous July 2003 Games
  • An MC question (sorry, there's no MC forum to post to!)Ok, still struggling with learning MC - but am getting there. I just can't find anywhere on the web / in books that explains how to do arrays in MC.…

    ... d,0
    add hl,de
    ld a,(hl)

    ; a = array index ... /> add a,MyArray%256
    ld l,a
    ld a,0
    adc a,MyArray ... /256
    ld h,a
    ld a,(hl)

    ; a = index ...
    Alcoholics Anonymous Alcoholics Anonymous April 2004 Sinclair Basic
  • Amiga MOD on ZX SpectrumWell, there were several question about music matters on WOS lats times, so I decided to describe some of my 'adventures', heheh, with MOD playing on…

    ... ,pitchint ; 8 bit integer
    adc hl,bc ; add byte displacement
    ; to ... /> add a,(hl)
    rra
    add a,(hl)
    rra
    add a,(hl)
    rra
    add a,(hl)
    Alcoholics Anonymous Alcoholics Anonymous April 2004 Sinclair Miscellaneous
  • Amiga MOD on ZX SpectrumWell, there were several question about music matters on WOS lats times, so I decided to describe some of my 'adventures', heheh, with MOD playing on…

    ... /> add hl,bc
    ld (sample_pos_lo+1),hl
    ex de,hl ; now hl = ... br /> ld bc,0
    adc hl,bc ; carry to high byte ... restrict it to a certain page...

    ld a,(hl) ; fetch ... of lookup table
    ld a,(hl) ; final sample output level
    gasman gasman April 2004 Sinclair Miscellaneous
  • Amiga MOD on ZX SpectrumWell, there were several question about music matters on WOS lats times, so I decided to describe some of my 'adventures', heheh, with MOD playing on…

    ... sample
    lsbtbl:
    add a,lsbtbl ; lsbtbl = 64*(volume ... ld l,a
    ld e,(hl)
    add ix,de< ... :
    ld a,pitchfrac
    remainder:
    add a,remainder
    ... a
    ld l,pitchint
    ld h,d
    adc hl ...
    Alcoholics Anonymous Alcoholics Anonymous April 2004 Sinclair Miscellaneous
  • Amiga MOD on ZX SpectrumWell, there were several question about music matters on WOS lats times, so I decided to describe some of my 'adventures', heheh, with MOD playing on…

    ... ld l,a
    ex af,af'
    add a,(hl) ; add sample to total ... a
    ld l,pitchint
    ld h,d
    adc hl ... ,bc
    ld (ptr+1),hl

    msbendaddr:
    ld a,msbendaddr
    adc a,h
    jp m ...
    Alcoholics Anonymous Alcoholics Anonymous April 2004 Sinclair Miscellaneous
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... : add hl,hl
    adc a,a
    Left3: add hl,hl
    adc a,a
    Left2: add hl,hl
    adc a,a
    Left1: add hl,hl
    adc a, robpearmain robpearmain October 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
    EX AF,AF'
    LD A,31
    ADD A,L ... A,32
    ADD A,L
    LD L,A
    LD A,0
    ADC A ...
    Mr Millside Mr Millside February 2005 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…

    ... HL
    LD (HL),A
    EX AF,AF'
    LD A,31
    ADD A ... A,32
    ADD A,L
    LD L,A
    LD A,0
    ADC A ...
    Dr BEEP Dr BEEP February 2005 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…

    ... HL
    LD (HL),A
    EX AF,AF'
    LD A,31
    ADD A ... holds 0
    ADC A,H
    LD H,A

    { this ...
    Dr BEEP Dr BEEP February 2005 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
adc 362 761
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 hl a
  • how do i add a game
  • add hl

Copyright © 2024 World of Spectrum