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.030s
<1…78910111213…34>
  • 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 hl,0
    SFXRTl0: push bc
    push iy
    pop bc
    hl
    add hl,bc
    ex de,hl
    pop bc
    dec bc
    ld ...
    Shando Shando September 2012 Development
  • Hooky - hook ZX ROM and rewire RST and NMI to RAM - rantThis is a rather long rant. Not for short tempered. :) The objective is to hook into RST "vectors" and NMI on a Spectrum without affecting the normal…

    ... HL ; HL=HL-1 (hl back to 0xffff)
    0x11F0 EXX
    0x11F1 LD (5CB4),BC ... initially)
    0x1200 LD (5CB4),HL ; overwrite BC' with "real HL" (where mem test ... LD (HL),#0x3e ; write 3e there
    0x1227 DEC HL ; hl=ff56
    0x1228 LD SP,HL ...
    tstih tstih July 2014 Development
  • Screen buffer Tip from Raff CeccoRaff very kindly gave me this tip: "Incidentally, I remembered a trick I used on the Z80 for extra speed: When clearing the screen buffer, it was a…

    ... :

    When clearing the screen buffer, it was actually much quicker ... to the end of the screen memory area and push zero ... onto the stack until the screen area was filled.

    alienbanana alienbanana October 2014 Development
  • Other than using attributes what other ways to detect collisions, when using char based movement?So I'm slowly working out the bits and pieces to write a game completely in assembly. I've been using attributes when writing in BASIC to detect whet…

    ...
    push bc
    ld bc,32
    LOOP:
    add hl,bc
    dec ... a
    jr nz,LOOP
    pop bc
    add hl,bc ...
    ld a,(hl) ; a now holds ...
    ivanb303 ivanb303 November 2017 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…

    ... bc
    ld (tempbc),BC
    ld (temphl),HL
    POP BC ;


    STEP: LD HL,(COORDS ...
    rtunes rtunes October 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…

    ... guardar bc e hl
    ld (tempbc),BC
    ld (temphl),HL
    POP BC

    STEP: LD HL ...
    rtunes rtunes October 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…

    ... : bc = (y,x) coordinate of pixel
    ex de,hl

    pop bc ...
    ld e,b ;guarda o ...
    rtunes rtunes 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…

    ... /> ld hl,PtsTab
    ld a,#80
    lp_mpt1 ld (hl),a< ... /> and #1f
    ld (hl),a
    inc l< ... ld b,#c0
    lp_mpt3 ld (hl),e
    inc h
    ld (hl ...
    SerzhSoft SerzhSoft January 2002 Sinclair Miscellaneous
  • Horizontal scrollDoes anyone know how to do a 2 or 4 pixel left or right horizontal scroll of the spectrum screen. I can make a 1 one pixel scroll with: ... rl (hl…

    ... /> lscrsp: di
    ld (temp_sp),sp
    ld sp,hl

    ld sp,ScrAddr2+4608;512 ... /> ld c,16

    lscrsp20:
    pop hl

    ; adc hl,hl ;You ...
    rtunes rtunes March 2003 Sinclair Miscellaneous
  • 16k/48k Sound FXI am now moving on from graphiocs to trying to build up a library of sound fx to be used with a 16k/48k Spectrum. Does anyone have any example m/cod…

    ...

    noise ld e,250
    ld hl,0
    noise2 push ... ,32
    noise0 push bc
    ld a,(hl) ; next "random" number.
    pop bc
    djnz noise0
    pop de
    ld a,e ...
    robpearmain robpearmain May 2004 Development
  • 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…

    ... against
    CDLOOP PUSH BC
    LD (HL),0 ;Reset Collision Detection Flags ... ;for next sprite
    POP DE

    POP BC
    DJNZ CDLOOP ... /> SET 1,(HL)
    RET

    RETURN POP BC
    LD A,9 ...
    dmsmith dmsmith August 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 …

    ... ,A
    LD B,0
    ADD HL,BC
    LD A,(HL) ; get pixelpointer ... /> XOR (HL) ; reset pixel
    LD (HL),A ; put back on screen
    RET ...
    Dr BEEP Dr BEEP 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 …

    ... .

    Take out the LD IXL,0 instructions

    DEC A
    LD HL,JUMPTAB
    ADD A,A ... /> LD L,A
    LD SP,HL
    POP IY
    POP HL
    LD (JMPADDR+1),HL
    dmsmith dmsmith 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] ; ***********…

    ... ), SP
    EX DE, HL
    LD SP, HL
    EX DE, HL

    POP DE ...
    LD (HL), E ...
    Fikee Fikee August 2004 Development
  • Anyone know the address mappings...of the hardware resources on the speccy; From the screen display address range to all the hardware control registers. etc. Where can I get access t…

    ...


    CDETECT LD HL,64010 ;address of first sprite ... DEC C ;Will add BC & HL later to point to< ... />
    INCPOINTER ADD HL,BC ;no collision so move to ... RET

    COLLISION POP BC
    LD A,MAXSPRITES ;MAXSPRITES - B gives ...
    dmsmith dmsmith September 2004 Development
  • 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…

    ...


    CDETECT LD HL,64010 ;address of first sprite ... DEC C ;Will add BC & HL later to point to< ... />
    INCPOINTER ADD HL,BC ;no collision so move to ... RET

    COLLISION POP BC
    LD A,MAXSPRITES ;MAXSPRITES - B ...
    dmsmith dmsmith September 2004 Development
  • Installing Z88DK Z88DK INSTALLATION Z88DK is distributed in two parts. The first part is the platform independent bits (including source and z80 libraries) and th…

    ... /> call sp_PrintAtInv
    pop bc
    pop bc
    pop bc
    pop bc
    ld hl,20 ;const
    pop bc
    pop bc
    pop bc
    pop bc
    ld hl,(_sp_ClipStruct)
    push hl
    push na_th_an na_th_an April 2005 Development
  • Switch to 48mode without 'SPECTRUM' commandIs there a poke(s) to switch to 48 mode without SPECTRUM command. I want my tape loaders to switch automatically. I know how to switch ram banks ok…

    ... /> LD (HL),76h
    DEC HL
    LD (HL),0
    DEC HL
    LD (HL),51h
    LD SP,HL ...
    LD BC,7FFDh
    LD ...
    John Elliott John Elliott October 2005 Sinclair Basic
  • 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 …

    ... br /> ld (bc),a
    ld a,h
    ld (de),a
    pop hl ;restore ... pop hl ;restore pivot
    pop hl ;pop lo
    push bc ;stack=left-hi
    ld ...
    Metalbrain Metalbrain January 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 ... />

    .rand
    ld hl,(int_seed)
    ld a,h
    add ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Calling ROM routinesFirstly, sorry if this is the wrong forum to post this in, but I wasn?t quite sure under which heading is best fitted. I?m trying to figure out how…

    ... CH ADD
    LD BC,35000
    LD (23645),BC

    POP BC
    LD (23645),BC

    ... ; Move answer into BC then RET
    PUSH HL ...
    POP BC ...
    trellis trellis July 2006 Development
  • Vector drawing routines.Anybody could point me to some sort of vector drawing package of routines, callable from BASIC? With "vector drawing" I mean to draw 2D pictures with…

    ... /> POP BC
    LD C,A ; X-pos to C
    POP HL
    LD (#5C5D),HL ...
    Dr BEEP Dr BEEP October 2007 Development
  • Multi-tasking OS on the Spectrum?Do you think it is possible to build a multi-tasking operating system on the Spectrum? That is, most important the ability to have several task run…

    ... the stack pointer - see the LD SP, HL instruction. Going the other way ... takes two instructions; LD HL, 0 followed by ADD HL, SP.

    Note ... when you save context, and pop the lot when you restore ...
    Winston Winston November 2007 Development
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ... , LD BC, (SP) will do the trick (or maybe LC C,(SP); INC SP; LD B,(SP ... to HL
    ADD HL,SP ;HL now holds the current SP (there's no LD HL,SP ...
    ...

    LD SP,HL ;Restore the original SP[/CODE]

    [QUOTE ...
    Chris Pile Chris Pile January 2009 Development
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ... ROM):
    [CODE]
    LD (END+1),SP
    LD SP,SOMEDATA
    ... ; do ... something with the data
    END: LD SP ... /> PRINT
    POP HL
    LD A,(HL)
    INC HL
    PUSH HL
    OR ...
    Patrik Rak Patrik Rak January 2009 Development
  • Tips on optimizing some newbie assembly routinesI'm starting to learn some assembly language. The best way to learn is to actually code something you are going to use, so I'm creating a very simple…

    ... ; Next cell...
    pop hl

    pop bc
    ld a, c
    cp ... />
    ; Next cell...
    pop hl

    inc e
    Metalbrain Metalbrain June 2009 Development
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... ]paranoid_nop_backs exx ;HL' = SP
    ld sp,nop_back_table ;Table start
    nop_back_adds_loop pop hl ;Address
    Chris Pile Chris Pile November 2009 Games
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... ]paranoid_nop_backs exx ;HL' = SP
    ld sp,nop_back_table ;Table start
    nop_back_adds_loop pop hl ;Address
    Retrobrothers Retrobrothers November 2009 Games
<1…78910111213…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • 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

HitBox

Word Docs Hits
screen 45.8K 73.8K
buffer 2.6K 4.9K
pop 6.4K 13.2K
bc 3.6K 14K
ld 6.3K 67.3K
sp 1.7K 4.2K
hl 6.2K 48K

Related Threads

  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • Return of Speccy screen buffer formatI recently discovered that the Spectrum screen buffer format that allows only two colours in an 8x8 pixel block has made its return in a slightly dif…
  • Writing to the screen from a bufferI?m designing a game and am spending a bit of time trying different ideas before I commit my self. I?m currently thinking of writing data to a buffer…
  • Question on copying screen bufferHi,<br /> <br /> Al my prevoius games were copying graphics directly to screen memory starting at 16384. Now I'm experimenting with screen buffer whe…
  • Real Spectrum screen flicker with SCREEN$I've written a basic loader to simply do a 'load "" screen$' based video from a divide+ however I'm finding the Spectrum can't render a screens and a…
  • Wow! Splitscreen gaming goes full screen!!! One screen gives two fullscreen views!Sounds a bit Alice in Wonderland (If Lewis Carroll had written it in the twenty-first century) but aparently, using 3D glasses you can get two full s…
  • ULAPlus: showing different screen modes in one screenI wanted to write a demo showing the same screen, converted to various screen modes available on the Spectrum (well, a Spectrum clone capable of show…
  • Double-Buffer ScreenFor my Alien Breed Speccy re-write I decided to use a Double Buffer (DB) or 'Back Screen' to draw all the game action onto, before shuffling the whol…
  • Buffer to screen - how much?[FONT=Calibri][SIZE=3]I am starting to build a new game and am researching different ways to accomplish what I need to do. My question is, is it poss…
  • Screen buffer Tip from Raff CeccoRaff very kindly gave me this tip:<br /> <br /> "Incidentally, I remembered a trick I used on the Z80 for extra speed:<br /> <br /> When clearing the…

Related Searches

  • ld hl de
  • ld bc eostr string
  • push pop to the screen
  • comparison screen buffer
  • screen buffer time
  • screen buffer compare time
  • linear screen buffer
  • screen address to buffer
  • ld bc hl
  • ex sp hl
  • screen copy push pop
  • ld bc 65533 a 254 out c
  • ld bc 65533
  • ld hl 5678
  • 33 ld hl xxxx
  • screen buffer push
  • screen buffer push bc
  • screen buffer pop bc
  • sp register stays on printer buffer
  • ld 23641 hl

Copyright © 2024 World of Spectrum