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.033s
<1234567…34>
  • Map to screen address problemCan anyone help me out with what I guess is a screen address calculation problem. I need to calculate the screen address of a tile based on a number…

    ... what I guess is a screen address calculation problem.

    I ... need to calculate the screen address of a tile based on ... I have tile 0 its address would be 16384, tile 1 ... to calculate for the other screen thirds.

    Could someone ...
    Mr Millside Mr Millside April 2005 Development
  • Calculating screen address to alternative ATTR area?I'm using this small snippet of code to convert a screen address to an attribute cell address... [CODE]AttrDE: ld a, d ; get the hig…

    ... to convert a screen address to an attribute cell address...

    ... ; get the high byte of screen address
    rra ; divide h ... ; de now contains the attribute address
    [/CODE]

    Sokurah Sokurah January 2014 Development
  • Screen address of PRINT position...Hi Folks, The following code uses DF CC system variable to extrac the screen address for a PRINT position. [code]100 CLS 110 PRINT AT 10,16;…

    ... system variable to extrac the screen address for a PRINT position.
    Paddy Coleman Paddy Coleman September 2016 Sinclair Basic
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... string with limited formatting
    // row = initial row coordinate
    // col = initial ... the screen address from pixel coordinates, screen address from column coordinates, attribute address from screen address, screen address from attribute address ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 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…

    ... the background at various pixel positions. The background data ... br />
    ORG 40960 ;First row of background data

    row of screen.
    DELAYB DJNZ ... br /> SCRMODA LD DE,16388 ;screen address of top left
    ;corner ...
    dmsmith dmsmith September 2004 Development
  • Calculating the address of a pixel?Hi Folks, Is there an easy/quick way of calculating the memory address of a pixel? So for example, if I wanted to "plot" pixel at screen coordinate…

    ... of calculating the memory address of a pixel? So for example, if ... I wanted to "plot" pixel at screen coordinates 50,50 how would ...
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Pixel Color IncorrectHello i am new to the ZX Spectrum and z80 assembly language. I am coding my first game and am having a small problem. I am trying to make the botom r…

    ... to make the botom row green and for some ... ; set the ooze's starting screen address

    ld a, ... ; if the ooze's row isn't finished being drawn ... . The reason only one pixel is drawn is I have ... bottom row in case you are wondering why only one pixel ...
    ooze48k ooze48k June 2011 Development
  • A sped up pixel-shift routine for 1-byte–wide spritesHere’s an optimized (for speed) real-time sprite shifting routine for sprites that are one byte wide. It uses no memory variables for storage of inte…

    ... HL holding the screen address and A holding the pixel position (the ...
    ex de,hl ;save screen address in DE

    ... line
    ;of char row, so we're done shifting ... msl_shift_done
    ex de,hl ;screen address -> DE, spite data -& ...
    Ast_A_Moore Ast_A_Moore February 2017 Development
  • Help required to calculate screen addressesDoes anyone have some code that calculates the screen address one pixel below the given address ? Is it best to use a lookup table ? Any examples of …

    Does anyone have some code that calculates the screen address one pixel below the given address ? Is it best to use a lookup table ? Any examples of this.
    Mr Millside Mr Millside November 2004 Development
  • ANN: SP1 for Z88DK (aka splib3, Sprite Pack v3.0)Well it's finally arrived, after a month of "a few days from now" release deadlines. SP1 is the lastest version of splib, a flicker-free software sp…

    ...
    - #defines for colours, border(), screen address calculations have been added to ... in splib2 for horizontal pixel placement of sprites is ... row at bottom of the sprite as well as 7 blank pixel ... These indicate the minimum pixel rotation in the x and ...
    Alcoholics Anonymous Alcoholics Anonymous April 2006 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ... draws a 8x8 pixel spaceship on the screen based upon x ... ,y pixel coordinates, which are ... I calculate the screen hl coordinates for each pixel row of the sprite ... errors due to the funky screen address system), but seems long-winded ...
    48K 48K May 2006 Development
  • Pixel Explosion CodeJust a little snippet to cause explosive effects. It uses table lookups for the screen address, and can handle up to 32 pixel particles. A particle…

    ... screen address, and can handle up to 32 pixel particles ... br /> call get_screen_address_and_draw ; hl has screen address

    madp_poke:
    call get_screen_address_and_draw ; hl has screen address

    madp_dec
    robpearmain robpearmain September 2006 Development
  • Comments for small "sprite" routine wantedI have just written my first machine code program and I am quite happy (and proud) to get it working! :smile: As a child I never learned anything e…

    ... 8x8 character across the screen one pixel at the time. I ... ld hl,16384 ;screen address
    ld de,35000 ;address of graphic loaded ... /> inc h ;down one row on screen address
    inc de ;next ...
    ld hl,16384 ;screen address to start at
    < ...
    Rickard Rickard May 2007 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…

    ... ; **********************************
    ; xy coords to screen pixel position
    ; **********************************
    ld ... 11100000 ; 7t - convert to screen address
    add a,l ; ... br /> ; move one char row down and plot again
    TomD TomD April 2011 Development
  • 4116 SRAM replacement (and ULA timings).As mentioned in another thread, I have spent quite a lot of time experimenting with different circuits and components for using a static RAM IC to re…

    ... have been using the loading screen of the game Chaos as ... the left) of the flickering row. This makes me think the ... determined whether it is the pixel data or attribute data or ... of the presentation of the row /column address or of the ULA ...
    Zorn Zorn February 2012 Hardware
  • 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 +…

    ... of row
    add hl,de ;hl = address of attr on screen
    address of char on screen
    pop hl ;retrieve ... b=X, hl=image, sp=pixel row table, c>128 so ... /> ldi
    ldi ;draw two pixel rows
    ENDM ;repeat 8 ...
    joefish joefish March 2014 Development
  • Help needed with calculating screen addressesCan anyone help me finally crack Jonathan Cauldwell's screen addressing calculator and, more to the point, is the reason I'm struggling because this …

    ... screen address.

    Finally, character cells are further divided into pixel ... us our vertical screen address. From there we ... routine which returns a screen address for (ycoord, xcoord) ... /> X (xcoord) = 2
    Screen Address = 20482


    Jagd Tiger Jagd Tiger April 2014 Development
  • Better arrangement for video memory?While doing some documentation work for the ZX-Uno project, I compared the advantages of the weird layout of the ZX Spectrum against a linear layout.…

    ... , which compute the address of every pixel to be displayed:
    row instead of 32).
    ... the routine to calculate the screen address from the X,Y coordinates ... character (within the same character row), so displaying strings of ...
    mcleod_ideafix mcleod_ideafix September 2014 Development
  • ZXSCLZF - Yet another Screen CompressorQuick disclaimer before I continue, this compressor does not shrink screens as small as some of the others posted here, in particular the very good z…

    ... /> //
    // *****************************************************************************
    // zxsclzf ZX Spectrum Screen Compressor
    // by Tom Dalby ... /> inc a ; 4t - down one pixel row, stay in char
    ld ...
    TomD TomD April 2017 Development
  • Speccy machine code info where is it?Recently I've been trying to learn Z80 and I've managed to make limited progress (some of my routines even compile now!) but I seem to be having trou…

    ... -bit port read identifies which row you are interested in. The ... to indicate a keypress. The row selection is also active low ... rows, remember)
    LLL = 010 (row 10 is the third character ... from x,y coordinates to screen address and pixel mask. Most of the ...
    Alcoholics Anonymous Alcoholics Anonymous June 2003 Sinclair Miscellaneous
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... hl = screen address
    ; on exit hl = address of next (pixel) row down.
    screen address to an attribute address
    ; on entry: de = screen address

    ; generate screen address without using tables :)
    ; store ...
    robpearmain robpearmain October 2004 Development
  • Codies help? Werewolves of LondonHi All, never one for shying away from the deep end, having only just dipped my toe in to the world of machine code I find myself trying to find out …

    ... and poking A into the address HL.
    [/quote]
    ... screen where the sprite
    graphic was (50547)
    HL = address ... +32
    which is one pixel row down.

    [quote]< ... the pointer then jumps to address 44BB for no apparent reason ...
    Alcoholics Anonymous Alcoholics Anonymous March 2006 Sinclair Basic
  • z88dkHello. I'm an spanish user of spectrum (and naturaly of this page). I have a question. I want to start to program games with z88dk, but I need a goo…

    ... /> How is faster than using row major form?
    [/quote]< ... s also contain their own screen address, so that they can ... ).

    For horizontal pixel rotation, each "struct sp1_cs" contains ... vertically before this extra column/row is drawn. This works ...
    Alcoholics Anonymous Alcoholics Anonymous April 2006 Development
  • Getting attribute location from a screen coordinates (x,y)I am having trouble figuring out how to convert an x,y coordinate pair (pointing to a specific pixel) to the location of the attribute for the block …

    ... of screen
    SSS = scan line (0-7) indicates the vertical pixel row ... /> To convert a screen address to an attribute address, you want to go ... /> ;
    ; enter: hl = screen address
    ; exit : hl = address of attribute square
    Alcoholics Anonymous Alcoholics Anonymous April 2006 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ... first pixel row of the character lines in middle third of the screen ... correct (top) third of the screen (now one character line down ... is only safe on valid screen addresses from lines 0-190 ... the next valid address of a line on the screen from lines ...
    Kiwi Kiwi May 2006 Development
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... /> [code]
    call gethl ; hl = screen address at column 31
    ld ... in pixel row
    ldd
    pop hl ; restore column 31 address
    pixel row
    inc h ; down one ...
    Alcoholics Anonymous Alcoholics Anonymous November 2006 Development
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... /> call gethl ; hl = screen address at column 31
    ld ... pixel row
    ldd
    pop hl ; restore column 31 address ... byte into last byte of pixel row
    jp pe, ... ; change hl to attribute address
    ;or $07 ...
    Alcoholics Anonymous Alcoholics Anonymous November 2006 Development
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... screen one complete pixel row by writing bytes to the display address ... pixel row. A formula will have to be applied to the screen address ... to move down that pixel row. In the ... to the destination address for the next pixel row. I think ...
    Alcoholics Anonymous Alcoholics Anonymous June 2007 Development
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... extern uchar __LIB__ *zx_cyx2saddr(uchar row, uchar col);
    extern uchar ... call zx_cyxsaddr_callee + ASMDISP_ZX_CYX2SADDR_CALLEE
    ;; hl = screen address
    [/code]

    but ... the djnz once for each pixel row, I think you need ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 Development
  • Preferred way of determining Y co-ord in assembly?I know of 2 ways of calculating the y-cord of a pixel row for the speccy in assembly. One is to calculate the address by ways of shifting and masking…

    ... 255 ;Test: fill complete row
    ld a,h ... and 7 ;sub char-row.
    inc h ;Go ... point hl to start of screen address
    ld a,b ... ;increment h to pixel line aligned address
    dec ...
    Arjun Arjun July 2007 Development
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
pixel 5.1K 8.3K
row 3.2K 6.5K
screen 45.8K 73.8K
address 11.8K 21.2K

Related Threads

  • "Pixel after Pixel", WoS contest for the best fan made loading screen$After reading the post where Ste?86 did a splendid fan loading screen for Pud Pud, I had the idea of creating a contest to see which is the best load…
  • Map to screen address problemCan anyone help me out with what I guess is a screen address calculation problem.<br /> <br /> I need to calculate the screen address of a tile based…
  • 12-pixel-wide font on 512x192 screenThanks to Geoff I have a working prototype for displaying this font in BASIC. Machine code to follow.
  • 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…
  • Calculating the address of a pixel?Hi Folks,<br /> <br /> Is there an easy/quick way of calculating the memory address of a pixel? So for example, if I wanted to "plot" pixel at scree…
  • 50Hurts - Full-screen 50Hz 1-pixel scrolling on a 128K Speccy50Hurts - Full-screen 50Hz 1-pixel horizontal scrolling on a 128K Speccy.<br /> Graphics are an obvious nod to Joffa, whose games and banter were a b…
  • 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…
  • Microhobby's Pixel A Pixel compoI've recently found out that there's been a graphics competition Pixel A Pixel held by Microhobby magazine, thx to Ivanzx for pointing this out in on…
  • 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…
  • Microhobby's Pixel A Pixel compo: help requiredHi!<br /> <br /> The start of this story is described in this topic: [url]http://www.worldofspectrum.org/forums/showthread.php?t=38955[/url]<br /> <b…

Related Searches

  • fastest screen routine
  • screen routine
  • screen routines
  • fastest way to clear screen
  • issue 2 yellow screen
  • screen address
  • screen address wrap
  • attribute address to screen
  • screen address c b l
  • screen address aa
  • row to screen address
  • screen address to buffer
  • screen address to x and y
  • row by address
  • screen pixel set unset above
  • screen pixel set above
  • calculate pixel position from row
  • screen address to attribute
  • get pixel address
  • routine to scroll screen buffer by 1 pixel

Copyright © 2024 World of Spectrum