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.164s
<1234567…34>
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?

    What is the fastest way, given x,y (in hl) to return the attribute address?
    robpearmain robpearmain December 2005 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…

    ... I have a bitmap screen address in DL, character aligned ... (the address of the top byte ... a quick way to get the corresponding attribute address fiddling with ... that bitmap address?

    na_th_an na_th_an November 2013 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…

    ... of code to convert a screen address to an attribute cell address...
    ... attribute address
    or 0x58 ; set the high order byte to ... /> ret ; de now contains the attribute address
    [/CODE]

    Sokurah Sokurah January 2014 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 …

    ... (where n is 0 to 255). The co-ordinates are taken
    ; ... from the standard screen channel. To ... print at a specific co-ordiante use< ... br /> ex de, hl ; character attribute address to DE

    ; error ...
    chev chev May 2009 Development
  • Hi Res Print Routine neededHas anyone seen code for a print routine with pixel accuracy? That is print(y,x,CHAR) that allows 0 < y < 192 and 0 < x < 255 - that takes a charact…

    ... ,bc
    ;calculate the correct Attribute Address for the Y\X values ... (hl),e
    ;set the Attribute address to the line below - and set ... the Attribute address - set the adjacent horizontal Attribute - then set the Attribute Address back
    Turkwel Turkwel June 2010 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…

    ... zx_saddrpup = screen address pixel up
    zx_aaddr2saddr = attribute address to screen address
    ...

    screen address = pixel display address 16384-22527
    attribute address = attribute ...
    Alcoholics Anonymous Alcoholics Anonymous September 2012 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... highlight subroutine I need to set the attribute address to hl based on the ... /> [code]
    highlight ; set the attribute address here to hl

    ld ... (hl),%00000100 ; the attribute value that will ...
    Speccy_James Speccy_James February 2014 Development
  • Animated attribute revealA new challenge to solve next. I would like to create an animated attribute reveal in machine code by having my 768 byte attributes held in ram whic…

    ... to the screen is highlighted.

    So, I set my attribute ... highlight subroutine I need to set the attribute address to hl based on the ... per Y row for me to refer to

    [/QUOTE]< ... />
    this subroutine counts koords to adr in atr place
    Jerri Jerri February 2014 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…

    ... useful bits of code. Attribute address to screen address, and screen address to attribute address.
    [code]aa2sa ...
    FrankT FrankT December 2018 Assembler
  • Work out attribute location in MCHow do I go about writing a MC routine which calculates the attribute address from a set of PRINT co-ordinates. I know you in basic you multiply the…

    ... which calculates the attribute address from a set of PRINT co-ordinates.

    co-ord and add to 22528 to find the address.

    Struggling to do it ...
    daveysludge daveysludge August 2012 Development
  • some debugger in emulators that is able to brakpoint when a mem address is accessed ?Is there a debugger (disassembler) available in some emulator that is able to stop (breakpoint) when a particular memory address is accessed ? For e…

    ... is able to stop (breakpoint) when a particular memory address is accessed ... example I want to stop when address #5aff is about to be changed ... this case a specific color attribute) and to see where the program ...
    secarica secarica November 2009 Emulators
  • Convert AT co-ordinates to PLOT co-ordinatesHow do you convert the 2 from MC? I don't know how to convert the vertical value as they're differently ordered... Heres what I have so far: [CODE]…

    ... ? I don't know how to convert the vertical value as ... a,(50000-3) ;vertical AT co-ord

    ld b ...
    daveysludge daveysludge January 2014 Development
  • misunderstanding screen addressingHi I am just reading mastering machine code Toni Baker: [url]ftp://ftp.worldofspectrum.org/pub/sinclair/books/MasteringMachineCodeOnYourZXSpectrum…

    ... attribute byte”. For example,
    consider the point whose PRINT AT co-ordinates ... are 5,4. According to
    the ... diagram, the first two digits of the address ... 4. This gives us the address 40A4.[/QUOTE]

    ...
    username username April 2014 Sinclair Miscellaneous
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... br /> -------------------

    To prevent "Program: foo" or "Bytes ... print output is to be send to the printer. A ... mean it is to be sent to the TV screen ... /> Keeps track of the address on the machine stack where ... the same again to get back to normal L/C ...
    na_th_an na_th_an April 2005 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 …

    ... really.

    Divide your co-ordinates by 8. You now have ... your result to the address of the start of the attribute data. You ... now have an address that points to the attribute square ...
    cyborg cyborg 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 …

    ... really.

    Divide your co-ordinates by 8. You now have ... the attribute data. You now have an address that points to the attribute square ... you'll have to subtract the Y co-ordinate from 176 ... ever use the Sinclair BASIC co-ordinate convention for a ...
    monty.mole monty.mole April 2006 Development
  • Jetpac questionHi all, I just bought a copy of Jetpac off of Ebay and I'm having problems. To start, I'm trying to play it on an issue 2 Speccy with Interface 1, 2 …

    ... JR NZ,MEASURE_FAIL ; This address failed to hold a byte
    ... save the co-ordinates

    ; Write the attribute byte first< ... ADD HL,BC ; Add to base screen address

    ... LD BC,$1800 ; Add offset to start of ATTRIBUTE ...
    Digital Prawn Digital Prawn January 2009 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…

    ... I'm pleased to say that the latest attribute fix doesn't ... offset is added to the base
    ; address to give the correct location ... ; the X and Y co-ordinates and move to the
    pop af ... />
    inc e ; Timmy's attribute patch
    ld a, e ...
    chev chev May 2011 Sinclair Basic
  • Work out attribute location in MCHow do I go about writing a MC routine which calculates the attribute address from a set of PRINT co-ordinates. I know you in basic you multiply the…

    ... which calculates the attribute address from a set of PRINT co-ordinates. I know ... co-ord by 32 add the horizontal co-ord and add to 22528 to ... find the address.[/QUOTE]
    to hi byte (they become bits ...
    tstih tstih August 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…

    ... offset is added to the base
    ; address to give the correct location ... ; the X and Y co-ordinates and move to the
    pop af ... />
    inc e ; Timmy's attribute patch
    ld a, e ...
    chev chev August 2012 Development
  • A new full-screen bicolor engine called NIRVANA[I]OK, there's something I need to clarify first: Nowadays if you write [B]"multicolor"[/B] everyone assumes it refers to "multicolor 8x1" (an attri…

    ... it won't require extra attribute bytes, therefore even the ... pointers and X/Y character co-ordinates.[/QUOTE]

    ... called [B]BIFROST_drawBackTiles[/B] to redraw the background tiles behind ... bicolor attributes (or an address or index for each sequence ...
    Einar Saukas Einar Saukas January 2014 Brand new software
  • 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…

    ... to do is add a routine you can CALL to calculate the attribute ... screen address. This is the ... ,(tile_x) ; retrieve co-ordinates
    call get_screen_attr ; returns HL containing attribute co-ordinates on screen ...
    Morkin Morkin March 2014 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…

    ... ,(tile_x) ; retrieve co-ordinates
    ; call get_screen_location ; returns HL containing attribute co-ordinates on screen ... get that screen address to be converted to the address of the attrs
    polomint polomint March 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.…

    ... I][SIZE="1"]because the attribute data is retrieved from a ... cycles. Needless to say that the C64 attribute layout is linear ... RAM and another one to read an attribute from screen RAM. ... it comes to bit- bashing pixel co-ordinates into a screen address though.
    Matt_B Matt_B September 2014 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 …

    ... [url="http://www.peargames.co.uk/downloads/bb2.z80 ... /> ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    LD A,H
    co.uk"]rob@pearmain.co.uk[/email]
    co.uk"]www.peargames.co.uk[/url]
    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 …

    ... :
    [url="http://www.peargames.co.uk/downloads/bb10.z80"]http ... ://www.peargames.co.uk/downloads/bb10.z80[/url ... /> ;
    ; ; CONVERTS A SCREEN ADDRESS TO AN ATTRIBUTE ADDRESS
    ; LD A,H
    robpearmain robpearmain September 2004 Development
  • What should be the base address to set for my codeHi, I am new here and I have a simple question but one which I have not found an answer to. When I am developming my programs what should I set th…

    ... have not found an answer to. When I am developming ... I set the base address for my code to (i.e. the ... area of the memory assigned to machine code can move ... fixed location that I can to give me as much ... start it at the highest address that it could possible be ...
    Scrapheap Scrapheap April 2006 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…

    ... hl pointing at the screen address
    ld de,scratchspace
    address
    ld de,overscratch
    co-ordinates for printing routine x=0 to 40
    ycoord defb 0 ; co-ordinates ...
    uglifruit uglifruit August 2012 Development
  • JSW2 - Game Loader DifferencesThere are three official releases of JSW2. I'm not counting the 'JSW2-128' version here as far as I'm aware this was not in any way 'official' as it …

    ... /> [img]http://www.yellowspider.co.uk/speccy/jsw2.loadingpic.jpg ... br /> [img]http://www.yellowspider.co.uk/speccy/jsw2_keypad.jpg[/img ... br /> [img]http://www.yellowspider.co.uk/speccy/loader_jsw_sp.jpg[/img ... header to load the 'basic' at a higher address, and ...
    spider spider September 2013 Sinclair Miscellaneous
<1234567…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Your Spec-chum on 7:28AM
  • Your Favorite Magazine Cover Tapes.
    Paradigm Shifter on 1:28AM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11
  • Footballer of the year - translated version
    firelord on April 11

HitBox

Word Docs Hits
attribute 2.9K 4.3K
address 11.8K 21.2K
to 549.6K 1.6M
co 28.4K 40.8K
ordinates 160 213

Related Threads

  • Convert AT co-ordinates to PLOT co-ordinatesHow do you convert the 2 from MC? I don't know how to convert the vertical value as they're differently ordered...<br /> <br /> Heres what I have so …
  • 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…
  • 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…
  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • i want to save a snapshot file from snap to tap onto my hdd. what code address and length is it?hi,<br /> i want to save a snapshot file from snap to tap onto my hdd. what code address and length is it?<br /> i cant seem to find any info on th…
  • How to download games to micro sd card to play on Sinclair zx spectrum vegaHello<br /> Could anyone tell me how to download games from a website to a micro sd card to play on a Sinclair zx spectrum vega , I mean do I use a …
  • A game to port to... to make for... ZX Spectrum ?Hey there,<br /> <br /> I'm a game coder on Commodore computers (C64,CPlus/4,VIC20,Amiga) and I loooove the ZX Spectrum.<br /> I grew up with Comm…

Related Searches

  • from bedrooms to billions
  • z80 to tape
  • snapshot to tape
  • linux tzx to wav
  • trd files to image
  • fastest way to clear screen
  • user name and password to download emulator
  • convert src files to
  • rst8 return to basic
  • return to basic
  • convert to attribute
  • convert char to attribute
  • attribute address to screen
  • row to screen address
  • sxenn address to attribute
  • screen address to buffer
  • screen address to x and y
  • attribute to row columns
  • screen address to attribute
  • ula generated ras going high switches the 74ls157 mux to select z80 column address

Copyright © 2024 World of Spectrum