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.042s
<1…567891011…34>
  • Fastest way to mirror a byte?I.E. turning 01100000 into 00000110, in assembly. I'm trying but I suck at stuff with rotation and the carry bit. Any pointers?

    ... , come up with a PASMO Macro that generates a 256-byte mirror table.[/QUOTE ... right place:[code]
    REPT 256, x
    defb ((x> ...
    obo obo October 2011 Development
  • playing sound samples from Boriel's zxbasic-compilerfirst of all, sorry if it sounds confusing if i'm posting this thread here instead instead of at Discussions:SinclarBasic it's because this is more …

    ... ; hl = noptable on an exact 256 byte boundary
    ; bc = sample count ... must be at beginning of 256-byte page
    defs LEVELS ; ...

    noptable contains a table of NOP instructions into which ... see how to speed up the loop using cpd ...
    Alcoholics Anonymous Alcoholics Anonymous October 2011 Development
  • Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …

    ... and ignoring the attributes -- one byte represents eight pixels with each ... and shifts it using a table look up before writing the data ... done by table lookup

    ; write A byte to screen ... back to remnant table
    inc de ; next sprite byte

    Alcoholics Anonymous Alcoholics Anonymous November 2011 Development
  • Screen routinesHello. For my games I?m using the sprites routine method of a screen buffer and when I finish to print all the sprites I dump all the buffer in the …

    ... anywhere near putting stuff up on the screen (I ... bit 7 in the next byte, and so.

    up perfectly with the bits ... two solutions to speed it up:

    1 - Use ...
    2 - Use a table to look-up the result of calculating any ...
    bobs bobs January 2012 Development
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... -byte table of values coded in some way so that a single look-up ...
    Paddy Coleman Paddy Coleman May 2012 Sinclair Basic
  • assembly optimization: times tenDecimal numbers are not computer friendly :) Anyway, short of saying "sod it - I'll multiply by 8" - and another part of the program does indeed div…

    ... 256 border)
    lookupLSB: precalculate LSB of all answers (if previous table ... is in
    a 256 border, ... will already be at 256 border)
    [/code ... in successive 256-byte tables, aligned on a 256-byte boundary. ...
    Marko Marko August 2012 Development
  • Relocation with SDCCI desperately need auto- relocation with SDCC. Something that will compile all of my code using start address 0 and generate relocation table so that…

    ... the size of the relocation table (see [url]http://u6c87.blogspot ... can only be fixed up to a 256-byte boundary.

    Note ... table (if eh_reloc_len != 0), followed by the code itself. The 49-byte ...
    u6c87 u6c87 April 2013 Development
  • Fantasy Z80 instructions?This follows on from something catmeows said in another thread, and that I've been meaning to ask for a while. This may sound daft to people with mo…

    ... setting H=0 and L=256 byte index but you are not ... to just one page of 256 bytes. You're a little ... was no longer a 4-byte "extend" opcode to introduce the ... for these other cpus will look quite different. The rabbit cpus ... would not have been taken up in 1975.
    Alcoholics Anonymous Alcoholics Anonymous June 2013 Development
  • Mirroring UDG'sJust wondered is there a quick an easy way of mirroring UDGs (byte values)? i.e. BIN 11110000 becoming 00001111 etc.

    The quickest way is to use a pre-calculated 256-byte flip table aligned to a page boundary, like the one at [url="http://pyskool.ca/disassemblies/contact_sam_cruise/asm/32256.html"]32256[/url] in Contact Sam Cruise.
    SkoolKid SkoolKid August 2013 Development
  • Movin And A Groovin Horizontal Flip improvementOn the left is the flip horizontal portion from Andy Pennell'S excellent Movin' & a Groovin' machine code screen routines from Your Spectrum #19 (Oct…

    ... , then using a lookup table method as follows, but ... z80 fast using a lookup table.

    Scr_add ... br /> Create lookup table to 256 byte boundary (requires 256 bytes of free space ... ;17 bytes

    256 byte table will look like this:

    00 ...
    jamorski jamorski August 2013 Development
  • Movin And A Groovin Horizontal Flip improvementOn the left is the flip horizontal portion from Andy Pennell'S excellent Movin' & a Groovin' machine code screen routines from Your Spectrum #19 (Oct…

    ... but saved another byte and speeded up the line incrementing a ... b,#XX 06XX ;Hi Byte of Lookup table 7
    Scr_add ... c,a 4F ;find lookup table address 4
    ld ... hl),a 77 ;copy flipped byte to lhs 7
    ... c,a 4F ;find lookup table address 4
    ld ...
    jamorski jamorski August 2013 Development
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ... /> [code]
    //set up IM2
    im2_Init(53248); ... br /> [code]
    //set up IM2
    im2_Init(0xd000);
    [code]
    //set up IM2
    im2_Init(0xd000); < ... table and 3-byte JP instruction, the table must start on a 256-byte ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Development
  • Border Tron vector tableI've been trying to use the Border Tron border creator, but the vector table is created where code to my game is at (FE00 I think), how would I go ab…

    ... table has to be located at a multiple of 256 -- this shows up ... in hex as the lowest two hex digits = 00. The table ... by 256 to get the most significant byte.

    The table ... itself contains all the same byte, ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... 't see how a 128-byte table is going to work with ... look strangely familiar. x$(5)&(6) are keys into another table ... the hash key 'h'
    [*]look up the 'h'th record in ... the range 1-102
    [*]look up the 'k'th record in ...
    Battle Bunny Battle Bunny January 2014 Development
  • Is ESXDOS flexible enough to incorporate e.g. Spectranet commands?I was just discussing the idea with someone about the wish some people have to be able to combine interfaces such as DivIDE (Plus) / DivMMC EnJOY! wi…

    ... for STDIO_MSG_EATC
    ;
    ; set-up: hl = state machine function address ...
    I quite often end up rewriting stuff because I didn ... look at this to see if it can do 256/512/1024 byte ... multiple buffers and only give up the least-recently-used ones ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Hardware
  • Multiply by 48Is there a 'cheat' to multiply by 48 in Z80? I have a table of sprites 48 bytes each entry, and I want to be able to offset my pointer with a simpl…

    ... put the sprites at 256 byte boundaries and just add the ... clarify is that the table will hold 4 frames ... counter cannot jump in 48 byte segments. (good idea ... br />
    Having a table of pointers to your sprites ... frame, could just go up in steps of 48 instead ...
    Atari_Jetman Atari_Jetman March 2014 Development
  • JP (HL) confusionokay.... JP nn will jump to memory address nn. JP (HL) ,I assumed would read the contents of memory address HL and jump to the location and be a gre…

    ... if you have a jump table, you have to find ...
    Now, if a jump table and JP (HL) is used ... used.
    jumptable ; aligned to a 256 boundery
    DEFW donothing ... is that the jump table is high-byte aligned. However, that restriction ...
    bobs bobs March 2014 Development
  • Porting Blues Brothers CPC->ZX...just an ideaI've just watched a video of the CPC version of the Blues Brothers games by Titus [url]http://www.youtube.com/watch?v=6DOj-Ta3Ek4...Based[/url] on th…

    ... obv... Would need another byte or two for each tile ... although just an extra byte per tile can give 8 ... current form they'll take up too much roo. It' ... can be made to take up even less room. That ... I'd keep a separate 256 byte table that holds properties for each ...
    Sokurah Sokurah June 2014 New game ideas
  • 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]…

    ... improvement is speeding up the computation of the next table index by ... within the table itself. This is a minor speed up, but if ... /> if (table/256)-((table+15)/256)
    error "whole table must be within single 256 byte block ...
    Patrik Rak Patrik Rak May 2015 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]…

    ... somewhat faster version with table restricted to single 256 byte block:
    < ... if (table/256)-((table+17)/256)
    error "whole table must be within single 256 byte block ... be shaved off by particularly aligned table, but I guess that' ...
    Patrik Rak Patrik Rak May 2015 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 …

    The table is typically aligned to a 256 byte boundary. Here, ... if let's say you have the high byte ... of the table address in B ... need to reverse the byte order, therefore step ... /> As for the mirror table, you can generate one ...
    Hikaru Hikaru August 2015 Development
  • Variable sized tiles /tile routineHow would you do a variable sized tile routine where the tiles have position variables too? Thanks would be interested to learn :)

    ... your format is 'X(byte), Y(byte), Graphic(16-bit address)' then ... you don't need a table look-up to find your graphic - you ... (byte), Y(byte), Graphic-N(byte), in which case you do need a table ...
    joefish joefish January 2016 Development
  • CAPS-SHIFT KeyCodeIs there a standard Keycode for CAPS-SHIFT Key ? Looking at the ROM documentation in the Main key table KEYTABLE_A, there is no Entry for CAPS_SHI…

    ... ?view=markup"]ascii key translation table[/url]

    For ... code is simply a mask byte in the top 8 bits ... use the ascii keyboard table above to look up scan codes that can ... br />
    Look up scan code using the ascii translation table:
    [url ...
    Alcoholics Anonymous Alcoholics Anonymous October 2016 Development
  • New Game - Pietro Bros [z88dk/Nirvana+][b]PIETRO BROS[/b] Pietro and Luizo were transported to pipe world after eating some rancid mushrooms on his pizza. Help them to escape from th…

    ... nirvana_halt inserted someplace to sync up. Inserting a conservative nirvana_halt at ... 's something to have a look at.

    There ... to the top of this 256 byte page).

    The zx7 ... of memory available. The last byte segment is AY music and ...
    Alcoholics Anonymous Alcoholics Anonymous December 2016 Brand new software
  • disk access & other peripheral docs?The documentation at http://www.worldofspectrum.org/faq/reference/ and thereabouts is fairly complete when it comes to programming the speccys, but t…

    ... /> I could dig up some conversations from these ...
    You have to look up each disk system's manual ... assume it will show up in documentation if you ... systems are primitive, take up memory space, or integrate ... the printer buffer as 256-byte disk buffer. I don ...
    Alcoholics Anonymous Alcoholics Anonymous May 2017 Development
  • disk access & other peripheral docs?The documentation at http://www.worldofspectrum.org/faq/reference/ and thereabouts is fairly complete when it comes to programming the speccys, but t…

    ... ;907684"]
    You have to look up each disk system's manual ... and requires you to set up a basic command in a ... use the printer buffer as 256-byte disk buffer. I don't ... -dos manual, and it does look rather primitive. I can only ...
    Sol_HSA Sol_HSA May 2017 Development
  • shadow regs musingIn the process of optimising some assembler, it occurred to me how great it would have been if the Z80's shadow reg opcodes had been a bit more fully…

    ... place to stash boundary-aligned lookup tables for byte mirroring, shifting, etc ... take your byte in A, do an exx and look up the values ...
    CatWeazle CatWeazle August 2017 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…

    ... a variable for each stored byte. Just label the beginning of ... of the code will then look like this:

    [code ... address to a 256-byte boundary, you can speed up the code a ...
    Ast_A_Moore Ast_A_Moore September 2017 Development
  • What to write / programme?I've been trying to get back some motivation to write something in machine code for the Spectrum. I don't feel I am organised enough to write somethi…

    ... shifted / rotated will take up 160 bytes each, as ... move on to next byte of tile graphics data
    aligned with a 256 byte page boundary, as ... your tiles each took up 256 bytes that would leave ... but my tiles took up 160 bytes each when ...
    dmsmith dmsmith March 2020 Development
  • Tricks to make mirror image of a graphic?I've been working on a sprite routine for lots of sprites and animations. I'm only storing right facing graphics, and converting them to left facing.…

    Use a 256 byte, page aligned table that contains the mirror image of the relevant byte.
    AndyC AndyC December 2020 Assembler
<1…567891011…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
256 4K 7.7K
byte 7.3K 15.2K
aligned 490 673
look 49.6K 56.6K
up 135.3K 178.3K
table 5.8K 9.1K

Related Threads

  • Look what I picked up in town...Was looking for one of these for ages.<br /> <br /> Saw them on amazon.co.uk, but never got round to buying one, then I was in Debenhams today and fo…
  • Do you want XP to look like Vista ? Look what I've foundI have just found this, i have loaded it onto my XP Media Center PC and it looks fantastic, kind of a facelift for XP PC's :) <br /> <br /> <br /> [u…
  • Roll up, Roll up... New Cronosoft release...Although it's been available for a little while, I've now updated the website to process orders for the new game SUDOKU by Kev Thacker.<br /> <br /> …
  • 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 …
  • Turrican 2 - Mock up of a Mock upOne of the games that I was most looking forward to in the latter years of the Speccy's commercial life was Turrican 2.<br /> <br /> The previews mad…
  • Animated mock up of a beat em up from RELEVO VideogamesRELEVO has posted in its channel a mockup of what could be in the future a beat em up for the Spectrum and MSX. Looks quite good!<br /> <br /> [url]h…
  • Take a look at these close-up pictures of my hard Willy!I've been busy with the 3D printing again. :D <br /> <br /> [URL=http://smg.photobucket.com/user/dave_c4/media/3d%20prints/2015-11-18%2000.26.37_e…
  • 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…
  • A sped up pixel-shift routine for 1-byte–wide spritesHere’s an optimized (for speed) real-time sprite shifting routine for sprites that are one byte wide. It uses no memory variables for storage of inte…
  • Up for GrabsCan anyone help with this game? (its by alternative software)<br /> <br /> I've tried a few emulators, all with the same problem. <br /> <br /> The g…

Related Searches

  • table pixadd
  • byte scan
  • saboteur 2 speed up
  • up for grabs
  • ay frequency table
  • look up table
  • dereferencing look up table
  • look up table code
  • 256 byte align
  • 256 byte align table ramtop error
  • 256 byte align table for sprite mask
  • 256 byte align sprite masklook 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
  • ld h table 256
  • pixel look up table
  • look up table pixel
  • mirror byte table

Copyright © 2024 World of Spectrum