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.083s
<1234567…34>
  • Flood Fill IssueHi Folks, Came across the following Flood Fill routine by John Metcalf: [code]; scanline fill by John Metcalf ; call with d=x-coord, e=y-coo…

    ...
    ; call with d=x-coord, e=y-coord

    ; ... E5

    ; calculate bit position of pixel

    nextrun:
    pixel or the screen edge,< ... C9

    ; calculate the pixel address and whether or not ...
    Paddy Coleman Paddy Coleman August 2017 Development
  • RAD for SpeccyJust wanted to share a fine technique of rapid app development for ZX Spectrum in C. Programming without debugger is a pain. It comes down to needing…

    ... and atom functions to calculate position on screen and read/ ... new rect();
    bmp_rect.x = x; bmp_rect.y = y; bmp_rect.w = w; bmp_rect ... able to pick them all from stack.

    // ... ==0?0:1); // OPTIMIZE: From stack.
    int skip = ...
    tstih tstih January 2018 Development
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... br /> ;
    ; Draw a pixel line from (x0,y0) defined (H,L ... (x,y) coordinate.
    ;
    ; in: bc = (y,x) coordinate of pixel < ... bit number is 0 of pixel position
    ;
    ; ...
    rtunes rtunes October 2001 Sinclair Miscellaneous
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ... />
    LD A,C ;taking pixel position
    ADD A,A
    INC H ;backwards from right-to-left. The reason ... to draw sprite in unshifted position
    RET ;not implemented ... DEFB 1 ;X Coord
    SPRYCO DEFB 1 ;Y Coord
    ...
    dmsmith dmsmith August 2004 Development
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ...
    Timing for 32 x 32 masked sprite: 16084 tstates ... * Draw sprite in unshifted position. Called when pixel position is zero.

    SPRITE LD A,(SPRYCO) ;calculate screen address using a table ... .
    * each byte from 0-255 is stored shifted ...
    dmsmith dmsmith August 2004 Development
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it Note, for 48k spectrum using TASM [code] ; ***********…

    ...
    ; based as opposed to pixel based system

    ; ...

    ; WriteSpriteChar

    ; Calculate address of char

    ; 0 = X Position (0-31)
    ; 1 = Y Position (0-23)
    robpearmain robpearmain August 2004 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 …

    ... add offset based on pixel position of ycar
    ... LD A,(YOFFSET) ; Get Y Offset
    LD E, ... SUB E ; take it from 8
    RLA ; double ... />
    WRITECHAR:
    ; C = X, L = B, DE = GFX
    robpearmain robpearmain September 2004 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 …

    ... add offset based on pixel position of ycar
    ... LD A,(YOFFSET) ; Get Y Offset
    LD E, ... SUB E ; take it from 8
    RLA ; double ... />
    WRITECHAR:
    ; C = X, L = B, DE = GFX
    robpearmain robpearmain September 2004 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 …

    ... add offset based on pixel position of ycar
    ... LD A,(YOFFSET) ; Get Y Offset
    LD E, ... SUB E ; take it from 8
    RLA ; double ... />
    WRITECHAR:
    ; C = X, L = B, DE = GFX
    robpearmain robpearmain September 2004 Development
  • Basic info about platformers...I have run a search for an answer to this question and haven't found quite what I was looking for so I thought I would pop a post on here... What ar…

    ... struct Sprite {
    int x, y; //current position of the sprite
    RECT ... just derive different character sprites from the Sprite struct (you ... />
    You could use pixel overlap tests to actually fine ... , and then do a pixel overlap test (if you ...
    Arjun Arjun October 2004 Development
  • ZXCF InterfaceI'm just trying to get an idea for the ZXCF interface, and to me, it looks a much cleaner design compared to divIDE (Of course, that's just my opinio…

    ... to an entire vertical pixel screen line at a ... br /> [code]
    ;Z GBLT x y w h x2 y2 -- blt ... hl) ; get vertical line from source
    ld b, ... out (yport),a ; reset dest Y position
    exx
    ld ...
    glancaster glancaster April 2006 Hardware
  • 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 …

    ... 7) indicates the vertical pixel row within a character ... />
    X : CCCC CTTT (0-255)
    Y : BBLL LSSS ... indicates the pixel position within a byte. 0=leftmost pixel position (bit ... , you want to go from #1 to #4. ... do. Never mind, going from #2 to #4 shouldn ...
    Alcoholics Anonymous Alcoholics Anonymous April 2006 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…

    ... an absolute pixel position. Both the X and Y pixel coordinates can range from 0-2047 ... an absolute position but this time separates character coordinates and pixel shift ... are the pixel shift within a character and range from 0-7 ...
    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…

    ... ;
    ; pixel position ;
    ; ... b - y position in pixels ;
    ; c - x position in pixels ... Y routine for the hl screen address from ...
    Kiwi Kiwi May 2006 Development
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... the screen rendering routine from the one all you ... this, when inceasing the y pixel position as in your subroutine, ... ;get next line draw position, return in de
    ldi x 32
    ex de, ... /> push de
    ldi x 32
    pop de
    Alcoholics Anonymous Alcoholics Anonymous April 2007 Development
  • Collision detectionI understand the basic methods for testing for collisions but I have question about the trickier situation of testing for when shots hit the backgrou…

    ... try testing against the X/Y/Width/Height bounding boxes ... stored in memory rather than from the screen itself.
    ... that holds an active sprites X, Y position, Width, Height, NumFrames, ... (compare X/Y/Width/Hieght for overlap) before doing pixel collision
    BloodBaz BloodBaz July 2007 Development
  • Collision Detection in SP1Hi, Does anyone have a well-documented example of using collision detection in spritelib. I've search WoS and Z88DK forums but no joy. Something wi…

    ... completely included all the sprite position information in their calculations. Again ... the sprite

    The (x,y) pixel coordinates of the top left ... . xthresh and ythresh also come from the "struct sp1_ss"; they don ...
    Alcoholics Anonymous Alcoholics Anonymous March 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... ;320304]Thanks for the input from everybody - I am sure I ... can sort something from this lot! Great support!

    LD HL,STARPOS_X ; store X position of star
    ADD HL ... in a
    AND %00000111 ; calculate y mod 8
    ADD A ...
    Digital Prawn Digital Prawn December 2008 Development
  • Rainbow Generator for 48K Spectrum using PUSHThis is what I came up with from [B]gasman[/B]'s suggestions. It's stable in ZXSpin and ZX32 simulating a 48K Speccy. Anyone like to try it on the …

    ... are taken
    ; from the standard screen channel. To ... ordiante use
    ; PRINT AT y,x; #4; "some text";. All ... br /> po_store equ 0x0adc ; position store routine
    report_j ... ret nc ;

    ; calculate attribute addres from s_posn
    ld a ...
    chev chev May 2009 Development
  • Sinclair Light Gun and modern tellies/monitorsDoes the Sinclair Light Gun work with modern LCD/TFT/plasma screens? I have my Speccy linked up by TV card to a PC outputting to a LCD monitor, and …

    ... game that wanted data from the lightgun would poll ... fullscreen) emulated display, then calculate the right fake timing compared ... point, estimate the response from the lightgun's light sensor ... in x/y coords, then just substitute the mouse pointer position in ...
    Dunny Dunny June 2009 Sinclair Miscellaneous
  • New member here. And a spider! :)Hello everyone. My name is Sekrets. I'm quite a lonely individual, searching for a digital home where I might find fellow speccy enthusiasts to adopt…

    ... load a 16-bit value from memory into BC using ... display file manipulator functions and from the name you will ... />
    So for example, zx_pxy2aaddr (pixel x,y to attribute address) takes a ... your sprite on any vertical pixel position, not just those aligned to ...
    Alcoholics Anonymous Alcoholics Anonymous March 2010 Development
  • ccompletly baffeled machine codeHi everyone, BEFORE you ask i have not asked help for loads of problems i have recently now encountered and i figured the problems out myself, hones…

    ... that says 'the Square at position 12 across 3 down' contains ... an effect on any other pixel. Once something has appeared ... 3,12 into the appropriate pixel X, Y values for you and writes ... ld a,(de) ;get byte from ROM
    ld (hl),a ...
    Turkwel Turkwel September 2010 Sinclair Miscellaneous
  • The Programmers Development System (PDS)Hi everybody, I recall this system has been mentioned several times on WoS forums. Last time was, I think, when those sources from Maz Spork (Buggy …

    ... The graphics are 8 x 8 pixel character based, 4 bits ... . Sprites are made from 8 x 8 pixel characters stored in VRAM ... playfields are generated from the 8 x 8 pixel characters stored in ... direction by setting the X/Y starting position of the playfield character ...
    ASM ASM October 2010 Sinclair Miscellaneous
  • GUI/OS for the Spectrum?Hi, Is anybody working on a WIMP/GUI system for the Spec? Is there anything current out there? [url]http://snakeoillabs.com/wordpress/2005/10/30/8…

    ... current x position (0-255)
    read port $ffdf for current y position ( ... .

    Aside from the y range problem, the Kempston also ... you are at x position 255 and move right one pixel, the interface ... left edge of the screen from the right side while ...
    Alcoholics Anonymous Alcoholics Anonymous June 2011 Development
  • Wolfenstein / Doom for 48k SpectrumHi, is there any game / demo of this kind that runs on 48k machines? Thanks.

    ... you take the single pixel row from the floor where it ... you only have to calculate one pixel row of sprite mask, ... at different sizes in X-direction, and scale it ... in Y-direction.
    What I ... always take alternate rows from each of the two sprites ...
    joefish joefish August 2011 Games
  • Simple SpriteHow do you draw a sprite on the screen? For example i want to draw a smiley face sprite and would like either a link to a tutorial or a very well com…

    ... listed can calculate a screen display position from the x y ('PRINT AT') position.

    x y character positions (row/column).
    Morkin Morkin October 2011 Development
  • Simple SpriteHow do you draw a sprite on the screen? For example i want to draw a smiley face sprite and would like either a link to a tutorial or a very well com…

    I would build up from the basics.
    1) Learn ... (say) a 16x16 graphic at position (0,0) onto the screen ... work for any character position horizontally and any pixel position vertically. This involves ... converts an X (0..30) and Y (0..192-32) position to a ...
    BloodBaz BloodBaz October 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 …

    ... Placing sprites vertically at a pixel position is easy, which will be ... bit number CCCCC can range from 0-31 and represents ... can range from 0-7 and represents the horizontal pixel shift ... any pixel coordinate involves:

    1- Given the x,y coordinate ...
    Alcoholics Anonymous Alcoholics Anonymous November 2011 Development
  • PLOT and DRAW in machine codeHow do you go about it? If I posted a really simple BASIC instruction could someone do a machine code routine so I could learn from it? I wouldnt k…

    ...
    18 ; h = pix Y 0..191
    ; uses: af ... br /> X coordinate (pixel 0-255): CCCC CPPP
    Y coordinate (pixel 0-191 ... is starting with the X and Y coordinates (8-bit bytes ... down, left or right from the current pixel position. This can be done ...
    Alcoholics Anonymous Alcoholics Anonymous January 2012 Development
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... br /> (Also POKABLE x,y coordinates, but it's ... LD DE,(chans) ; Calculate the offset to the ... a,(characterno) ; getscharater from charterno variable
    sub ... lookuptable for printing x position. LSB xx111111 = character position MSB 11xxxxxx = ...
    uglifruit uglifruit August 2012 Development
<1234567…34>

Latest Posts

  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Minor British Sports that did become games on the ZX Spectrum
    dmsmith on April 8
  • 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
  • 1992 Spectrum Software
    harriusherbartio on April 7
  • Celebrity deaths...
    mel the bell on April 7
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 7
  • spectrum in netflix bomb and the cold war documentary
    zxbruno on April 7
  • Are there any decent Speccy Flight Sims?
    harriusherbartio on April 7
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 6

HitBox

Word Docs Hits
calculate 1.1K 1.4K
pixel 5.1K 8.3K
position 5.8K 7.8K
from 169.9K 237.3K
x 14K 31.7K
y 6.2K 15.7K

Related Threads

  • 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 …
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y?<br /> <br …
  • Spectaculator 5.x/6.x And Multiface 3Hi there, anyone had any trouble with this at all? The instructions say that it will auto-switch between a Multiface 128 and a Multiface 3 when choos…
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?
  • X-10 or X-20 schematics wantedDoes anyone have schematics for the Sinclair X-10 or X-20 amplifiers ?<br /> <br /> These amp-kits were sold back in 1964/65, and when I read about t…
  • Invaders from planext X (missing something?)[URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0006489&amp;loadpics=3"]Invaders From Planet X[/URL]<br /> <br /> P.I.E. System upper right ..…
  • Searching for the artistes from The Power House / H.E.X.Hello, my name is Caroline Bren, and this is my first post. Recently, I put out an audio record which some of you may have heard of, under the Feedin…
  • DRAW x,y,a Algorithm - how does the ROM do it?Hi all, <br /> <br /> Getting on with SpecOS, and one of the things I would love to do is to preserve the original ROM's behaviour when drawing Arcs.…
  • Boxed ZX Spectrum + with 2 x ZX microdrives, Alphacom32 printer with 3 x thermal rollHi people.<br /> <br /> I found a bargain at a carboot on Sunday from somebody who didn't know what he was selling. (Im no expert by a long shot)<br …

Related Searches

  • lowest memory position for machine code
  • lowest memory position machine code
  • y first project
  • boy from space
  • from bedrooms to billions
  • get font from game
  • x files
  • loading 48k games from disk
  • x y z
  • x y
  • attr y x
  • screen address to x and y
  • screen x y r tape
  • screen x y
  • 2000 let atr attr y x tinta 8 int papel 63 return
  • draw x y a algorithm
  • calculate pixel position from row
  • draw x y z
  • pixel mask x
  • x y to screen position

Copyright © 2024 World of Spectrum