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.084s
<1234567…34>
  • Pseudo-3D map renderingHave been mulling this over for a while, until that isometric thread prompted me to ask. I'm not sure if this is officially classed as 2D, 2.5D, or 3…

    ... Miner remake to separate collision from the attributes (2/3 screen ... type T, N tiles long from x,y so each level didn't ...
    Paradigm Shifter Paradigm Shifter January 2014 Development
  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…

    ... the snapshot from
    ... based as opposed to pixel based system
    ... A ; Save new X Position

    ; Get x,y
    LD A,(IX ... ACHAR

    ; Calculate address of char

    robpearmain robpearmain August 2004 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…

    ... br /> ; *****************************************************************

    ; Title: Pixel Explosion
    ; File: pixel01.asm ... to ensure that from now on the ... now has proper address for x,y position


    ...
    robpearmain robpearmain September 2006 Development
  • 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? For examp…

    ... tell me how to calculate the 8 screen ... in basic at coordinates x and y?

    ... x=15: let y:11
    20 print at y,x; "K"

    X ... will be moving between 0-31 and y ... between 0 and 21. What would be the formula to calculate ...
    zxbruno zxbruno March 2007 Sinclair Basic
  • 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 …

    ... significant bits which determine the pixel position. The instruction AND 56 ... our vertical screen address. From there we take our ... here is a typical y,x coordinate and the screen memory ... Jonathan Cauldwell's alorithm to calculate it:


    ...
    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.…

    ... a display address from the X,Y coordinates of a pixel needs some rotate ... the scans for character at position 0,1 ... and bytes ... the scans for character at position 0,31. Using the ZX ... the routine to calculate the screen address from the X,Y coordinates to be ...
    mcleod_ideafix mcleod_ideafix September 2014 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] ; ***********…

    ... .z80 file available from [url="http://www. ... /> ; based as opposed to pixel based system

    ; ACHAR

    ; Calculate address of char

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

    ... AT command to specify the x/y pixel position to PRINT at. Although you ... ; Including code by Ian Beardsmore from Your Spectrum issue 7, September ... ld (chrad), hl ; screen and calculate the address in the
    from a
    ld a, ...
    chev chev April 2011 Sinclair Basic
  • 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…

    ... X and Y co-ordinates and
    ;move to the new printing position ... fit on the screen and calculate
    ;the address in ... character definition into the correct pixel position, place it
    ;on ... the
    ;attributes file from a given display file address ...
    chev chev May 2011 Sinclair Basic
  • 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…

    ... /> ; Including code by Ian Beardsmore from Your Spectrum #7, September 1984 ... /> jr z, getyp ; the X and Y co-ordinates and move to ... ), hl ; on the screen and calculate the address
    ld a ... the
    rr h ; correct pixel position, place it on the
    chev chev May 2011 Sinclair Basic
  • Move objectHi again, I am using paper colors to represent game objects. I have a "paddle" that is 4 pixels wide. I save its position as a 2 byte word in memory…

    ... ;543525]Storing the position as an X coordinate (from 0 to 28, in ... routine, which just works with X/Y coordinates and doesn't have ... even a register and easily calculate the real address based on ... ; move high bit rightmost paddle pixel from hl to de

    ooze48k ooze48k July 2011 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…

    ... /> ; Including code by Ian Beardsmore from Your Spectrum #7, September 1984 ... /> jr z, getyp ; the X and Y co-ordinates and move to ... ), hl ; on the screen and calculate the address
    ld a ... the
    rr h ; correct pixel position, place it on the
    chev chev August 2012 Development
  • How to get the current line position of a +3e's text window?Does anybody know how to get the current line position of a [url=http://www.worldofspectrum.org/zxplus3e/]ZX Spectrum +3e[/url]'s text window? I've r…

    ... case) and then calculate the row position as needed.[/QUOTE]< ... ; bottom right of window x-coord (0-31)
    ... ; bottom right of window y-coord (0-23)
    ... w_ppos ds.b 1 ; pixel position within character square (0-7 ... says, but the pixel line from the top of the ...
    programandala.net programandala.net March 2015 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…

    ... of the initial position so you can calculate the x&y movement, however ... /> ;; add x,y
    _ulzfa033:
    ld a,66 ; 7t - ***loaded from above ... /> ;;
    ;; check if attr or pixel
    ld c,1 ; 7t ...
    TomD TomD April 2017 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ...
    ; look up screen address from the table
    ld a ... x, y position
    ; hl = pointer to 8 bytes graphic data
    ; b = pixel y ... /> inc e
    ; next row, calculate screen address
    pop hl ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ...
    ; look up screen address from the table
    ld a ... x, y position
    ; hl = pointer to 8 bytes graphic data
    ; b = pixel y ... /> inc e
    ; next row, calculate screen address
    pop hl ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ...
    ; look up screen address from the table
    ld a ... x, y position
    ; hl = pointer to 8 bytes graphic data
    ; b = pixel y ... /> inc e
    ; next row, calculate screen address
    pop hl ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ... x, y position
    ; hl = pointer to 8 bytes graphic data
    ; b = pixel y ... /> inc e
    ; next row, calculate screen address
    pop hl ... />
    You need to start from something that works, I expect ...
    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…

    ... x, y position
    ; hl = pointer to 8 bytes graphic data
    ; b = pixel y ...
    ; look up screen address from the table
    ld a ... /> inc e
    ; next row, calculate screen address
    pop hl ...
    Paradigm Shifter Paradigm Shifter July 2022 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

    ; ... br />
    ; ACHAR

    ; Calculate address of char

    sprites:
    ; 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 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 …

    ... Anyway, snapshot can be got from:
    [url="http:// ... add offset based on pixel position of ycar
    ... SUB E ; take it from 8
    RLA ; double ... Priorities: Mask, Char line, Y char, X char
    ;Attributes: ...
    robpearmain robpearmain September 2004 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…

    ... on the screen based upon x,y pixel coordinates, which are altered by ... / Currently, I calculate the screen hl coordinates for each pixel row of ... rub-out the old sprite position without suffering a horribly flickery ...
    48K 48K May 2006 Development
  • How to create pretty screenshot maps[size=+1][b]A. What will I need?[/b][/size] 01. Your favorite [url=http://www.worldofspectrum.org/emulators.html]Speccy emulator[/url]. 02. An util…

    ... . An utility for capturing screenshots from emulators, e. g. [url= ... ZX SS and adjust correct position manually with using arrow buttons ... of a screen about one pixel use Cursor Keys + SHIFT ... the map, color depth, step X/Y values, colors, etc. (look at ...
    Pavero Pavero May 2006 Support files
  • 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…

    ... a pixel row for the speccy in assembly. One is to calculate ... the address by ways of shifting and masking the X & Y ... suppose that holds the Y address of each pixel row.

    y co-ord of a pixel row efficiently? It ...
    Arjun Arjun July 2007 Development
  • FZX Driver for z88dkAn fzx library for z88dk can be downloaded [URL="https://drive.google.com/file/d/0B6XhJJ33xpOWM2hWNjAxMVkxaEk/edit?usp=sharing"]here[/URL]. The libr…

    ... int fzx_setat(uchar y, uchar x);[/B]
    Print position can also be ... information on a single character from the current character set.< ... );[/B]
    Return the pixel width of the buffer. Newline ... some processing, to load fonts from disk or network.
    ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Announcements
  • SpecBAS 0.802 Released!Hi folks - It's that time again when I release the latest round of features and bugfixes to SpecBAS :) New for this version are ZONEs which act ver…

    ... minimum respectively - performs a pixel-by-pixel compare
    Optimised the ... for the texture - CIRCLE x,y,r FILL will suffice
    from a base to decimal
    position of the first match using ...
    Dunny Dunny February 2014 Sinclair Basic
  • 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…

    ... a buffer which is 192 pixel high (deep).
    # In this ... ) #Sourxe X position

    self.sourceYPos = self.inputValue('Copy from buffer y-position in ...
    KrazyKattapilla KrazyKattapilla August 2014 Development
  • Raycasting (3D Games!) with SpecBAS<div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">Here's one I wrote just recently. I wanted to see …

    ... demos archive) read an array from a position that you occupy. If ... br /> Working from left to right for each pixel across the ... work out the angle that pixel is from your (the human's ... SCRh-1 FILL 70 FOR x=0 TO SCRw-180 ... pla90
    LET cx=2*x/SCRw-1,rx=px,ry ...
    Dunny Dunny May 2015 Sinclair Basic
  • Chompston Mazes in SpecBASAfter the discussion in ASH-II's Pacman thread, I checked out the link there about generating 2D Pacman style mazes. This one was quite good fun, …

    ... FN d:
    LET x$=x$+CHR$ x,y$=y$+CHR$ y:
    NEXT g:
    position inside e$ and store that ... store the number at that position in e$ in a new ... to the x$ and y$ variables, using CHR$ to convert from a number ...
    Dunny Dunny October 2015 Sinclair Basic
<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