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.023s
<1234567…34>
  • Moving a line down the display in assembler?...It's not a "[I]how can I do it[/I]" question, it's more a "am I missing something in trying to do it a new way" kinda question. What I've been doing…

    ... First I'm generating a table of screenaddresses. I [URL ... that generates a 512 byte table (128 bytes of it ... on the start of a 256 byte page.

    ...
    ld h,SCRTABLE/256
    add a,(hl)< ... 512 bytes on a table might earn me a ...
    Sokurah Sokurah June 2012 Development
  • CMWC random number generator for Z80Seeing the interest regarding the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]Xor-Shift random number generator for Z80[/URL]…

    ... c,e
    ld hl,table
    add hl,bc< ... br />
    ret

    table
    db 82,97,120 ... /> As you can see, the table access is quite expensive compared ... computation itself. Having the table aligned to 256 byte boundary could be used ...
    Patrik Rak Patrik Rak June 2012 Development
  • Rendering clipped glyphSometimes you need to render a glyph of arbitrary size to the screen. And clip it. For example: drawing a mouse cursor means combining drawing of a…

    ... glyph_t *glyph,
    byte x,
    byte y,
    rectangle_t *clip_rect ... address table (using standard trick with two tables on 256 byte boundary ... point 12 then first byte mask will be 11111110 ... and end byte mask will be 00000111. ...
    tstih tstih October 2013 Development
  • Scrolling Bi-Colour Engine for 4-Player GamesJust putting this code up for people to have a look at. Far from finished. Should simply compile and run a bit of a demo. Only good for 128K and +…

    ... br /> ;Use interrupt table at 48640 (190*256) and point to 191 ... />
    ;Interrupt vector table to go at 190*256 = 48640..48896
    ;Point interrupts to the table:
    ld a,190
    table
    REPT 8,int_sprite_attr_loop
    joefish joefish March 2014 Development
  • Optimal shifting for set pixel?Hi, I'm optimizing my set pixel code. For speed. But without using partitioned memory (i.e. a table on 256 byte boundary) I have optimal memory addr…

    ... memory (i.e. a table on 256 byte boundary) I have optimal memory ...
    tstih tstih May 2014 Development
  • Mirror tableCan anyone help with a byte mirror table? e.g. so you can look up a byte of a left-facing sprite and return the correct right-facing value. There …

    Can anyone help with a byte mirror table? e.g. so you can ... look up a byte of a ... up a byte and returning its mirrored value from the table using ... if anyone's got a byte mirror table to hand, please point ...
    Morkin Morkin August 2015 Development
  • Horizontal scrollDoes anyone know how to do a 2 or 4 pixel left or right horizontal scroll of the spectrum screen. I can make a 1 one pixel scroll with: ... rl (hl…

    ... supposed you could create a table of values relating to multiple ... say you would have a 256 byte table and do something like:
    LD H,table ; point to a 256 boundary table
    LD A ... ,(HL) ; get shifted value from table ...
    cyborg cyborg March 2003 Sinclair Miscellaneous
  • Advice about drawing sprites on spectrum I've coded sprite drawing before and know all the theory about masks from a long time ago (microhobby rules! ;), but since I did it on Amiga with ha…

    ... /> 2. Having a shifting table, along these lines:
    ... hl is base of shifting table
    ; ix is ... The rotation table is pointed at by h*256 and ... not hl if we are being pedantic. The table ... must start on a 256-byte boundary.
    Alcoholics Anonymous Alcoholics Anonymous July 2003 Games
  • Sync-buzzer, interrupts and general confusionBeen wittering on about this in the Misc group, but thought it was best discussed here. Basically been trying to recreate the Sid-Sound effect from A…

    ...
    Effectively I*256 points at a 256 byte table containing interrupt service routine ... *256+255,I*256+256. So the Spectrum needs a 257 byte table ... every byte of the 257-byte table pointed at by I*256 ... 0xf100 inclusive. Every byte in this table is set to ...
    Alcoholics Anonymous Alcoholics Anonymous September 2003 Development
  • An MC question (sorry, there's no MC forum to post to!)Ok, still struggling with learning MC - but am getting there. I just can't find anywhere on the web / in books that explains how to do arrays in MC.…

    ...
    add a,MyArray%256
    ld l,a< ... you align MyArray to the
    ; start of a 256-byte page ... evenly
    ; divisible by 256 so that, in 16
    ld h,MyArray/256
    ld a,(hl)< ... example above, sz=1 byte so no multiplication was necessary ...
    Alcoholics Anonymous Alcoholics Anonymous April 2004 Sinclair Basic
  • Pixel setting / general speccy codingi just started doing some cross-coding with the [url="http://www.bigfatpanda.fsnet.co.uk/z80.html"]Z80 SNA assembler[/url] and an emulator, and this …

    ... br /> LD H,LINEPTRS/256
    ADD A,(HL ... assumes the pixel table doesn't cross a 256 byte boundary.

    If you place the pixel table ... right at the beginning of a 256 byte page, ...
    LD D,PIXELTAB/256
    LD E,A
    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 …

    ... to look up the table for every byte, which is fairly time ... dealing with only 256 bytes. Each of this 256 byte tables is organized ... 4 more registers for storing table address)

    Unfortunately, I ...
    moroz1999 moroz1999 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 …

    ... ;placing table at the beginning of
    ;a 256 byte page ... br /> LD H,C0H ;table with preshifted mask bytes for ... B0H ;there is a table with all bytes preshifted ... form:
    ;mask byte, sprite byte, mask byte, sprite byte... and so on.) ...
    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 …

    ... ADD A,BYTETAB/256 ; there is a table with all bytes preshifted ... address table
    * SCRTAB must be at the start of a 256 byte ... start of the next
    * 256 byte page.

    SCRTAB ... shifted each byte takes two bytes
    * The table is divided ...
    dmsmith dmsmith August 2004 Development
  • InterruptsCan someone help with providing some info or a link about IM 2. I know I need to create a vector table and want to store this as high in memory as po…

    ... *256. The peripheral supplies a single byte identifier that indexes into this table ... a table lookup at address I*256+255/I*256+256, meaning the table must ... same byte in the entire table. Eg: from i*256 through i*256+256 inclusive ...
    Alcoholics Anonymous Alcoholics Anonymous February 2005 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…

    ... 'd definitely use a lookup table for speed instead of the ... at the start of the table (with interrupts disabled of course ... SP here, and if your table contains 256 entries or less (this ... ), it's worth using separate 256-byte blocks for all the entries ...
    Marko Marko April 2005 Development
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?

    ... the expense of a 512 byte lookup table, you might want to ... has to be on a 256-byte boundary, of course.

    gasman gasman December 2005 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…

    ... in the default configuration the table occupies addresses $f200-$ffff ... t need the rotation table. The rotation table is not used ... tile array is a 512-byte table of pointers. Each entry ... is actually two 256 byte arrays, with the first 256 bytes containing ...
    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…

    ... vector table. The interrupt vector table must begin on an exact 256-byte page ... table with the same byte. This way the z80 will always read byte*256+byte ... want a 257-byte table. A "0" would make a 256-byte table, which is ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Biotoxins redumping projectI've been spending quite a bit of time between dumping STP / MIA titles at looking at the titles flagged by Biotoxin as possibly needing a redump... …

    ... BYTE number of symbols in the alphabet (interpret 0 as 256 ... )
    SYMREC [..] alphabet table (rows=alphabet symbols)
    BYTE ... 256)
    SYMREC [..] alphabet table (rows=alphabet symbols)
    BYTE ... of repetitions
    BYTE symbol
    ...
    Mikie Mikie May 2006 MIA/STP/SDP
  • Delay routineAs some people are aware, I have recently starting writing a [url=http://fuse-emulator.svn.sourceforge.net/viewvc/fuse-emulator/trunk/fusetest/]autom…

    Anyone care to write a version that doesn't require a table aligned to 256 byte boundaries (and has the table directly following the code)? Thought I'd ask in case someone does so that I can avoid a little work :-)
    Alcoholics Anonymous Alcoholics Anonymous May 2007 Development
  • Delay routineAs some people are aware, I have recently starting writing a [url=http://fuse-emulator.svn.sourceforge.net/viewvc/fuse-emulator/trunk/fusetest/]autom…

    ... require a table aligned to 256 byte boundaries (and has the table directly ... [CODE]overhead2 EQU 21 + (LOW table)[/CODE]
    The 16 is ... that as long as the table and the "remainder" routines ... ] ASSERT (HIGH t_ret = HIGH table)[/CODE], which will fail if ...
    icabod icabod June 2007 Development
  • 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…

    ... HL
    FAST: LD H,TABLE/256 ; 2 / 7
    ... a 192 bytes table, aligned to a 256 byte boundary, and ... followed by another 192 bytes table ... bytes table, aligned to a 256 byte boundary, and this table is ...
    Metalbrain Metalbrain July 2007 Development
  • 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…

    ... HL
    FAST: LD H,TABLE/256 ; 2 / 7
    ADD A ... to a 192 bytes table, aligned to a 256 byte boundary, and followed ... by another 192 bytes table 64 ...
    Dr BEEP Dr BEEP July 2007 Development
  • He's back......and he's got a new trick! AY Chip here. I've been away far too long. I would like to announce 'HatStand': for no adequately explored reason, I h…

    ... as the high byte for a look-up table of addresses. The ... hardware supplies the low byte (depends ...
    In practice the low byte could be anything so programmers ... then filled the entire 256-byte block with that byte to make sure ...
    Code Monkey Code Monkey August 2007 Chit chat
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... a saving! Place your 'bit table' on a page boundry for ... register to access the bit table as you say. I thought ... a constant, aligned at a 256-byte boundary and C L or ... suggestion can be optimised. The 256-byte boundary can be a bit ...
    BloodBaz BloodBaz April 2008 Sinclair Basic
  • Channels and streamsSo I've put some thought into channels and streams, and read the dead (and presumably rotting corpse) of the CSS FAQ which contains some information …

    ... are accessed via a jump table. So long as the jump ... table exists and points to the ... gets updated. The jump table (in the 256 byte block starting at 0x3E00 ...
    Winston Winston July 2008 Development
  • VIC 20 emulation on the SpectrumI'm sure most people are aware of the my attempt at bringing the full Commodore experience to Sinclair users with the "Twenty Commodes" program. It e…

    ...
    ; PTR2 points to 256 byte table of worm segment positions
    LDA #SPRITES%256
    STA PTR1
    ... WORMPOS data
    LDA #WORMPOS%256
    STA PTR2
    ... position in A & WORMPOS TABLE
    TYA
    LDY ...
    Digital Prawn Digital Prawn September 2008 Sinclair Miscellaneous
  • I just learnt that Spectrum has 1kB of unused ROMWell, man learns through all his life. I have just discovered that Spectrum has over 1 kilobyte of unused ROM memory, from address 14446 to 15615. Al…

    ... trap (a 256 byte area) for the Spectranet indirect call table. Then I ... (with a very small 8 byte entry point area right at ...
    Winston Winston October 2008 Development
<1234567…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • 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

HitBox

Word Docs Hits
256 4K 7.7K
byte 7.3K 15.2K
align 355 615
table 5.8K 9.1K
ramtop 445 687
error 8.1K 11.6K

Related Threads

  • Habilit (known error) errorThe known error fix for the game Habilit ([url]http://www.worldofspectrum.org/infoseekid.cgi?id=0002199[/url]) doesn't work.<br /> <br /> An addition…
  • The need of having a 257-byte table for IM2 routinesThis came from a discussion at the speccy.org forum.<br /> <br /> I have understood that the reason behind the 257-table for IM 2 routines is due to …
  • zxasm.net facebook group - COMPO #6 – 256 byte game compo – THE RESULTS !!!The results of the last compo are in. All entries include the source code.<br /> <br /> [img]http://zx-speccy.co.uk/Copy2WebServerData/2016716_123…
  • Is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of fileHi,<br /> <br /> is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of file.<br /> <br /> E.g.: I have …
  • Byte Bitten - Sea Hawk KeysCould someone please tell me what keys are needed to control your helicopter in the Sea Hawk part of this game. No key seems to have any effect apart…
  • INVASION OF THE BODY SNATCHAS - Obscure High score table messages...After posting a message about this game on the 'first three games you bought' section, I got thinking more about this game.<br /> <br /> When you typ…
  • Two Manic Miners in the top 100 games table?A while ago I was checking the top 100 games (according to WoS visitors' votes), but I couldn't help notice that there are [I]two[/I] distinct "Manic…
  • STP: Computer Cookery 1 & 2 - Bug ByteI'm 99% sure these two titles are actually The Computer Cook Book (Bug Byte) that is listed in Infoseek.<br /> <br /> However, The Computer Cook Book…
  • help in byte mirroring.I need some help.<br /> What is the best way to mirror the byte?<br /> (for ex. 10010011 -&gt; 11001001)<br /> I mean, if there is a simple way to do…
  • Bug-Byte games wantedHi, Does anyone out there have the following games which they'd be willing to sell / trade? The games have to have specific coloured writing on the i…

Related Searches

  • table pixadd
  • byte scan
  • r forum loading error 0 1
  • r tape loading error 0 1
  • ramtop
  • ay frequency table
  • best place for interrupt table
  • interrupt table
  • ebug byte
  • 256 byte align
  • 256 byte align table for sprite mask
  • 256 byte align sprite masklook up table
  • 256 byte aligned look up table
  • how to code a 256 byte aligned look up table
  • how to align a 256 byte look up table
  • align a 256 byte look up table
  • 256 byte look up table
  • on error ramtop
  • ld h table 256
  • mirror byte table

Copyright © 2024 World of Spectrum