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.103s
<1…567891011…34>
  • 128k Screen Flipping - Sample Code PleaseI know this has been covered before, but I cannot find out code to do the following: On a 128k Spectrum tell the speccy to display from address 4915…

    ... /> push hl

    ld a,(de)
    ld (hl),a
    inc ... br /> pop hl

    ld a,32
    add a,l
    ... ld l,a

    ld a,(de)
    ld (hl),a ...
    robpearmain robpearmain February 2006 Development
  • Run Length DecodingRun length encoding/decoding is far less efficient than using a modern compression program.

    ... ld a, l
    add a, 32
    ld l, a
    ld a, ... br />

    ld hl, comic_adr ;adress in screen memomory ... br />
    unpak_scr5 ld (hl), a
    push af
    call ... /> inc de
    ld (hl), a
    call slow_downhl
    ...
    Fikee Fikee March 2006 Development
  • Timex 80 column display driverI subsequently wrote an 80 column font driver for 512x192 mode.

    ... ,a
    add hl,hl
    add hl,hl
    add hl,hl
    ld de,font-100
    add hl ... ,de
    ex de,hl ... pixels

    ld a,(hl) ; a = screen byte
    and # ...
    Alcoholics Anonymous Alcoholics Anonymous March 2006 Development
  • Timex 80 column display driverI subsequently wrote an 80 column font driver for 512x192 mode.

    You can still save a few cycles in all instances of ADD HL,BC where C is loaded with zero by using 8 bit additions via A.

    LD BC,xx00 : ADD HL,BC = 21 cycles.

    LD A,H : ADD A,xx : LD H,A = 15 cycles.
    Woody Woody March 2006 Development
  • MEMPTR finally crackedThis post is mainly for emulator developers. As you may be well know there is a misterious internal register in Z80 CPU (MEMPTR) which value is set …

    ... includes the instructions ADC, ADD, SBC, INC, DEC but ... I have been using the ADD HL,DE instruction to test. ... />
    There is a strange exception to the rule ... outdated. But there is a newer version? Please mr. ... Fraser, make a "hard" work and type ...
    Vladimir Kladov Vladimir Kladov April 2006 Emulators
  • Shoot-em-up Development UpdateHi Folks, I am still working away at my horizontal scroller. Here is a link to let you see progress. I have re-written the scrolling routine to make…

    ... ADD A,A ; MULTIPLY BY 40
    ADD A,A
    ADD A,A
    LD B,A
    ADD A,A
    ADD A,A ... [FONT=Courier New]NEXTROW EXX: ADD HL,BC: EXX[/FONT]
    ...
    dmsmith dmsmith April 2006 Development
  • finding largest value (z80 assembly)suppose we have to write z80 program which requires to find the biggest value in a block of memory starts from the address 101h until address stored …

    ... psuedo code :-)

    load hl with the start of the ... with value pointed to by hl (ie. the current smallest number ... of hl > a then
    load a with the contents of hl
    end if
    increment hl
    4electros 4electros April 2006 Development
  • finding largest value (z80 assembly)suppose we have to write z80 program which requires to find the biggest value in a block of memory starts from the address 101h until address stored …

    ... hl,101h ; set the first value to hl
    ld a,0
    add a,(hl) ; a ... =content of hl

    Alcoholics Anonymous Alcoholics Anonymous April 2006 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ...
    add a, (hl) ; Add first byte of checksum to byte.
    ld (hl),a ; Store ... a,0 ; Add, if we've got anything to carry.
    ld (hl),a ...
    Matt_B Matt_B May 2006 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ...
    ld hl,KeyTransTables
    add hl,de

    ld a,$fe ; check ... e,80
    add hl,de

    NoSym: ld a,(hl) ; a = key code ...
    Mr Millside Mr Millside May 2006 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ... code]
    NoCaps: ld a,$f ; check on SYM ... SHIFT
    in a,($fe)
    ... ld e,80
    add hl,de
    [/code]
    NoCaps: ld a,$7f ; check on SYM ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ... : I've started using a ld a,r command to grab ... [/quote]

    Yeah, not a very good random number generator ... compact on PC, quite a gonzo-routine on Z80. ... br /> ld hl,(int_seed)
    ld a,h
    add a,a ;Set highest ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Checksum RoutinesHi there everybody, Does anyone have an 'off the shelf' assembler routine for generating checksums? Thanks Jim

    ... ]
    ; and moddified to be a loop
    ;The arrow comments ... =number of bytes
    ;Outputs: hl=CRC16
    push bc ;
    jp jp June 2006 Development
  • Loading schemes18 years ago I hated loading schemes like Alcatraz and Speedlock because they were a b*tch to copy and became unreliable when the tape got older. Now…

    ... a,(aaa)
    ld h,0
    ld l,a
    add hl,hl
    add hl,hl ...
    add hl,hl
    ld de,39744
    add hl,de ...
    Tom-Cat Tom-Cat July 2006 Games
  • 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…

    ... , speccy is a bit slow to draw a complex 3D scene ... . you can define a reference point for every ... 8bit signed numbers and add result to refence point. ... you avoid many 16bit ADD and RL instructions. for ... 85T ? Nope! 7T: ld (hl), a ..." Of course, this is an ...
    Fikee Fikee July 2006 Development
  • Self Relocating CodeOn page 47 of [url]http://www.tim-mann.org/trs80/doc/ldosq1-3.txt[/url] is an article about relocating code. The documented routine that performs the…

    ... DE,HL
    ADD HL,BC
    LOOP LD A,C
    ADD A,(HL)
    LD (HL),A ... ;reloc low byte
    INC HL
    ADD A ... ,B
    ADC A,(HL)
    LD (HL),A ;reloc high ...
    piters piters August 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,ArrayAddress

    add a,l
    ld l,a
    adc a,h ... ,a ;(hl)=(col4)

    ld a,e
    ld de,ArrayAddress
    add a ...
    rtunes rtunes August 2006 Development
  • 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…

    ... ; l=ypos (0-192)
    add a,(hl) ; a (containing xbyte) += hi byte of ... ; l=ypos (0-192)
    add a,(hl) ; a (containing xbyte) += hi byte of ...
    Dr BEEP Dr BEEP September 2006 Development
  • 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…

    ... xpos table

    ld a,(hl) ; a = x byte (e.g. if ... ; l=ypos (0-192)
    add a,(hl) ; a (containing xbyte) += hi byte of ...
    Dr BEEP Dr BEEP September 2006 Development
  • 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…

    ... de,hl
    ld a,h ; a = old x coord
    add hl,bc
    a,(hl)
    inc hl
    ld l,(hl)
    ld h,a ; hl = dy
    add hl ... ,bc
    ld a,h ...
    Alcoholics Anonymous Alcoholics Anonymous September 2006 Development
  • 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…

    ... xpos table

    ld a,(hl) ; a = x byte (e.g. if ... ; l=ypos (0-192)
    add a,(hl) ; a (containing xbyte) += hi byte of ...
    Dr BEEP Dr BEEP September 2006 Development
  • Spectrum Screen Memory MapWhat's the advantage (mistery?) behind ULA's spectrum screen memory interpretation? 6144 bytes divided into 3 blocks, 2048 bytes long. if you want t…

    ... Spectrum is not designed as a games machine, but is designed ... as a utility machine where you do ... we could just use INC HL in the 32nd increment to ... (compare famous DOWNHL with simple ADD HL,BC) or using lookup tables ...
    baze baze October 2006 Development
  • +2 ramdisk - access in machine codeHow can you access the ramdisk in machine code? I've got a +2, and it seems the ramdisk has never been properly utilised. It would be a handy little…

    ... />
    inc a
    ld e,a
    add a,a
    add a,e
    rra ... for source

    ; a'hl = source address, a' = out byte to port ... ; page in destination
    ld (hl),a ; write byte

    inc ...
    Alcoholics Anonymous Alcoholics Anonymous October 2006 Development
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... add hl,de
    ld de,23296
    or a
    sbc hl ... ,de
    add hl,de
    ...
    Woody Woody November 2006 Development
  • Scrolling Loader CounterPlease can someone help me with writing a scrolling counter for a loading system. I like the Hewson counter so i`ve taken the font from zynaps loade…

    ... gfx
    ld (hl), a ;put gfx into screen ... of gfx
    inc hl ;increase it
    ... you have to add is a simple check ... then jump
    ld hl, first_byte_of_gfx ;YES
    ...
    Fikee Fikee November 2006 Development
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... [code]
    call gethl ; hl = screen address at column 31 ... scanline:

    push hl ; save column 31 address
    ld (hl),a ; write first byte ... a
    ld a,l
    add a,31
    ld l,a
    ld (hl ...
    Alcoholics Anonymous Alcoholics Anonymous November 2006 Development
  • 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…

    ... /> add a,(hl)
    add a,(hl)
    add a,(hl)
    add a,(hl)
    add a,c
    add a,(hl)
    add a,(hl)
    add a,c
    add <…
    robpearmain robpearmain November 2006 Development
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... /> [code]
    call gethl ; hl = screen address at column 31 ... address
    ld (hl),a ; write first byte into ...
    ld a,h ; change hl to attribute address
    a
    ld a,l
    add a,31
    ld l,a
    ld (hl ...
    Alcoholics Anonymous Alcoholics Anonymous November 2006 Development
  • ZXSpin 0.61 Available nowHi all! Well, after a lengthy few testing cycles, I'm taking the plunge and uploading the latest version of ZXSpin, to replace the rather aged old 0…

    According to the [URL=http://www.mdfs.net/Software/Z80/Exerciser/Spectrum/]Z80 Exerciser[/URL], some flags are wrong.

    The failed tests are:
    hl,
    add hl,
    add ix,
    add iy,
    bit n,
    Metalbrain Metalbrain December 2006 Emulators
  • ZXSpin 0.61 Available nowHi all! Well, after a lengthy few testing cycles, I'm taking the plunge and uploading the latest version of ZXSpin, to replace the rather aged old 0…

    ... tests are:
    hl,
    add hl,
    add ix,
    add iy,
    bit ...
    Dunny Dunny December 2006 Emulators
<1…567891011…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