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.022s
<1234567…34>
  • 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
  • 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
  • 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
  • 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…

    ... hl, 0xd800 ; start of character buffer to HL
    add hl ... ; offset to character in buffer
    ld bc, paging ; prepare for paging ... , de ; 8
    pop de ; unstack screen address
    pop bc ; unstack character count ...
    chev chev October 2013 Development
  • off screen bufferwhen using an offscreen buffer is the memory copied to the screen in a way that makes it easier to draw sprites to the buffer? E.g. Lets say you…

    ... downsides are that a screen buffer is a big overhead for ... br /> LDI background from buffer to screen to delete
    ... code]

    [code]
    ;buffer in this example at 24576 ... nextlinedown ;DE down one screen line
    pop bc
    djnz sdlp ...
    R-Tape R-Tape June 2017 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…

    ... to fill from new screen position
    pop bc ; moving up, pixel ... /> call fill
    pop bc
    .offscreen2
    pop hl

    ... fill ; fill from new screen position
    pop bc
    .offscreen3
    ...
    Alcoholics Anonymous Alcoholics Anonymous October 2007 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…

    ... stack pointer
    pop hl ; get original screen position
    pop bc ; get original ...
    chev chev November 2013 Development
  • Function with push and popIm trying to see if I understand push and pop when it comes to using to pass parameters to functions: [code] LD HL,16384 LD A,5 Push AF Ld A…

    ...
    jr $
    ....
    buffer: defs 32


    pop af ; return address
    pop hl ; uint num
    pop de ; char *buffer ...
    pop bc ; radix
    push ...
    Alcoholics Anonymous Alcoholics Anonymous April 2016 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 …

    ... to blit my back buffer to the screen RAM, and it was ... stack to push and pop stuff to the screen, I gave it ... sp, buffer
    pop af
    pop bc
    pop de
    pop hl
    pop ix ... /> pop af
    pop bc
    pop de
    pop hl

    ld sp, screen ...
    Atari_Jetman Atari_Jetman February 2014 Development
  • Double Buffer UtilityHi Folks, I've been experimenting with double buffering on a 48k Speccy for a small project I'm working on. After reading lots of good advice here…

    ... # In this example the buffer matches the screen size.
    #
    ...
    # from the buffer to the screen
    # NOTE - ... POP DE','POP BC\nEXX','POP IX','POP HL','POP DE','POP BC','POP AF']
    self.copyPopList = ['POP AF','POP BC','POP ...
    KrazyKattapilla KrazyKattapilla August 2014 Development
  • Smooth Color Masked Sprites using fast page flip on 48kHere is a quick demo of using char based sprites using the Page flip method: a) Background is copied to buffer b) Sprites drawn on buffer c) Buffer …

    ... Sprites drawn on buffer
    c) Buffer copied to screen
    < ...
    POP IX
    POP HL
    POP BC
    POP AF
    ... ENTRY:
    ; HL CONTAINS SCREEN ADDRESS
    ; DE CONTAINS ...
    robpearmain robpearmain September 2004 Development
  • Smooth Masked Sprites using fast page flip on 48k Part 2Ok, After all the suggestions in Part 1, which were all excellent (Thankyou), I opted on the following: I have 2 x 6k Offscreen areas (Yes, that's …

    ... IS 1, FAST COPY BUFFER TO SCREEN

    ... /> POP DE
    POP IX
    POP HL
    POP BC
    POP AF
    ; HL CONTAINS SCREEN ADDRESS
    ; DE CONTAINS ...
    robpearmain robpearmain September 2004 Development
  • Smooth Screen Scrolling RoutineHi everyone, this is a follow up to the thread on smooth screen scrolling. As promised here is the code for the routine. It's pretty long and fairl…

    ... E,L
    POP BC ;Put tile on the screen
    LD (HL ... screen address for
    SBC HL,BC ;next char. line

    POP BC ... ,BC
    ADD IY,BC

    POP BC
    DJNZ RLOOP

    POP ...
    dmsmith dmsmith September 2004 Development
  • Optimisation Needed! Is this the Fastest way to copy bytes from screen and back again?I have the screen address (say 0,0 i.e 16384) I want to copy 4 bytes wide by 32 bytes high from the screen to an area of memory. I then want to cop…

    ... 4433 TStates to copy from screen to store)

    screen

    ...

    ; Clear the screen to show we are bringing ... br /> inc hl
    pop bc
    ld (hl),c ...
    robpearmain robpearmain November 2005 Development
  • Screen LoaderCouple days ago i find very interesting loader routine in ex Yugoslavia magazine "Svet Kompjutera" from january 1987. Authors of article, calls this …

    ... loader" and she load screen verticaly line by line, ... most impressive.
    Uncompressed screen must be at 49152, ... RRR CALL RUT
    POP AF
    JR LFF41< ... /> PUSH BC
    LD BC,32
    ADD HL,BC
    ... /> EX DE,HL
    POP BC
    DJNZ LOPP
    ...
    Pegaz Pegaz August 2006 Games
  • Push/Pop data copyingWe all know that stack pointer cheese and push/pop is faster to move data than LDIR - which in turn is slower than unrolled LDI's anyway. I rewrote …

    ... stack pointer cheese and push/pop is faster to move data ... push/pop, but copying a four character sprite to the screen takes ... three cycles of push/pop.

    screen buffer into 2x1 blocks and keep ...
    Gedlion Gedlion March 2011 Development
  • (part of) screen to UDGHere is a routine to copy a Y,X-position on screen to a UDG. 0<=y<=23 0<=x<=31 144<=udg<=165 (UDG "A" to UDG "U") [code] ; start code with ; PRINT …

    Here is a routine to copy a Y,X-position on screen to a UDG.
    0
    Dr BEEP Dr BEEP June 2011 Development
  • Byte-order backbufferThis is a tool for Z80 coders who wish the Spectrum screen had a serial layout. It runs as an interrupt mode 2 service routine and uses POP and PUSH …

    ... byte order) buffer at 57484 to the Spectrum screen at
    ; last byte of the screen
    ld hl, $ + 9 ... pop iy
    pop ix
    pop hl
    pop de
    pop bc
    pop ... br /> attributes:
    incbin "screen.atr" ; 768 bytes of ...
    chev chev April 2012 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…

    ... 've been using the SCREEN$() function recently for reading ... data off the screen rather than taking up ... of BC
    pop bc ;BC=$2d2b (discard)
    pop bc ;BC=$3365
    pop de ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • Scrolling Bi-Colour Engine for 4-Player GamesJust putting this code up for people to have a look at. Far from finished. Should simply compile and run a bit of a demo. Only good for 128K and +…

    ... /> [CODE]
    ; Bi-Colour Scrolling-Buffer Game Engine for Four Player ... /> pop bc
    inc b
    push bc
    call print_char_obj_hl_b_c
    pop bc
    bc
    ex de,hl ;de = address of char on screen
    pop ...
    joefish joefish March 2014 Development
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

    ... line stored sequentially unlike the screen which is arranged differently.< ... DE,16384 ; SCREEN START ADD

    LOOP1 LD BC,8 ; ... TO THE NEXT LINE
    POP BC ; RETRIEVE THE LINE COUNTER< ... what I expected on screen, after popping BC the DJNZ doesn' ...
    mulder mulder January 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…

    ... routines, the source buffer is linear (not in screen order) and address ... /> pop af
    pop bc
    pop de
    exx
    pop bc
    pop de
    pop ...
    Sol_HSA Sol_HSA April 2016 Development
  • off screen bufferwhen using an offscreen buffer is the memory copied to the screen in a way that makes it easier to draw sprites to the buffer? E.g. Lets say you…

    ... offscreen buffer is the memory copied to the screen ... of the screen where you copy your buffer to,
    if the buffer was copied to the screen so that the ... /> draw background on buffer (or just clear it ... draw sprites on buffer
    copy buffer to screen
    slenkar slenkar June 2017 Development
  • Textured Scanline Flood Fill for ZX Spectrum 48KPity that it's quite hard to contribute code to WoS in a straightforward manner. Recently, I have created a textured/hatched fill M/C routine for the…

    ... Leave some space for shadow screen buffer
    20 GO SUB 9000 ...
    Volker Volker February 2021 Software
  • 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…

    ... -1 (edit) clears the input buffer.

    I also ... />
    ; base address of the screen
    SCRBUF_BASEADDR EQU #4000
    ld bc, 32
    ldir
    pop bc
    ENDM
    ; work out buffer insert address
    ld hl ...
    Paradigm Shifter Paradigm Shifter August 2022 Development
<1234567…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

Related Threads

  • 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…
  • Best Side Screen/Screen-Surrounds?I've been researching side-art/screen-surrounds for my own game, so at the risk of asking a question that has probably been asked in the last 20-odd …

Related Searches

  • fastest screen routine
  • screen routine
  • screen routines
  • push pop to the screen
  • comparison screen buffer
  • screen buffer time
  • screen buffer compare time
  • linear screen buffer
  • screen address to buffer
  • screen copy push pop
  • screen buffer push
  • screen buffer push bc
  • screen buffer pop bc ld sp hl
  • blit buffer to screen contention
  • screen buffer
  • routine to scroll screen buffer by 1 pixel
  • faster copy to screen from buffer
  • screen buffer einar
  • print on buffer screen
  • linear screen buffer sprites

Copyright © 2024 World of Spectrum