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…28293031323334>
  • 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…

    ... clear the screen

    loadfont:
    ld hl,(23606) ;load HL with value ... string
    ; ld bc,6 ;BC contains string length
    ld de,dat ; ... br /> pop hl ;recover value from the stack
    ld (23606),hl ;restore ...
    alienbanana alienbanana 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…

    ... />
    ld a,2
    call 5633 ;open channel to screen (top ... 22 lines)
    ld de,dat ; address of string
    ld bc ... ] **
    pop hl ;recover value from the stack
    ld (23606),hl ;restore original ... reached the bottom of the screen?
    Morkin Morkin 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…

    ... screen (top 22 lines)
    ld de,dat ; address of string
    ld bc ... ] **
    pop hl ;recover value from the stack
    ld (23606),hl ;restore original ... reached the bottom of the screen?[/QUOTE]
    I think defb ...
    rich_chandler rich_chandler 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…

    ... sub-routines to disassemble a screen into random bytes and ( ... br /> ld hl,$4000
    ld a,$23 ;A =INC HL
    ld (INCDEC), ...

    pop bc
    dec bc
    ld a,b
    or ...
    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…

    ... (hl) ;increment screen INK directly
    INK_OK: ld bc,(CHANGED)
    inc bc
    ld (CHANGED),bc ... :

    pop de
    SKIPDE: pop bc
    dec bc
    ld a,b ...
    Battle Bunny Battle Bunny February 2014 Development
  • Pac-Land: can be coloured?All versions of this game are full coloured, but not the Spectrum version. It has large sprites, but maybe the scroll is too fine to make a coloured …

    ... bottom screen black
    EX AF,AF'
    LD HL,23296 ;tile buffer, tile ... /> LD HL,23296 ;fill buffer with empty spaces
    LD DE,23297
    LD BC,639 ...
    LD (HL),32 ...
    Ralf Ralf February 2014 Games
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... br /> ld sp,bomberdata ; bomber graphic loc

    ld hl,$4810 ; screen coordinates equivalent ... of 10th line on screen display

    pop de ; load bomber ... of 16th line on screen display

    pop de ; load ...
    Einar Saukas Einar Saukas February 2014 Development
  • Using the stack to blit bufferI was using a ldir to blit my back buffer to the screen RAM, and it was working pretty well if not rather slow. After reading about using the stack …

    ... ld sp,0
    pop hl
    pop de
    pop bc
    pop af
    exx
    pop hl ...
    pop de
    pop bc
    cred_adr_2 ld sp ...
    VBI VBI February 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ...

    print_tile:

    ld bc,(tile_x) ; loads C with column ... x8 pixel lines

    ; ld bc,(tile_x) ; retrieve co-ordinates
    HL and POP HL. This saves the screen location so that ...
    polomint polomint March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ...
    ld bc,0
    ld (tile_x),bc ; start at top left of screen

    pop bc ; retrieve BC
    call get_screen_attr
    ld a,(de)
    ld (hl),a ...
    Morkin Morkin March 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ...
    ld bc,0
    ld (tile_x),bc ; start at top left of screen

    pop bc ; retrieve BC
    call get_screen_attr
    ld a,(de)
    ld (hl),a ...
    alienbanana alienbanana March 2014 Development
  • New bicolour game coming very soon.And they say budget software houses can't afford to advertise :-D [IMG]http://i1142.photobucket.com/albums/n608/daveyboyhughes/elstompo_advertsmall_…

    ... timing (it runs faster during screen render), but it's not ... /> LD SP,$5822+ROWREPT*32+19 ; reference columns 19 and 20
    LD HL ... ; columns 17 and 18 (*)
    LD BC,nn ; columns 19 and 20 ...
    Einar Saukas Einar Saukas April 2014 Games
  • Interface 1bis updateSupport for connecting a standard PC keyboard to the interface?s PS/2 socket, in place of a mouse, has been added. The external keyboard?s output is …

    ... PB_CLR EQU #83; Discard buffer contents
    ;
    ... LD HL,#02B0; Change the return
    3894 : e3 EX (SP),HL ... 38c0 : f1 NO_BRK POP AF; External keyboard
    Dan Antohi Dan Antohi April 2014 Hardware
  • Interface 1bis updateSupport for connecting a standard PC keyboard to the interface?s PS/2 socket, in place of a mouse, has been added. The external keyboard?s output is …

    ... PB_CLR EQU #83; Discard buffer contents
    ;
    ... br /> 0071 : f1 POP AF
    0072 : ... LD HL,#02B0; Change the return
    388e : e3 EX (SP),HL ...
    Dan Antohi Dan Antohi April 2014 Hardware
  • 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…

    ... your screen buffer is in linear order instead of Spectrum screen order? ... your data. Do POP to suck up data ... time using AF, BC, DE and HL (8 bytes) and ... br />
    Remember POP moves the stack pointer minus ... don't forget this buffer screen can be bigger than ...
    joefish joefish April 2014 Development
  • Fuller AY only gamesThe definitive list: 1) Demonstration Tape 2) Bodysnatchas 3) Star Bike

    ... /> ;set stack and cls
    ld sp,$8100
    call $0d6b
    hl
    ld (hl),$00
    inc hl
    ld (hl),$98
    inc hl
    ld (hl),a ...
    ld bc,$bffd
    ld a,(hl)
    out (c),a
    pop bc
    Jimmy Jimmy May 2014 Games
  • 30-column 8x2 multicolor (even in 48K)I don't recall any 8x2 multicolor routine for 30 columns that would work on all Spectrum models (including the Spectrum 48K), so I decided to write i…

    ... entire screen:

    [CODE]LD IX,nn
    LD IY,nn
    LD BC ...
    LD HL,nn
    PUSH HL ; columns 6 and 7
    LD SP,nn ... ; reference columns 28 and 29
    LD BC,nn
    LD DE ...
    Einar Saukas Einar Saukas May 2014 Development
  • 30-column 8x2 multicolor (even in 48K)I don't recall any 8x2 multicolor routine for 30 columns that would work on all Spectrum models (including the Spectrum 48K), so I decided to write i…

    ... /> ELSE
    LD A,(HL) ; extra delay
    LD (nn),HL ; update columns 0 ... /> PUSH HL ; update columns 6 and 7 on screen
    LD SP,nn ; reference ... columns 28 and 29
    LD BC,nn ...
    Einar Saukas Einar Saukas May 2014 Development
  • AMX mouse emulationI'm trying to add AMX mouse emulation to Spud but not getting very far. I can get a reaction to button presses but nothing to moving the mouse. …

    ... br /> 82ec e5 push hl
    82ed 21c180 ld hl,80c1h
    82f0 ... pop hl
    82fc d1 pop de
    82fd c1 pop bc
    82fe f1 pop ... the ULA is drawing the screen.
    Spectaculator's implementation ...
    Jon Needle Jon Needle May 2014 Emulators
  • AMX mouse emulationI'm trying to add AMX mouse emulation to Spud but not getting very far. I can get a reaction to button presses but nothing to moving the mouse. …

    ... br /> 82ec e5 push hl
    82ed 21c180 ld hl,80c1h
    82f0 ... pop hl
    82fc d1 pop de
    82fd c1 pop bc
    82fe f1 pop ... the ULA is drawing the screen.
    Spectaculator's implementation ...
    rich_chandler rich_chandler May 2014 Emulators
  • Optimal shifting for set pixel?Hi, I'm optimizing my set pixel code. For speed. But without using partitioned memory (i.e. a table on 256 byte boundary) I have optimal memory addr…

    ... is used to calculate display buffer memory offset, it's going ... HL,BC:LD H,HIGH PLOTTBL,L,D,B,(HL):INC H
    LD A,(HL ... (HL)
    INC H:LD C,A,A,(BC)
    OR (HL):LD (BC),A
    POP BC,HL ...
    g0blinish g0blinish 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$=" …

    Here's a much neater version of my previous post. Using IX for addressing the parameters simplifies the assembler code. The original routine needed all its parameters to be correct beforehand, as it was only doing a check on y, whereas all of x, y, x+w, y+ ...
    Battle Bunny Battle Bunny July 2014 Sinclair Basic
  • llvm-z80 statusFew months ago I read about efforts to produce llvm back-end for the Z80 (even perhaps as part of new z88dk). Any update on that? I found [URL="htt…

    ... , sp
    ld sp, ix
    ld hl, b
    inc hl
    ld b, (hl)
    ld a ... /> ld (hl), b
    ld a, c
    ld (c), a
    ld hl, 0
    pop bc ...
    Alcoholics Anonymous Alcoholics Anonymous September 2014 Development
  • BIFROST* ENGINE 1.2 released!Another improved version of the BIFROST* ENGINE is now available! Download it here: [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0027405[/u…

    ... somehow possible to use double buffer (128k) to overcome partial ... content from normal screen and draw on shadow screen, another copy ... interrupt:

    [CODE] ld b, 5
    loop:
    ENDR
    pop bc
    djnz loop
    ...
    Einar Saukas Einar Saukas October 2014 Brand new software
  • Making noises with the AYHow do you go about making noises from the AY chip in machine code? I'm wanting to make a pulsating humming noise that increases in volume as you ge…

    ... Ponloop LD BC,65533
    LD D,(HL)
    OUT (C),D
    LD BC, ... tho the object/screen then
    ; LD A,n (10 ... inc to next channel
    POP BC
    DJNZ pulsevolloop
    ...
    MatGubbins MatGubbins October 2014 Development
  • Banked memory running slower?I've just compiled a TAP which includes bank6, it loads ok, but the routines that are paged in run slightly slower. The Z80 snapshot has no such pro…

    ... ld bc,#7ffd
    ld hl,#ffff
    ld de,#1110
    ld ...
    set_page
    ld bc,#7ffd
    swap
    pop de
    pop af
    ld c,a
    mem1282
    pop hl
    pop ... hl,de
    ex de,hl
    mem1283
    djnz mem1282
    ld sp ...
    Jerri Jerri November 2014 Development
  • Alkatraz Protection System - "How to" and compo?I'm thinking about writing a "how to" regarding the [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0020807"]Alkatraz Protection System[/URL].…

    ... ff $0ats
    ld bc, $9a6f ; 5b06 ... 10/$15ts
    ld sp, $658f ; 5b0b ... LD L,E
    00200 CALL DEHR21
    00210 POP HL ...
    jp jp November 2014 Announcements
  • 64x48 monochrome big pixels display ideaHi. I was playing with this idea of having a simple 64x48 bytes buffer, 1 byte per pixel, then a renderer which would take that buffer and render it…

    pop de
    ld a,(de)
    ld h,c
    ld (hl),a
    inc ... h
    ld (hl),a
    inc h
    ld (hl ... /> ld sp,bufferline[N]
    ret ;->

    ld h,c
    ld (hl ... 3 lines (32 bytes) to screen
    char char December 2014 Development
<1…28293031323334>

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