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.032s
<1…26272829303132…34>
  • 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
    INC IXH[/B]
    pop hl
    pop de
    pop bc
    exx
    pop hl
    pop de
    pop bc
    pop af
    [B] ld sp ...
    Ralf Ralf 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…

    ... ) interrupt
    .ifdef ROM0
    ld sp, 0 ; set stack to top ... /> pop bc ; unstack BC
    pop de ; unstack DE
    pop af ; unstack AF
    pop hl ... ; then copy to err_nr
    ld sp, (err_sp) ; put value of err_sp ...
    chev chev 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…

    ... get parameters
    dec bc ; reduce BC
    ld hl, -10 ; filenames can be ...
    pop hl ; unstack pointer
    ld a, (ix + 0) ; SCREEN$ and CODE ... area
    pop bc ; unstack length
    push hl ; stack pointer ...
    chev chev 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…

    ... /> ld hl, (prog) ; avoid corruption
    ex (sp), hl ; stack prog
    push bc ; stack ... or line
    pop hl ; unstack new pointer
    pop bc ; unstack length
    chev chev 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…

    ... ; round up
    ld (hl), a ; store in buffer
    and a ; ... /> pop hl ; unstack offset to HL'
    exx ; main register set
    ld bc, ( ... so
    ld a, (hl) ; get digit from buffer
    inc hl ; next digit ...
    chev chev 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…

    ...
    ex de, hl ; number to HL
    ex (sp), hl ; number to stack ... /> pop bc ; unstack exponents
    pop hl ; unstack pointer to exponent byte
    ld a ...
    chev chev 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…

    ... /> ld c, (hl) ; get code
    ld hl, tbl_priors - 195 ; table address
    add hl, bc ... 6, (hl) ; string?

    org 0x2770
    s_endloop:
    pop bc ; unstack ...
    chev chev 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…

    ... /> pop bc ; unstack BC
    ld hl, (stkend) ; address of first location to HL
    ld (hl), a ... parameters
    pop hl ; unstack pointer
    ex (sp), hl ; length to HL
    and ...
    chev chev 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…

    ... /> ld d, (hl) ; in DE
    ld hl, re_entry ; stack re-entry
    ex (sp), hl ...
    ld a, c ; restore A
    pop hl ; unstack HL
    pop bc ; unstack BC
    chev chev 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…

    ... ; string null?
    ex (sp), hl ;
    ld a, b ;
    jr ... ; reduce
    inc hl ; lengths
    ex (sp), hl ; and jump
    ... other_str:
    pop bc ; unstack second
    pop hl ; string parameters
    ld a, c ...
    chev chev 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…

    ... attribute screen address, and [B]HL[/B] referencing the corresponding pair in buffer ... :
    [CODE] ld a,(hl)
    ld (bc),a
    dec hl
    ldd[/CODE ...
    Einar Saukas Einar Saukas 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…

    ... screen in Finders Keepers

    [CODE]ClearScreenPart1:
    9551 210000 ld hl ... ,$0000
    9554 010c00 ld bc,$000c
    ld sp,ScreenAttrTop
    ClearScreenPart1Lp:
    955e e5 push hl< ...
    David Jones David Jones 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…

    ... d ; point to next screen location
    inc l ... /> dec de ; adjust screen pointer
    djnz pos_2a ... /> dec de ; adjust screen pointer
    djnz pos_5a ...
    ld (coords), hl ; set coords
    pop bc ; unstack ...
    chev chev October 2013 Development
  • z88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…

    ... backbuffer to screen

    LD BC,999
    LD DE,04000h
    LD HL,37000 ... /> [COLOR="Red"]
    pop hl
    pop de
    pop bc
    pop af
    [/COLOR ...
    Alcoholics Anonymous Alcoholics Anonymous October 2013 Development
  • z88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…

    ... />
    //copy backbuffer to screen
    #asm
    push af ... push hl
    LD BC,999
    LD DE,04000h
    LD HL,37000

    pop hl
    pop de
    pop bc
    pop af

    slenkar slenkar 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…

    ... :
    ld de, mem_2_4 ; temporary buffer
    push hl ; stack ... HL
    ld (hl), 14 ; store hidden number marker
    pop bc ... buffer address
    ld bc, -10000 ; insert
    call insert_dgt ; ten-thousands
    ld bc ...
    chev chev 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…

    ... lower screen in use
    pop bc ; ... HL
    pop bc ; unstack row and column

    .ifdef ROM1
    ld ...
    chev chev November 2013 Development
  • Map compressor based on ZX7Hi I have release a map compressor for "La Churrera" game engine, but can be adapted to any other game. Source code is here (Download TmxCompress.0.…

    ... /> ld b, d ; b= 0 because lddr moves bc bytes
    ex (sp), hl ... /> lddr
    pop hl ; restore source address (compressed data)
    ld b, a ...
    antoniovillena antoniovillena November 2013 Development
  • Map compressor based on ZX7Hi I have release a map compressor for "La Churrera" game engine, but can be adapted to any other game. Source code is here (Download TmxCompress.0.…

    ... /> ld b, d ; b= 0 because lddr moves bc bytes
    ex (sp), hl ... /> lddr
    pop hl ; restore source address (compressed data)
    ld b, a ...
    antoniovillena antoniovillena November 2013 Development
  • Troublesome routine, help needed!Having problems with this routine, it basically fires a rocket up the screen, but refuses to detect collisions. I'm using attribute blocks for detect…

    ... fires a rocket up the screen, but refuses to detect collisions ...
    pop bc
    djnz loop
    ret
    print ld a,2 ... HL, HL
    ADD HL, HL
    ADD HL, HL
    ADD HL, HL
    ADD HL, HL
    LD DE ...
    Jerri Jerri November 2013 Development
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ... pop iy
    pop ix
    pop hl
    pop de
    pop bc
    pop ... hl

    ld hl,(_mytimer)
    inc hl
    ld (_mytimer),hl

    pop hl ... rendernow=1;
    } // draw screen now


    ...
    slenkar slenkar November 2013 Development
  • Clear the screen from assemblerI want to clear the screen before I draw my graphic elements on it. Speed is not important so I was thinking of using the rom CLS option if that is p…

    ... set a buffer

    [code]
    ; clear_mem/set_mem
    ; hl = memory ... to clear or fill a buffer with the same byte value ... that as well as the screen, so wrote a subroutine for ... can just just ld hl, address; ld de, address+1; ld bc, count-1 and ...
    Paradigm Shifter Paradigm Shifter November 2013 Development
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ... pop iy
    pop ix
    pop hl
    pop de
    pop bc
    pop ... hl

    ld hl,(_mytimer)
    inc hl
    ld (_mytimer),hl

    pop hl ... rendernow=1;
    } // draw screen now


    ...
    slenkar slenkar November 2013 Development
  • Collision Detection in SP1Hi, Does anyone have a well-documented example of using collision detection in spritelib. I've search WoS and Z88DK forums but no joy. Something wi…

    ... pop iy
    pop ix
    pop hl
    pop de
    pop bc
    pop ... hl

    ld hl,(_mytimer)
    inc hl
    ld (_mytimer),hl

    pop hl ... rendernow=1;
    } // draw screen now


    ...
    slenkar slenkar November 2013 Development
  • bit manipulation conundrumWhat's a neat way to change this bit pattern in registers BCDE: [code]Loop0: ;change B:00000000 C:abcdefgh D:ijklmnop E:qrstuvwx[/code] to this bit …

    ... /> ld ix,bufferSource
    ld iy,bufferTarget

    ; store in source buffer ... /> pop hl
    ld (hl),b
    inc hl
    ld (hl),c
    inc hl
    ld (hl),d ... af'
    djnz Loop0
    pop bc ; recover the loop counter from ...
    David Jones David Jones November 2013 Development
  • A new full-screen bicolor engine called NIRVANA[I]OK, there's something I need to clarify first: Nowadays if you write [B]"multicolor"[/B] everyone assumes it refers to "multicolor 8x1" (an attri…

    ... attempt in filling a complete screen with all the tiles in ... br />
    bigloop
    pop af
    ld b,14 ;width
    call draw_tile
    pop af
    pop hl
    pop bc
    pop de


    push af
    ld a,(change+1)
    add ...
    enthusi enthusi December 2013 Brand new software
  • Clearing 22 lines of the screenHow do I go about clearing the top 22 lines of the screen and leave the bottom #0 area untouched? I have a routine to reset the attributes, but cant…

    ... upper screen)
    CALL 05633 ; CHAN_OPEN a=2
    LD BC,cleartextend ... />
    LD HL,cleartext+1
    INC (HL)
    POP BC
    DJNZ ...
    MatGubbins MatGubbins 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…

    ... /> ld hl,dec40 ; copy unpacker
    ld de,23296 ; to 23296
    ld bc,end_dec40 ... ; do it
    ld sp,24099 ; set stack
    ld hl,65535-21602 ; address ... hl,de
    ld c,a
    ld b,0
    ldir
    pop hl ...
    FrankT FrankT 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…

    ... />
    ld a,2
    call 5633 ;open channel to screen (top ... 22 lines)
    ld de,dat ;point ... /> ld bc,6 ;BC contains string length
    call 8252 ;PRINTs string
    pop hl ...
    daveysludge daveysludge February 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…

    ... open channel to screen (top 22 lines)
    ; ld de,dat ... data string
    ; ld bc,6 ;BC contains string length
    ... address of string
    ld bc,eostr-dat ; length of ... /> pop hl ;recover value from the stack
    ld (23606),hl ;restore ...
    alienbanana alienbanana February 2014 Development
<1…26272829303132…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