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.114s
<1…6789101112…34>
  • 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…

    ... br /> ld hl,SPkeytranstbl
    add hl,de

    ld a,$fe ; check ... 40
    add hl,de

    .nocaps
    ld a,f ; ... 80
    add hl,de

    .nosym
    ld a,(hl) ; a = ascii code ...
    Alcoholics Anonymous Alcoholics Anonymous July 2005 Development
  • Programming MC challengeIn the 80-ies I got the following assignment for a programming course. 2 16-bit values stored in #8000 and #8002 must be added together and stored i…

    ... LD A,(HL) 1
    INC HL 1
    INC HL 1
    ADC A,(HL) 1 ... first addition without CF (=0)
    LD (HL),A ... 1
    DEC HL 1
    DJNZ LOOP ...
    Dr BEEP Dr BEEP August 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... hl,2
    add hl,sp
    ld a,(hl) ; a = N
    inc hl
    inc hl ...
    ld e,(hl)
    inc hl ... ,(hl)
    inc hl
    ld b,(hl) ; bc = colours
    ex de,hl ; hl ...
    Alcoholics Anonymous Alcoholics Anonymous September 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... /> ld b,0
    add hl,bc
    add hl,bc ; hl = &encoder[c ... hl
    ld a,(hl)
    inc hl
    ld h,(hl)
    ld l,a ; hl ...
    Alcoholics Anonymous Alcoholics Anonymous October 2005 Development
  • ANN: midi2ay 0.1Well, here's the MIDI-to-AY converter I promised. I've named it "midi2ay" (original name eh?) [url="http://es.geocities.com/qllaria/midi2ay/midi2ay-…

    ... not necessary

    2. Add a loop mechanism

    3 ... /> finrsi ld (pos),hl
    dec a
    ld (hl),a
    finrsi_with_loop
    xor a
    end_rsi
    pissedbob pissedbob December 2005 Development
  • Machine Code: quicksort optimisationI came across this z80 quicksort implementation when going through the wikipedia article on the same. It's 44 bytes long. I was wondering if any of …

    ...
    dec hl
    add hl,hl
    add hl,bc
    ; bc = left, hl = right
    a,(hl)
    ld (bc),a
    ex af,af
    ld (hl),a< ... br /> inc hl
    inc bc ; bc ...
    Alcoholics Anonymous Alcoholics Anonymous January 2006 Development
  • 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
  • Codies help? Werewolves of LondonHi All, never one for shying away from the deep end, having only just dipped my toe in to the world of machine code I find myself trying to find out …

    ... over again and poking A into the address HL.
    [/quote]

    A' = sprite height (see 50552-50554 ...
    DE = amount to add to HL after the width
    of ...
    Alcoholics Anonymous Alcoholics Anonymous March 2006 Sinclair Basic
  • 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.

    ... l,a
    add hl,hl
    add hl,hl
    add hl,hl
    ld de,font-100
    add hl ... 2 pixels

    ld a,(hl) ; a = screen byte
    and #c0 ...
    Alcoholics Anonymous Alcoholics Anonymous March 2006 Development
  • Best and Easiest web authoring program?I have to do a web page for my missus who does freelance ceramic design, framed kids naming pictures, kids pictures etc etc etc. I have used dreamwea…

    ... it produces to be a little weird although it ... br />
    There is a dedicated newsgroup
    [url=" ... /group/Google-Page-Creator?hl=en"]http://groups.google. ... .uk/group/Google-Page-Creator?hl=en[/url]

    add.

    I have a lot of ...
    Geoff Geoff April 2006 Chit chat
  • 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 …

    I only fully tested ADC HL,DE and it took all ... MEMPTR = rp1_before_operation + 1. If I add 1 to what I call ...
    Fraser Fraser April 2006 Emulators
  • 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 …

    ... =Fraser]I only fully tested ADC HL,DE and it took all ... MEMPTR = rp1_before_operation + 1. If I add 1 to what I call ...
    Philip Kendall Philip Kendall April 2006 Emulators
  • 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 …

    ... in the same group as ADD/ADC/SBC rp1,rp2. Were these ... offset. I was testing on a +2A.
    Fraser Fraser April 2006 Emulators
  • 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 …

    ... in the same group as ADD/ADC/SBC rp1,rp2. Were these ... offset. I was testing on a +2A.[/QUOTE] hmm.. according to ...
    boo_boo boo_boo April 2006 Emulators
  • 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
  • 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 ... ld e,40
    add hl,de

    ... br /> add hl,de

    NoSym: ld a,(hl) ; a = ...
    Mr Millside Mr Millside 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
  • 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
  • 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…

    ... 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
  • +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
  • 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
  • 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…

    ... test is flawed. Given that a real spectrum fails, we cannot ... used? It may only be a timing difference, but we don ... of &0100 could make a difference."

    AFAIK timings ... , it failed these ones:
    hl,
    bit n,(+1)
    Metalbrain Metalbrain December 2006 Emulators
  • Wanted: z80 asm routines...for the Sam. This call goes out to Colin and others who know how it should be done. If you look on the Sam C disk you can see the implementation…

    ... hl,4
    add hl,sp
    ld a,(hl)
    dec hl
    ld d,(hl ... )
    dec hl ...
    ld e,(hl ...
    Alcoholics Anonymous Alcoholics Anonymous January 2007 Development
  • Who knows how to program a "pathfinder"?Hi all. I like to play games like "Colour Lines" and I think, I will create a version of this game for the SAM Coupe. It looks easy - until this "dam…

    ... hl),a
    jr z,next
    ld a,255
    ld (hl),a ... noempt
    ld a,l
    add a,16
    ld ... l,a
    call check ... br />
    check ld a,(hl) ; fetch value near field< ... blocked field
    ld (hl),a ; path+1
    ...
    Dr BEEP Dr BEEP January 2007 Development
<1…6789101112…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