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.043s
<1…567891011…34>
  • Is there an SNA halt bug?Hello all, I noticed that some SNAs don't work on my emulator but they do work in almost everyone else's, SPUD fails with them too which is a tad sp…

    ... .
    pop af
    ld i,a
    pop hl
    pop de
    pop bc
    pop af
    ld r,a
    pop af
    ld sp, (22B0h) ; SP
    John Elliott John Elliott July 2013 Emulators
  • Is there an SNA halt bug?Hello all, I noticed that some SNAs don't work on my emulator but they do work in almost everyone else's, SPUD fails with them too which is a tad sp…

    ... .
    pop af
    ld i,a
    pop hl
    pop de
    pop bc
    pop af
    ld r,a
    pop af
    ld sp, (22B0h) ; SP
    Korinel Korinel July 2013 Emulators
  • generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…

    ... 10 seconds to blank the screen ... but ... there's one sma ... were here
    pop hl
    pop bc
    dec bc
    ld a,b
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • 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…

    ... /> pop bc ;BC=$3365
    pop de ;DE=$0000
    inc sp
    inc sp
    pop hl ;HL ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Scrolling by 2 pixelsWhat is the fastest way of scrolling a Spectrum screen line by 2 pixels left or right? When thinking about it I've come to this simple solution: [C…

    ... /> pop hl
    pop de
    inc sp ;can't do "pop bc"
    inc sp ; as ... one pixrow
    ld hl,256-32
    add hl,sp
    ld sp,hl
    dec ...
    Battle Bunny Battle Bunny August 2013 Development
  • Scrolling by 2 pixelsWhat is the fastest way of scrolling a Spectrum screen line by 2 pixels left or right? When thinking about it I've come to this simple solution: [C…

    ...
    exx
    pop hl
    pop de
    pop bc
    rla
    rr ... de
    push hl
    ld hl,10
    add hl,sp
    ld sp,hl
    xor ...
    Battle Bunny Battle Bunny August 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…

    ... /> [CODE]Full screen flip

    attrs ld hl,$5AF0
    ld ix,$0000 ...
    add ix,sp
    ld sp,$FFF0 ...
    ld a,(bc)
    ld c,(hl)
    ld (hl),a
    ld a,(bc)
    ld (de ...
    jamorski jamorski September 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,sp
    bit 3,h
    jr nz, alp
    screen ld b ... /> ld c,a
    ld a,(bc)
    ld c,(hl)
    ld (hl),a
    ld a,(bc ... )
    ld (de ...
    jamorski jamorski September 2013 Development
  • 128 BASIC-compatible way of loading BASIC as code?On a 48K Speccy (or from 48 BASIC or USR 0 mode on a 128K machine), one can do a silly trick like this: [code];; load a 4000 byte BASIC program ld i…

    ...
    CALL $04C2 ;SA_BYTES
    pop bc
    ret

    ; ... ;LD-BYTES

    ld hl,(23613) ;(ERR_SP)
    ld sp,hl ;reset stack

    ld hl ...
    Battle Bunny Battle Bunny September 2013 Development
  • SCREEN$ bug fixI've been using the SCREEN$() function recently for reading data off the screen rather than taking up space with an array and I got fed up with the s…

    ... codes $80-$87 match the screen character,
    ;if not use ... ,0
    pop hl
    ld bc,12
    add hl,bc
    ld c,(hl) ;C =col ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • Copy 4Kb in Assembly?Here's an interesting problem: what's the best way to copy a block of 4Kb in assembly? The most obvious solution is to use [B]LDIR[/B]: [CODE] l…

    ... /> LD SP,IX
    POP HL
    POP DE
    POP BC
    EXX
    POP HL
    POP DE ...
    POP BC
    POP AF
    LD SP,IY ...
    Ralf Ralf October 2013 Development
  • Copy 4Kb in Assembly?Here's an interesting problem: what's the best way to copy a block of 4Kb in assembly? The most obvious solution is to use [B]LDIR[/B]: [CODE] l…

    ... /> LD SP,IX
    POP HL
    POP DE
    POP BC
    EXX
    POP HL
    POP DE ...
    POP BC
    POP AF
    LD SP,IY ...
    Metalbrain Metalbrain October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... DE
    pop bc ; error address to BC
    ld (hl), 0x3e ; ... ld sp, hl ; SP to empty GOSUB stack
    push bc ; stack error address
    ld ... pop bc ; stmt-ret address to BC
    pop hl ; error address to HL
    pop ...
    chev chev October 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    ... /> ld hl, sp
    push hl
    ld hl, source + 32
    ld sp, hl
    pop af; 2
    pop bc ... ; 4
    pop ... de; 6
    pop hl; ...
    chev chev November 2013 Development
  • Small demo to show my sprite engine for ZX Spectrum 48KThis demo shows 13 sprites moving at 50fps totally flicker free: 12 enemies bouncing in edges and the main character, controllable with OPSA (note S …

    ... , isn't using LD:PUSH in a flip screen game a bit ... ] ;...
    pop de
    ld a,(hl)
    ld (bc),a
    inc bc
    and ... e
    or d
    ld (hl ...
    Hikaru Hikaru December 2013 Development
  • Small demo to show my sprite engine for ZX Spectrum 48KThis demo shows 13 sprites moving at 50fps totally flicker free: 12 enemies bouncing in edges and the main character, controllable with OPSA (note S …

    ... , isn't using LD:PUSH in a flip screen game a bit ... ] ;...
    pop de
    ld a,(hl)
    ld (bc),a
    inc bc
    and ... observed) a 40000 cycles flip screen every frame. This is almost ... switch between normal a shadow screen at the begining of the ...
    antoniovillena antoniovillena December 2013 Development
  • What Spectrum projects (Software/Games/Utility)(Hardware)(Others) are you working on?So, basically that :) You dont have to give names or more clues if you dont want to ;) Also, if you are working on more than one, you can tell all of…

    ... ; uses : af, bc, de

    ld a,b
    or ... /> ld a,e
    ld e,l
    ld d,h ... ld (hl),a
    inc de

    dec bc
    ld a ... />
    pop hl
    pop bc
    pop de
    ex (sp),hl

    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... /> ld (COORDS),bc
    call $22aa ;PIXEL_ADD ;get x,y screen address
    ld ...
    ld (hl),a
    pop hl
    pop bc
    djnz NextPoint
    pop bc
    ...
    Battle Bunny Battle Bunny January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... hl,de ;(RAMTOP)-SP
    ld b,0
    ld c,l
    inc bc ;BC ... /> ld (23730),de
    push hl
    sbc hl,de ;old - new
    pop hl ...
    Speccy_James Speccy_James January 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... it addresses the full screen, handles 96 characters, 16 ... ex de,hl ;DE=display file address
    pop af
    ... :
    ld hl,BlockData-SetBLOCK
    add hl,bc
    ld (23680),hl
    ...
    Battle Bunny Battle Bunny February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... my second attempt at a screen attribute reveal routine ( [i]the ... nz,DELAY2

    pop bc
    pop hl
    ld de,(L2R2L)
    add ...
    Battle Bunny Battle Bunny February 2014 Development
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... />
    begin_loop:

    ex (sp),hl ; hl = array_lo

    push de ... , size)
    pop bc

    ld e,l
    ld d,h ; de ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
  • Block RoutineHi Folks, I want to draw a block on the screen dependent on providing the X,Y,W,H values. I came up with the following: [CODE]100 LET l$=" …

    ... a filled rectangle on the screen. Whilst reading the "Step-by ... I came across the partical screen clear routine.

    Here ... /> POP HL
    POP BC
    INC H
    DJNZ 63061
    POP HL
    POP BC
    LD ...
    Paddy Coleman Paddy Coleman July 2014 Sinclair Basic
  • Block RoutineHi Folks, I want to draw a block on the screen dependent on providing the X,Y,W,H values. I came up with the following: [CODE]100 LET l$=" …

    ... very pretty. The "out of screen" check is wrong, by the ... of screen
    LD (a63092),DE ;unnecessary

    add hl,bc
    ld a,(hl ... /> POP HL
    POP BC
    INC H
    DJNZ a63061
    POP HL
    POP BC
    LD ...
    Battle Bunny Battle Bunny July 2014 Sinclair Basic
  • Why no PLOT, etc. on bottom two lines?I was pondering if there was any way to get PLOT, etc. to address the full screen from BASIC without having to write a few lines of assembler to bypa…

    ... /> [code]
    ;Full Screen PLOT
    ;Syntax: FLASH x ...
    Plot191:ld bc,(23653) ;BC=(STKEND)
    push bc
    call ... or (hl)
    ld (hl),a

    pop bc
    ld (23653),bc
    ...
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • Why no PLOT, etc. on bottom two lines?I was pondering if there was any way to get PLOT, etc. to address the full screen from BASIC without having to write a few lines of assembler to bypa…

    ...
    [code]
    ;Full Screen PLOT, Y=0 to +191 ...
    Plot191:ld bc,(23653) ;BC=(STKEND)
    push bc
    call ... or (hl)
    ld (hl),a

    pop bc
    ld (23653),bc
    ...
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • TAP version of CrosswizeIs it possible to create a TAP version of Crosswize with all levels? On the tape or a TZX file, the levels are in the same block and a custom loader …

    ... bc
    ld hl,49152
    ld de,16384
    ld bc,4096
    ldir
    pop bc ...
    ld ... into 20480 (that part of screen is redrawn when playing, so ...
    Zup Zup August 2014 Games
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... phase shapes scattered around the screen; eg.:
    [code]single phase ... /> SetGbyte:
    pop hl
    ld (hl),a
    inc hl
    pop bc
    djnz LoopG1 ...
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
<1…567891011…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