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

    ... ; get the high byte of screen address
    rra ; divide h by ... [B]OR 0x58[/B] to (eg.) [B]OR 0xFD[/B] to get me the address ... D,A
    LD E,L
    RET
    [/CODE ...
    Sokurah Sokurah January 2014 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…

    ... /> get_screen_address_and_draw:


    ld l,b ; l=xpos (0-255)
    ld ... to beginning of screen address tablw

    ld l,c ; l=ypos (0-192 ...
    robpearmain robpearmain September 2006 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…

    ... - convert to screen address
    add a,l ; 4t
    ld l,a ; 4t ... - store loop counter and c
    ld b,4 ; 7t - four lines ... c,_PLOT2CHR_S1 ; 12/7t - if no carry then not moved one screen ... quadrant down, reset h
    ld h,c ; 4t ...
    TomD TomD April 2011 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.
    120 PRINT AT 11,16;"B"
    130 LET A=PEEK ... at the top of the B character but it does not ...
    Paddy Coleman Paddy Coleman September 2016 Sinclair Basic
  • 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…

    ... You can write an m/c subroutine that does this ... If HL holds your screen address and B holds the pixel mask ... rlc b
    ret nc
    dec l ; move left a screen ... connection between character coordinates, screen address and attribute addresses. I ...
    Alcoholics Anonymous Alcoholics Anonymous June 2003 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 …

    ... for retriving
    LD L,C ;sprite data: C - Mask, B - Sprite
    LD ...
    AND L ;before being sent to screen.
    LD L,B
    OR ... save and retrieve the screen address at
    LD L,A ;at the ...
    dmsmith dmsmith 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…

    ... />
    get_screen_address_and_draw:

    ld l,b ; l=xpos (0-255)
    ld ... to beginning of screen address tablw

    ld l,c ; l=ypos (0-192 ...
    Dr BEEP Dr BEEP 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…

    ... y,x) to screen address and
    b) write screen data at that ... char to any address in memory ... src (screen) address into hl
    ld l,c
    ld h,b
    ...
    ; Copy 8 bytes from screen ...
    BloodBaz BloodBaz March 2007 Sinclair Basic
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... ;Screen Address
    rrca ;where B=Line Value (0-23)
    rrca ;where C ... =Column Value (0-31)
    rrca ;Screen Address returned in ... B=Number of Bytes to transfer, DE Screen Address,
    inc l ;HL=address of ...
    Turkwel Turkwel April 2010 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... /> getcol:
    ld a, b ; restore character
    cp 64 ... /> ; flag
    ld l, a ; CHAR to low ...
    ld e, l ; without using the stack ... ; base location
    ld l, a ; plus column offset< ... byte of the screen address
    ; C holds the offset ...
    chev chev March 2011 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…

    ... - convert to screen address
    add a,l ; 4t
    ld l,a ; 4t ... - store loop counter and c
    ld b,4 ; 7t - four lines ... c,_PLOT2CHR_S1 ; 12/7t - if no carry then not moved one screen ... quadrant down, reset h
    ld h,c ; 4t ...
    kgmcneil kgmcneil April 2011 Development
  • 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…

    ... /> getcol:
    ld a, b ; restore character
    cp 64 ... /> ; flag
    ld l, a ; CHAR to low ...
    ld e, l ; without using the stack ... ; base location
    ld l, a ; plus column offset< ... byte of the screen address
    ; C holds the offset ...
    chev chev June 2011 Development
  • Using the ROMs PRINT routineI really am starting from scratch again it seems, but how do you utilize the ROM routine to print characters, I think you point te BC register to an …

    ... pointer
    push de ;save screen address
    call get_char ;call with ... ;which if set...
    ret c ;is the end of the ... /> p_char push de ;save screen address
    ld b,8 ;8 lines to ... a holding ascii
    ld l,a
    add hl,hl ...
    R-Tape R-Tape 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…

    ... holding B too.[/QUOTE]

    More like C=X ... , A=Y for that matter. Which gets you the screen address ... for moving down the screen one pixel line at ... used:[code] ;HL=screen address
    ;(c) someone else
    ... ret nz
    ld a,l
    sub #e0
    Hikaru Hikaru September 2012 Development
  • generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…

    ... />
    srl h
    rr l
    jr nc, done_lfsr
    Alcoholics Anonymous Alcoholics Anonymous July 2013 Sinclair Basic
  • Experimenting with turboloadersHello, My first post, having lurked here for a while. I'm a lifelong computer nerd, Spectrum fan since childhood in the eighties, and have recently…

    ... c
    ld h,0 ; Calculate character base address
    ld l ... ld de,(printparam+2) ; Screen address
    ld b,8
    clp: ld ... point printparam+2 at the screen, and printparam+4 is ...
    GoingDigital GoingDigital September 2013 Development
  • display file addressing; screen slicingWhile working on this Compendium I'm updating or rewriting a lot of stuff. One thing I eventually came to appreciate was the simple & clever way in w…

    ... & transparent movement around the screen.

    [code]< ... rrca
    or c ;C =column
    ld l,a ;L =rrrccccc
    ... DE=bit pattern save address
    ld b,l ;B =8
    ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • Why doesnt this work???Simple piece of code wont do as it should, just want to fill the top 22 lines of screen with an attribute value (150) but it wont have any of it. Som…

    ... HL,22528 ; screen address
    LD B,6 ; this ... /> LD (HL),C ; colour the square ... br /> INC L ; shuffle along< ...
    MatGubbins MatGubbins October 2016 Development
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ... ,MainScreen ; screen address
    LD B,12 ; loop counter
    blips LD C,B ; store ... ; put back to the screen
    INC L ; move L along
    LD ...
    MatGubbins MatGubbins September 2017 Development
  • 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
  • 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…

    ... c,8 ;c=number of columns in "sprite"
    ld b,8 ;b=number ... byte of screen address)

    ld b,8 ;reset b to number of ... />
    moveonecharacter
    ld c,8 ;reset c, number of side movements ...
    Rickard Rickard May 2007 Development
  • Changing the way SCREEN$ is loadedThe way the speccy loads in a SCREEN$ is interesting - top two-thirds first, then middle and finally the bottom, which is due to the way the speccy d…

    ... = screen address
    ld b, 8 ; b = line counter
    startline: ld c, 32 ; c = ... poke to screen
    inc hl ; next screen address
    dec c ; decrease ... nextline: inc hl ; next screen address
    dec c ; decrease counter
    ld ...
    FrankT FrankT October 2008 Sinclair Miscellaneous
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... /> ld (CH_ADD),de
    jp c,$1c2e ;"2 - Variable not found ... hl
    ld b,(hl)
    inc hl ;B,C=y,x
    screen address
    ld b,a
    inc b
    ld ...
    Battle Bunny Battle Bunny January 2014 Development
  • 2x2 tile to attribute blocksHow do you go about converting a 2x2 tile to 16 x 16 attributes? Heres an example of the tile data I'm wanting to enlarge. [code] defb 255, 25…

    ...
    LD HL,22528 ; screen address
    LD B,80 ; attribute of the ... ; recall colours
    LD A,C ; get the top right colour ...
    MatGubbins MatGubbins September 2016 Development
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ... ; start of screen address
    LD B,12 ; do ... of the screen
    blipscreen LD C,B ; C is the ...

    LD B,C ; recall counter
    DJNZ ...
    MatGubbins MatGubbins August 2017 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…

    ... (y,x) to screen address and
    b) write screen data at that char ... to any address in memory ... &y to a defined address. Is it too complicated to ...
    zxbruno zxbruno March 2007 Sinclair Basic
  • Copy 4Kb in Assembly?Here's an interesting problem: what's the best way to copy a block of 4Kb in assembly? The most obvious solution is to use [B]LDIR[/B]: [CODE] l…

    ... [/B] referencing a certain bitmap screen address, [B]BC[/B] referencing the corresponding attribute screen address, and [B ... ]HL[/B] referencing ...
    Einar Saukas Einar Saukas October 2013 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…

    ... />
    LD D,C
    LD E,L
    INC E
    L
    POP BC ;Put tile on the screen
    LD (HL),C ... /> LD (HL),B

    LD BC,1760 ;adjust screen address for

    LD D,C
    LD E,L
    INC E
    dmsmith dmsmith September 2004 Development
  • Optimisation Needed! Is this the Fastest way to copy bytes from screen and back again?I have the screen address (say 0,0 i.e 16384) I want to copy 4 bytes wide by 32 bytes high from the screen to an area of memory. I then want to cop…

    I have the screen address (say 0,0 i.e ... /> ; Copy from store to the screen

    ld hl,16384 ... ),c
    inc l
    ld (hl),b
    dec l
    dec l
    robpearmain robpearmain November 2005 Development
  • Screen LoaderCouple days ago i find very interesting loader routine in ex Yugoslavia magazine "Svet Kompjutera" from january 1987. Authors of article, calls this …

    ... most impressive.
    Uncompressed screen must be at 49152, routine ... of problem.
    Start address of game is in IX ...
    LFF32 RL C
    XOR L
    RET NZ< ...
    CP B
    RL L
    LD B,&B0
    AND C
    LD C,A
    POP ...
    Pegaz Pegaz August 2006 Games
<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
screen 45.8K 73.8K
address 11.8K 21.2K
c 20.3K 48.8K
b 55.2K 190K
l 6.7K 16.6K

Related Threads

  • comp.sys.sinclair Crap Games Competition (C.S.S.C.G.C. 2022) is here!Welcome one and all!<br /> <br /> [img]https://i.postimg.cc/3yYpjjbH/cropped-CCG2022.png[/img]<br /> <br /> I am proud to announce the opening of…
  • .$b and .$c format helpHi, i have downloaded agame of lemmings (it took ages to find one that might work) i have downloaded about 5 and none of them worked.<br /> I have fo…
  • T H E . B E S T . J O Y S T I C K . E V E RThe best joystick I ever had was the<br /> Emax Arcade Professional<br /> <br /> Big, BIG, massive thing just like the ones in the arcade...<br /> <b…
  • can someone make manic miner in b.a.s.i.c (oh, the horrors!)can someone make manic miner (or it's first level) in b.a.s.i.c . yes i know this is stupid, but i would like to know what would happen! from matthew
  • jet set willy in b.a.s.i.c (oh, even more horrors!!!!!!!!)what about jet set willy in b.a.s.i.c ? is anyone doing that? i think it's a really bad idea, but it's sure is a funny one! oh yes, i do know a littl…
  • ant attack in b.a.s.i.ccan someone make ant attack in b.a.s.i.c . it may be impossible!<br /> from a 14 year old kid.
  • who do you use 1 key b.a.s.i.c?well how do you. is there a web site about it. i do not have the original instruction book.<br /> from a 14 year old kid (named matthew.......)<br />…
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • 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…
  • [b]Testing Bold font in Thread title[/b]Oh uh...just testing something...<br /> ...if the thread title could be also in bold or italic...

Related Searches

  • fastest screen routine
  • screen routine
  • screen routines
  • fastest way to clear screen
  • screen address
  • ld a b xor c loop
  • ld a b or c loop
  • play a b c
  • b c bill
  • screen address wrap
  • attribute address to screen
  • screen address aa
  • row to screen address
  • pixel row screen address
  • screen address to buffer
  • screen address to x and y
  • cpi ld a b or c
  • screen address to attribute
  • c e l a
  • if screen 0 b then

Copyright © 2024 World of Spectrum