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.050s
<1…6789101112…34>
  • Edge Grinder, how would YOU do it?I always meant to post about this and AndyC reminded me in the 'vs' thread in games. [QUOTE=AndyC;808887]The thing I love about threads like this is…

    ... HL,BC

    ; copy the character letter to the screen
    LD DE ... />

    POP HL ; recall stuff
    POP DE
    POP BC


    MatGubbins MatGubbins December 2014 Development
  • Help for beginner with z80Hi chaps, I'm reasonably new with z80, but had a fair amount of experience with 68000, so decided to give a few things a go. One little thing I'm t…

    ... HL,BC

    ; copy the character letter to the screen
    LD DE ... />

    POP HL ; recall stuff
    POP DE
    POP BC


    MatGubbins MatGubbins February 2015 Development
  • Small Machine Code Routines Which Maybe UsefulAs part of creating Flynn's Adventure in Bombland I created a lot of little routines to do all sorts of things. A lot of these I created based on inp…

    ...
    ld a,(fontcolour)
    ld (hl),a
    pop de
    ld a,c ... : ;arrive DE pointing at screen, HL at graphic
    ld bc,(charhalf) ;8 in ...
    pop de
    ret
    ;
    cls: ld hl,16384
    ld d ...
    R-Tape R-Tape December 2015 Development
  • Variable sized tiles /tile routineHow would you do a variable sized tile routine where the tiles have position variables too? Thanks would be interested to learn :)

    ... print all the graphics on screen that are in the table ... />
    call printblock
    pop hl
    inc hl
    jp buildlocation
    hl, hl
    add hl, bc
    ld a, (hl)
    inc hl
    ld h, (hl)
    ld l ...
    alienbanana alienbanana January 2016 Development
  • 128K programmingDoes anyone know any good resources on assembly programming for the 128? All I'm after is an "idiot's-getting-started-guide" on how to utilise the…

    ... HL
    LD (HL),000
    DEC HL
    LD (HL),081
    LD SP, HL
    LD BC,32765
    LD ... (video memory) as a temporary buffer. Data are transferred in chunks ...
    Alessandro Grussu Alessandro Grussu February 2016 Development
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... whole screen.
    [code]
    org 32768
    di
    ld bc,2048 ...
    loop: push bc
    call random
    pop bc
    ld a ... /> add hl,hl
    add hl,hl
    ld c,h
    ld hl,(seed)
    ld b ...
    FrankT FrankT April 2016 Sinclair Basic
  • Let's copy buffers!Figured I'd do some double buffered graphics, so I can render for several frames before displaying stuff. Yes, I mean on a 48k speccy, so no 128k spe…

    ... (BC is pre-loaded):

    [code]
    ld sp, hl
    pop de
    pop ... /> exa
    pop af
    pop bc
    pop de
    pop hl
    ld sp, #(constant value ...
    Hikaru Hikaru April 2016 Development
  • Let's copy buffers!Figured I'd do some double buffered graphics, so I can render for several frames before displaying stuff. Yes, I mean on a 48k speccy, so no 128k spe…

    ... screen address from lookup table
    next:
    ld sp, hl
    pop ... ix
    inc hl
    inc hl
    ... inc l
    inc hl
    ENDIF
    ...
    Hikaru Hikaru April 2016 Development
  • Let's copy buffers!Figured I'd do some double buffered graphics, so I can render for several frames before displaying stuff. Yes, I mean on a 48k speccy, so no 128k spe…

    ... screen address from lookup table
    next:
    ld sp, hl
    pop ... ix
    inc hl
    inc hl
    ... inc l
    inc hl
    ENDIF
    ...
    Einar Saukas Einar Saukas April 2016 Development
  • Proportional fontsI've been doing some proportional font drawing, purely on C level at the moment, but it's orders of magnitude slower than I'd want it to be. It's sti…

    ... the relevant bit on screen according to the ...
    ld hl,fe8fh
    ld c,(hl)
    push hl
    print ... /> db 00h,80h ;ld de,current char in text ...
    ld a,(de)
    ...
    jamorski jamorski October 2016 Development
  • How can I make a UDG rotate?I designed a set of UDG's that can be used for making shapes or letters. Trouble is that my circle - for example - consists of 4 pieces and it would…

    ... INC HL ; and move HL to the next screen byte
    LD A ...
    POP BC
    POP BC
    LD B,0
    LD C,A ...
    colonel32 colonel32 November 2017 Sinclair Basic
  • printing to the screen using pokei remember there being a way to print to the screen using pokes, which would allow you to print a character anywhere in the 175x255 matrix. can anyon…

    ... are talking about.

    LD SP, (23613)
    CALL 7289
    LD HL, 23705
    PUSH BC
    PUSH HL
    CALL 7828
    POP HL
    POP BC ...
    LD (HL), A ...
    digital digital August 2018 Development
  • Kempston Mouse DriverHi Folks, Does anyone know the email of Chris Cowley who wrote the Kempston Mouse Driver in the WOS Archive? Many thanks Paddy

    ... /> LD B,A
    INC HL ; and move HL to the next screen byte ...
    LD A,L ... 255
    POP BC
    POP BC
    LD B,0
    LD C,A
    Paddy Coleman Paddy Coleman September 2018 Hardware
  • Is it possible to run a single BASIC line via a ROM CALL of the Standard ZX 48k ROM?On: https://cygnus.speccy.cz/popis_trdos-assembler.php I found the following code: [code] CHADD equ 23645 ; Location of SOS variable CHADD ld…

    ... ld hl,commandline

    havelines:
    ld ($5C5D),hl ; CH_ADD

    ld bc ...
    ld bc,return
    push bc
    ld ($5C3D),sp ; update ...
    exitgoto:
    pop bc
    ld ($5C3D),bc ; restore orginal ERR_SP
    Luzie Luzie October 2019 Development
  • Is it possible to run a single BASIC line via a ROM CALL of the Standard ZX 48k ROM?On: https://cygnus.speccy.cz/popis_trdos-assembler.php I found the following code: [code] CHADD equ 23645 ; Location of SOS variable CHADD ld…

    ... /> ld hl,commandline

    ld ($5C5D),hl ; CH_ADD
    ld bc,($5C3D)
    push bc ...
    ld bc,return
    push bc
    ld ($5C3D),sp ; update ...
    exitgoto:
    pop bc
    ld ($5C3D),bc ; restore orginal ERR_SP
    Luzie Luzie October 2019 Development
  • What to write / programme?I've been trying to get back some motivation to write something in machine code for the Spectrum. I don't feel I am organised enough to write somethi…

    ... one will fill the screen with a user defined ... uses a table of screen addresses of the ... bc
    ld a,(hl)
    ld e,a
    inc hl
    ld a,(hl)
    ld ... pop bc
    inc e
    djnz loopb1

    pop hl
    pop bc ...
    dmsmith dmsmith April 2020 Development
  • What to write / programme?I've been trying to get back some motivation to write something in machine code for the Spectrum. I don't feel I am organised enough to write somethi…

    ... 24 UDG's. The screen table just holds the ... bc
    ld a,(hl)
    ld e,a
    inc hl
    ld a,(hl)
    ld ... br />
    pop de
    pop bc
    inc e

    pop hl
    pop bc
    dec c
    ...
    dmsmith dmsmith April 2020 Development
  • Robospec (new project, hopefully useful as a tutorial as well)Starting a new project after my graphics investigations. * It's gonna be a Robotron clone since that's not too ambitious (although I'd like to hav…

    ... /> ; look up screen address from the table
    ld a, (hl)
    inc ... of screen
    ret z
    ld a, c
    xor (hl)
    ld (hl ... /> add c
    pop bc
    ld l, a
    ld a, e
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Robospec (new project, hopefully useful as a tutorial as well)Starting a new project after my graphics investigations. * It's gonna be a Robotron clone since that's not too ambitious (although I'd like to hav…

    ... /> ; look up screen address from the table
    ld a, (hl)
    inc ... of screen
    ret z
    ld a, c
    xor (hl)
    ld (hl ... /> add c
    pop bc
    ld l, a
    ld a, e
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ...
    pop af ; don't return pointer to buffer in hl
    ld a ... , TAG_INT16
    ret
    .returnstr
    pop hl ... de, hl
    push bc
    call parseint16
    pop bc
    ld a, c ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • FAST PIXEL DRAWINGI'm looking for the fastest way to put a pixel to the screen (on spectrum ofcoz:). Here is my own procedure (written in PASMO). But I don't how do it…

    ... put a pixel to the screen (on spectrum ofcoz:). Here is ...
    ld c,a
    ld a,(bc)

    ld b,(hl)
    or ... b
    ld (hl),a ...
    zxmaniac128 zxmaniac128 May 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 pixel at a given screen coordinate:

    [code]
    ld c, a
    add hl, bc
    ld b, (hl)
    ex de, hl
    ld ... a, (hl)
    xor ...
    Lambchop Lambchop August 2004 Development
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code] dec bc ld a, b or c jp nz, loop can be replaced (bc starts >255, short jump) by: dec bc inc b djnz loop [/code] …

    yesterday i saw nice trick:[code]

    dec bc
    ld a, b
    or c
    jp nz, loop

    can be replaced (bc starts >255, short jump) by:

    dec bc
    inc b
    djnz loop
    [/code]
    ..nice
    Fikee Fikee February 2005 Development
  • 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…

    ... recently discovered that the Spectrum screen buffer format that allows only two ...
    vilcans vilcans November 2005 Sinclair Miscellaneous
  • 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 ...
    Arjun Arjun January 2006 Development
  • Question on copying screen bufferHi, Al my prevoius games were copying graphics directly to screen memory starting at 16384. Now I'm experimenting with screen buffer where I could d…

    ... . Now I'm experimenting with screen buffer where I could draw my ... I would copy it to screen memory.

    You may ... just copying static image from buffer to screen after HALT.

    Ralf Ralf December 2009 Development
  • A tidy loader for minigamesThe minigame competition doesn't permit the use of separate loaders like [code]10 LOAD "": RAND USR 32768[/code] The loader must be included in the b…

    The minigame competition doesn't permit the use of separate loaders like
    [code]10 LOAD "": RAND USR 32768[/code]
    The loader must be included in the byte count.

    In an attempt to save as many bytes as possible, people have written ...
    ajmoss ajmoss June 2010 Development
  • Optimize this assembly?Aiming for Variable*192 -> HL In the first case, I came up with the obvious method - *128 +*64: [code] ld a, (variable) ;13 ld h,0 ; 7 ld l,…

    ... ld l, a ; 4

    add hl, hl ;11
    add hl, hl ... hl, hl ;11
    push hl ;11
    add hl, hl ;11
    pop bc ... /> [code]
    LD A,(variable) 13
    LD h,a ; A ... 256 4

    LD L,0 ; L=0 7 ...
    Gedlion Gedlion August 2010 Development
  • CMWC random number generator for Z80Seeing the interest regarding the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]Xor-Shift random number generator for Z80[/URL]…

    ... /> ld b,0
    ld c,e
    ld hl,table
    add hl,bc

    ld c,(hl) ; y = q ... - 1 = ~x

    pop hl

    ld (hl),a ; q[i] = x ...
    Patrik Rak Patrik Rak June 2012 Development
<1…6789101112…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