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
<1…567891011…34>
  • 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 …

    ... /> ld sp,screen+0x0020
    push hl ; 4T ... lost to contention
    push bc ; 5T lost to contention ... push hl
    push de
    push bc
    exx
    push hl
    push ... de
    push bc ...
    gasman gasman March 2011 Development
  • 50Hurts - Full-screen 50Hz 1-pixel scrolling on a 128K Speccy50Hurts - Full-screen 50Hz 1-pixel horizontal scrolling on a 128K Speccy. Graphics are an obvious nod to Joffa, whose games and banter were a big ins…

    ... the breakdown of PUSH BC is:

    PUSH dd pc:5 ... on average 16T per PUSH instead of the usual ... 24T to do a contended PUSH.

    Now ... to much more blocks per screen, for fairly reasonable cost ... you were doing whole screen at once, whereas you ...
    joefish joefish April 2011 Development
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... registers, call the printing
    push bc ; routine, put all the registers ... the
    ld (chrad), hl ; screen and calculate the address in ... position, place it on the screen
    and a ; one ... left hand side of the screen.
    ld a, (coords_y) ;
    chev chev April 2011 Sinclair Basic
  • 50Hurts - Full-screen 50Hz 1-pixel scrolling on a 128K Speccy50Hurts - Full-screen 50Hz 1-pixel horizontal scrolling on a 128K Speccy. Graphics are an obvious nod to Joffa, whose games and banter were a big ins…

    ... ' and IX, and to PUSH them to screen memory takes longer, so ... the contended way the screen memory works, the PUSH IX instruction can ... half as long again as PUSH BC.

    If, instead of ... rendering each line of the screen, which still means using a ...
    joefish joefish April 2011 Development
  • 50Hurts - Full-screen 50Hz 1-pixel scrolling on a 128K Speccy50Hurts - Full-screen 50Hz 1-pixel horizontal scrolling on a 128K Speccy. Graphics are an obvious nod to Joffa, whose games and banter were a big ins…

    ... straightforward as ld hl ,nnnn; push hl....

    ... tile would be PUSH AF, PUSH DE, PUSH BC. If there was ... tile there would be PUSH HLs after that (remembering ... the left of the screen). So what registers are ... one tile on the screen at that time its ...
    dmsmith dmsmith April 2011 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…

    ... - plot double sized character on screen
    ; input - h- ... /> ; **********************************
    ; xy coords to screen pixel position
    ; **********************************
    ld ... store h for later
    push bc ; 11t - store loop counter ...
    kgmcneil kgmcneil April 2011 Development
  • Jet Set Willy II - collecting objectsThe POKE to reduce the number of objects you need to collect doesn't seem to work. [CODE]POKE 34686,1[/CODE] It looks correct. It changes the CP 150…

    ... go to the master bedroom screen (then the code is run ... /> LD A,B ;quicker than PUSH BC
    LD L,(IX+0 ... B,A ;quicker than POP BC
    DJNZ $75EA
    RET ...
    Jimmy Jimmy May 2011 Games
  • Proportional Print Routine...Hi Folks, Does anyone know of a good proportional printing routine for the ZX Spectrum? Ideally I am looking for something that prints with charact…

    ... .
    DO_IT: PUSH HL
    PUSH BC
    PUSH DE
    PUSH AF
    CALL ... ,181 ; mod to access lower screen
    SUB B
    ... 182 ;mod to access lower screen
    JP NC,ERR5
    chev chev May 2011 Sinclair Basic
  • Serial protocol, help!Hi, simply trying to find best way to transfer programs from PC to real ZX Spectrum for testing purposes. Under Windows I tried using Spxfr and it w…

    ... the main loop sends the screen (SCR) bytes to the ...

    _main: ;; send screen bytes at 115.200 bauds ...
    ld bc,VMEM_SIZE

    send: push bc
    call ... _rs232_write
    pop bc
    dec bc
    ...
    tstih tstih May 2011 Development
  • Proportional Print Routine...Hi Folks, Does anyone know of a good proportional printing routine for the ZX Spectrum? Ideally I am looking for something that prints with charact…

    ... TOKENs, clears the area of screen you're about to print ... /> ld (chrad), hl ; on the screen and calculate the address
    ld bc, 0xff03 ; mask
    push bc ; save mask
    and ... left hand side of the screen.
    ld a, (coords_y) ;< ...
    chev chev May 2011 Sinclair Basic
  • fast font engine possible?inspired by the recent "proportional font" thread for zx basic and ideas for gui and having done some of the work on this in the past i wonder if it …

    ... br /> push ix
    push hl
    push de
    push bc
    push af< ... br /> .yposOk:
    ; calc screen address
    ; A is ypos ...
    ; scroll the whole screen one line up
    call ... printing routine expects a blank screen line and does no ...
    Ketmar Ketmar May 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... channel below BASIC area
    push bc
    call 0x1655 ; ... 00001111 ; mask half of the screen byte
    or c ... back to screen
    inc d ; next screen location
    Einar Saukas Einar Saukas August 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... channel below BASIC area
    push bc
    call 0x1655 ; ... 00001111 ; mask half of the screen byte
    or c ... back to screen
    inc d ; next screen location
    Einar Saukas Einar Saukas August 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... channel below BASIC area
    push bc
    call 0x1655 ; ... 00001111 ; mask half of the screen byte
    or c ... back to screen
    inc d ; next screen location
    Einar Saukas Einar Saukas August 2011 Development
  • Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…

    ... ld (hl),a ; Write to screen (7)

    ... ; Point to next screen position before POPing HL< ... scroll_down push hl ; Preserve registers
    push de
    push bc
    push af ... br /> scrntab defw 16384 ;screen address table
    defw ...
    R-Tape R-Tape September 2011 Development
  • Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…

    ... blank out the screen by pointing SP ...

    add hl,bc ; 11

    ... bc ; 11

    exx ; 4

    push hl ; 11
    push ... de ; 11
    push bc ; 11
    push af ; 11 - PUSH ...
    Zoltar Zoltar September 2011 Development
  • line, plot and circle in whole 256x192 displayhi! are there some way to draw lines, or whatever, in the whole 256x192 display, than just the above 256x176 part? (this is the msx1 version i made o…

    ... plot xy is created!
    PUSH BC ;save briefly
    CALL ... LD H,B ;now HL = screen addr
    AND %00000111 ;now ... LD (HL),A ;move to screen
    POP HL ;coords
    roko roko September 2011 Sinclair Basic
  • Pixel engines for explosions...Hi... Iv a strange request... I was toying around with an old YS program, which can be found here: [url]http://www.users.globalnet.co.uk/~jg27paw4/ty…

    ... br /> RET
    L61559: PUSH BC
    PUSH DE
    EXX
    LD ... DE)
    RET
    L61748: PUSH DE
    LD DE,(half_vrange ... /> DEFS 172

    SCR_TABLE: ; SCREEN ADDRESS TABLE NOW FOLLOWS IN ...
    kgmcneil kgmcneil October 2011 Development
  • Pixel engines for explosions...Hi... Iv a strange request... I was toying around with an old YS program, which can be found here: [url]http://www.users.globalnet.co.uk/~jg27paw4/ty…

    ... $0ats
    l_f077: push bc ; f077 c5 $0bts
    push de ; f078 d5 ... f112 c9 $0ats
    l_f113: push de ; f113 d5 $0bts
    l_f134: push de ; f134 d5 $0bts
    ;
    ; screen address table
    ;
    l_f200 ...
    jp jp October 2011 Development
  • Pixel engines for explosions...Hi... Iv a strange request... I was toying around with an old YS program, which can be found here: [url]http://www.users.globalnet.co.uk/~jg27paw4/ty…

    ...
    RET
    L61559: PUSH BC
    PUSH DE
    EXX
    LD ... ,(DE)
    RET
    L61748: PUSH DE
    LD DE,(half_vrange ... page boundary

    SCR_TABLE: ; SCREEN ADDRESS TABLE NOW FOLLOWS IN ...
    kgmcneil kgmcneil October 2011 Development
  • tiny routine to shift RAMTOP & stackCompressing some data areas above RAMTOP and wanting to make the released space available for BASIC arrays, I needed to move RAMTOP without using CLE…

    ... it doesn't clear the screen either). I'm afraid that ... 244
    PUSH HL ; 229
    SBC HL, BC ; 237 66
    LD SP, HL ; 249
    PUSH BC ; 197
    LD (23613), SP ...
    Battle Bunny Battle Bunny November 2011 Sinclair Basic
  • Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …

    ... a
    ld bc,face_sprites
    add hl,bc
    face_loop1 call ... now.
    ld bc,face_sprites
    add hl,bc
    ;if I ... ;If you understand the Spectrum screen layout this al makes perfect ... and B is the screen.
    face_loop2 push de
    ;remember ...
    Turkwel Turkwel November 2011 Development
  • Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …

    ... data address

    push bc
    push hl

    ld ... width in characters
    ; hl' = screen address
    ; b' = pixel y ... pixel row
    ; hl' = screen address
    ; b' = pixel ... br /> ; exx ; hl = current screen address
    ; or (hl)
    Alcoholics Anonymous Alcoholics Anonymous November 2011 Development
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ... LDIR instruction to move the screen buffer from memory to where you ... avoids any problems with the screen refresh that occurs every ... the stack. Using PUSH to write into the screen is faster than ... contention), LDI takes 16, and PUSH writes two bytes in just ...
    Metalbrain Metalbrain January 2012 Sinclair Miscellaneous
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ... /> push af
    push bc
    push de
    push hl
    push ix
    push iy ... )
    ; last byte of the screen
    ld hl, $ + 9 ; set ... /> exx
    push hl
    push de
    push bc
    push af
    defb ...
    p13z p13z January 2012 Sinclair Miscellaneous
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ... ]putting 2 bytes in the screen with LDI it takes 32 ... /> push iy
    push ix
    push hl
    push de
    push bc
    push af ... /> exx
    push hl
    push de
    push bc
    push af
    ENDM ...
    obo obo January 2012 Sinclair Miscellaneous
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ... HL,$E900 ;START OF VIRTUAL SCREEN
    LD (STACK1),HL
    PUSH IX
    PUSH AF
    PUSH DE
    PUSH BC
    PUSH IY
    screen segment, if e.g h ... we are in the same screen segment

    VOLFU EXX ...
    climacus climacus January 2012 Sinclair Miscellaneous
<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
push 4.9K 12.7K
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…
  • Push-Push Penguin Online HighScores UpdateHey all! <br /> <br /> If you like Speccy games then you will probably like this one. It is basically a Pengo remake with A LOT of extras. This one i…
  • 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

  • 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 pop bc
  • screen buffer pop bc ld sp hl
  • screen push
  • screen push comparison
  • screen push write speed
  • blit buffer to screen contention
  • screen buffer
  • routine to scroll screen buffer by 1 pixel
  • faster copy to screen from buffer
  • screen buffer einar
  • push buffer
  • print on buffer screen

Copyright © 2024 World of Spectrum