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

    ... snippet of code to convert a screen address to an attribute cell address...

    screen address
    rra ; divide ... attribute address
    or 0x58 ; set the high order byte to ...
    Sokurah Sokurah January 2014 Development
  • bitmap address to attribute addressI've searched, but I don't seem to find the proper keywords. I have a bitmap screen address in DL, character aligned (the address of the top byte of…

    ... to find the proper keywords.

    I have a bitmap screen address ... there a quick way to get the corresponding attribute address fiddling with that ... bitmap address?

    I'd ...
    na_th_an na_th_an November 2013 Development
  • Z88DK NOOB cplot INK colorHi I am a complete NOOB with Z88DK, I am trying to draw colored circles. How does ink, paper and border work with Z88DK. I started trying to wo…

    ... ; hl = screen address

    call asm_zx_saddr2aaddr

    ; hl = attribute address


    zx_saddr2aaddr() stands for "screen address to attribute address".

    zx_px2bitmask() stands for ...
    Alcoholics Anonymous Alcoholics Anonymous June 2016 Development
  • Reading DEFB for backgroundsHi all I suppose the question is kind of silly but I'm a completely newbie with assembler :-S I'm drawing some side backgrounds with ZX Paintbrus…

    ... of useful bits of code. Attribute address to screen address, and screen address to attribute address.
    [code]aa2sa: ld ...
    FrankT FrankT December 2018 Assembler
  • 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…

    ... a screen address calculation problem.

    I need to calculate the screen address of ... a tile based on a number from 0 to ... I have tile 0 its address would be 16384, tile ... when I have to calculate for the other screen thirds.
    ...
    Mr Millside Mr Millside April 2005 Development
  • Loading a screen in to memory...Hi Folks, I want to load a SCREEN$ in to memory and save it out to RAM disk without it being displayed on the screen. I am worried about over writi…

    ... to load a SCREEN$ in to memory and save it out to ...
    [CODE]100 LOAD “SCREEN” CODE RAMTOP+1,6192
    110 SAVE !”SCREEN” CODE RAMTOP+1,6192 ... /> Where RAMTOP is the address held in the equivalent System ... a simple [B]LOAD!"SCREEN" SCREEN$[/B] or does the ...
    Paddy Coleman Paddy Coleman December 2010 Sinclair Basic
  • 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;…

    ... DF CC system variable to extrac the screen address for a PRINT position ... /> I was expecting the bar to appear at the top of ...
    Paddy Coleman Paddy Coleman September 2016 Sinclair Basic
  • Work out screen address from attribute cellAttribute cell 22529 is equivalent to PRINT 0,1 position value. Is it possible to obtain these two values from the number 22529 in a simple MC rou…

    Attribute cell 22529 is equivalent to PRINT 0,1 position value.

    Is it possible to obtain these two values from the number 22529 in a simple MC routine?
    daveysludge daveysludge October 2018 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 …

    ...

    ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    LD A,H
    TO THE SCREEN

    ; ON ENTRY:
    ; HL CONTAINS SCREEN ADDRESS
    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 …

    ...
    ;
    ; ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    ; LD A,H
    TO THE SCREEN

    ; ON ENTRY:
    ; HL CONTAINS SCREEN ADDRESS
    robpearmain robpearmain September 2004 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…

    ... rearrangment for you to change from x,y coordinates to screen address and pixel ... that it is fastest to modify the screen address directly rather than constantly ... coordinates, screen address and attribute addresses. I'll leave that for you to work ...
    Alcoholics Anonymous Alcoholics Anonymous June 2003 Sinclair Miscellaneous
  • 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] ; ***********…

    ... char to the screen

    ; On Entry:
    ; HL Contains Screen Address
    screen address to an attribute address
    ; on entry: de = screen address
    ; on exit : de = attr address ...
    robpearmain robpearmain 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] ; ***********…

    ... /> PUSH HL
    ; converts a screen address to an attribute address

    ld a ... screen address to an attribute address
    ; on entry: de = screen address
    ; on exit : de = attr address ...
    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 …

    ...
    ;
    ; ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    ; LD A,H
    TO THE SCREEN

    ; ON ENTRY:
    ; HL CONTAINS SCREEN ADDRESS
    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 …

    ...
    ;
    ; ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    ; LD A,H
    TO THE SCREEN

    ; ON ENTRY:
    ; HL CONTAINS SCREEN ADDRESS
    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 …

    ...
    ;
    ; ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    ; LD A,H
    TO THE SCREEN

    ; ON ENTRY:
    ; HL CONTAINS SCREEN ADDRESS
    robpearmain robpearmain September 2004 Development
  • 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…

    ... screen address to an attribute address
    ; on entry: de = screen address
    ; on exit : de = attr address ... af

    ; generate screen address without using tables :)
    ; ... sprite data to display.
    ; de = screen address to draw at.< ...
    robpearmain robpearmain October 2004 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 …

    ... To convert a screen address to an attribute address, you want to go from #1 to ... ; Computes the attribute address corresponding to a screen
    ; address such as returned ... ; enter: hl = screen address
    ; exit : hl = address of attribute square
    ; ...
    Alcoholics Anonymous Alcoholics Anonymous April 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…

    ... the screen address from pixel coordinates, screen address from column coordinates, attribute address from screen address, screen address from attribute address, ... a screen address and returns the address of the corresponding attribute square, to which ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 Development
  • Newbie says 'Alreet?'Hiya dudes, Just dropping a line to say hello as i've decided at 33 to try and fulfill a long time ambition to write a speccy game in machine code..…

    ... is converting character coordinates to an attribute address and to understand that you have ... square. The attribute address selects a char square but the screen address can select ... test would be modifying a screen address to move down one pixel. As ...
    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…

    ... call PIX2SCR ; compute hl = screen address from pixel coordinates

    to screen

    ret ; note no change to attribute
    ... then be converted to a screen address using a ... should be modifying a screen address to move up, down, ...
    Alcoholics Anonymous Alcoholics Anonymous January 2012 Development
  • next pixelI searched the "Discussions" groups for the phrase "next pixel" and got no matches - and removing the quotes it discards the "next" and just searches…

    ... = screen address to pixel y coord
    zx_saddrpup = screen address pixel up
    zx_aaddr2saddr = attribute address to screen address
    Alcoholics Anonymous Alcoholics Anonymous September 2012 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... get_screen_location ; returns HL containing attribute co-ordinates on screen

    ; ... ; now get that screen address to be converted to the address of the attrs
    to place the attribute colours for that tile ...
    polomint polomint 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 …

    ... url]

    Every screen address, attribute address, character and pixel coordinate manipulation ... view=markup"]asm_zx_saddr2px.asm[/URL] (screen address to pixel x)
    [URL ... [/URL] (screen address to pixel y)

    The screen address does not ...
    Alcoholics Anonymous Alcoholics Anonymous April 2014 Development
  • Column and row numbers to attr address?[FONT=Calibri][SIZE=3]Can anyone provide me with a code snippet the will convert the column and row numbers into the screen attribute address. For ex…

    Every screen address and attribute address calculation you can ... B]x[/B] [B]to[/B] [B]a[/ ... col)
    ;
    ; Attribute address of character square at row ... /> ;
    ; exit : hl = attribute address corresponding to character
    ;
    ; uses ...
    Alcoholics Anonymous Alcoholics Anonymous April 2014 Development
  • Comp.Sys.Sinclair Crap Games Competition 2017As the creator of the second-least crap game in last year's competition (and the only mug stupid enough to agree to host it this year) I am proud/ash…

    ... works is at memory address 64000 there is space ... 63033[/b] to clear the buffered screen completely to attribute 0 (black ... an ATTR() read, the address to POKE or PEEK is [ ... 0' followed by an address and a count will ... '1' followed by an address and a count, then ...
    joefish joefish January 2017 Games
  • 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…

    ... ld hl,16384 ;screen address
    ld de,35000 ;address of graphic loaded ... h ;down one row on screen address
    inc de ; ... characters to move to right
    ld hl,16384 ;screen address to start ... into h (high byte of screen address)

    ld ...
    Rickard Rickard May 2007 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…

    ... the screen I have to add 32 to the map address to get to ... the next line.

    To ... INC E ; ADD 256 TO SCREEN ADDRESS TO GET TO NEXT LINE
    LD ... ; ADD 32 TO THE MAP ADDRESS TO GET TO THE NEXT LINE ...
    mulder mulder January 2016 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…

    ... hl,16384 ;screen address
    ld de,35000 ;address of graphic loaded ... h ;down one row on screen address
    inc de ; ... characters to move to right
    ld hl,16384 ;screen address to start ... of screen address)

    ld b,8 ;reset b to ...
    Rickard Rickard May 2007 Development
<1234567…34>

Latest Posts

  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • European Software Titles with an English version
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
screen 45.8K 73.8K
address 11.8K 21.2K
to 549.6K 1.6M
attribute 2.9K 4.3K

Related Threads

  • bitmap address to attribute addressI've searched, but I don't seem to find the proper keywords.<br /> <br /> I have a bitmap screen address in DL, character aligned (the address of the…
  • How to get Grahics to wrap vertically around the screen?I am using the following code to draw an image to the screen.<br /> <br /> First I use HL to contain ROW and COLUM<br /> I then call the MapScreenFun…
  • 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…
  • Fastest way to write something to screen$Hi,<br /> <br /> I just got pasmo.exe and start playing with attr scrolling, well, not scrolling, just write different values to a block and see if I…
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?
  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …
  • Update to Image to ZX Spec to 1.3.1I'm inbetween jobs at the moment and felt the need to add a new feature - the ability to export anim gifs.<br /> <br /> [IMG]https://lh6.googleuserco…
  • 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...<br /> <br /> [CODE]AttrDE: ld a, d ;…
  • How to add a loading screen to my tap file[FONT=Calibri][SIZE=3]I?ve got my game created as a tap file generated by Pasmo. I now want to add a loading screen. Can anyone explaine the best way…

Related Searches

  • fastest way to clear screen
  • full screen fuse how to
  • loading screen poke to hide text
  • yellow hue to screen
  • push pop to the screen
  • shadow screen to c000
  • screen address
  • write to screen
  • copy picture to screen
  • screen attribute
  • white screen no border when trying to load
  • 48k spectrum white screen no border when trying to load
  • screen address wrap
  • save more than 1 screen to memory
  • attribute address to co ordinates
  • row to screen address
  • sxenn address to attribute
  • screen address to buffer
  • screen address to x and y
  • screen address to attribute

Copyright © 2024 World of Spectrum