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.047s
<1234567…34>
  • rotating HL left through CarryI've tried this several ways, and it works for a while, then a particular value has a bit set in an inconvenient place and it all goes to pot. Eg: "…

    ... one, but doesn't use look-up table.
    [CODE]
    ld a, l ...
    ld l, a ;4[/CODE]

    And finally, the ... tstates solution, in rot13.
    [CODE]
    yq o, u ;4 ... /> yq u, n ;4
    [/CODE]
    antoniovillena antoniovillena March 2012 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 …

    ... br /> I have used a look up table for the char address, and ... speeding up the drawing of the sprites too.
    [code]< ... LD HL,0FE00H ;BUILDING UP A TABLE WITH
    LD BC ...

    END
    [/code]

    _________________
    [B ...
    robpearmain robpearmain September 2004 Development
  • maths help 'JSW'JET SET WILLY uses a lookup table to play the opening tune (Moonlight Sonata) this is the table [code] 34299 DEFB 81,60,51,81,60,51,81,60,51,81,…

    ... SET WILLY uses a lookup table to play the opening tune ... />
    this is the table
    [code]
    34299 DEFB 81,60 ... DEFB 61,121,61,255[/code]

    so for ... first 3 notes in the table are 81 , 60 , 51< ... I will use an alternate look up table.
    ASH-II ASH-II August 2015 Sinclair Basic
  • i want to start writing my own gamesi want to start writing my own games but have no idea how. is there any downloadable dummys guides or some software that teaches u how. the only expe…

    ... I use a very handy look up table in the manual itself, LOL ... , etc, as well as your code. I'm progressing nicely with ...
    GBNvK GBNvK January 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] ; ***********…

    ... I have also created a look up table for the "xpos" gfx ... calculating graphics offset

    [code]
    ; ********************************************

    ; ... /> END


    [/code]
    _________________
    [B]Rob ...
    robpearmain robpearmain August 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…

    ... />

    [code]
    C2S_2:
    dec ixh ... jr nz,C2S_1
    [/code]
    this is stupid: ... of DOWN_HL code (two pixel step, maybe smart look-up table)
    ... />
    djnz do_it_again
    [/code]
    for every sprite, this ...
    Fikee Fikee December 2005 Development
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this: PRINT USR xxxxx, arg1, arg2:…

    ... /> eg.


    MACHINE CODE:
    org 30000
    call ... the image address from a look up table...
    ...then draw the image ... - 0 is first image in table
    60 PRINT USR 30000 ... would call a drawimage machine code routine passing in the x ...
    Kiwi Kiwi April 2006 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…

    ... way is to use a look up table I suppose that holds the ... +384 = 391 / 39
    [/code]

    TABLE points to a 192 ...
    RET ; 1 / 10
    [/CODE]

    This one takes ...
    Metalbrain Metalbrain July 2007 Development
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    ... cleared, in a look-up table. Then, in your main code, work down that ...
    bobs bobs July 2007 Development
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    ... cleared, in a look-up table. Then, in your main code, work down that ...
    Fikee Fikee July 2007 Development
  • plotting and rotating wireframesCan anyone point me to an example of plotting a (2d) shape and rotating it in basic. Unfortunately my trig was never that good and I want to get a h…

    ... are too slow. Machine code 3D games typically use fixed ... games typically replace these with look up table based functions.
    I ... noticed I had some unnecessary code in my example, since ... function could just look like this:

    [code] 900 READ ...
    NotANumber NotANumber September 2007 Sinclair Basic
  • Packing numbers in as least memory as possibleI am writing some code for drawing vector lines etc. on the screen. These need to be stored in memory and I want to pack them in a smaller area as po…

    ... plotting, you could use a look-up table.

    For ... each, and a look-up table which matched those 4 ... three unique values, so your look-up might be:

    code.

    BTW ... room we create with this code
    (i.e. ...
    Dr BEEP Dr BEEP March 2008 Development
  • SAM Games that never wereIn another thread on Multiloads there's been a bit of chat about US Gold's infamous statement about porting Strider to the SAM (which tbh if they had…

    ... and a switchable CLUT (colour look up table)) and that's a graphics ... could all be made to look like Amiga games as your ... RAM for extra animations and code. I wouldn't mind someone ... high res but making them look mint, The Great Escape too ...
    CKay CKay March 2008 Games
  • Sprites...What is fastest way for drawing masked sprites at any screen position without using preshifted data ? I want to use it for isometric view game... li…

    Simple - use a look-up table to shift the sprite data ... it.

    The table consists of 8 sets of ... (the second being 256 bytes up from the first).
    ... but if you have two code-paths for your renderer you ... in that case, reducing the table to 3.5K. As ...
    bobs bobs June 2008 Development
  • How to convert hex bytes to .. in assembly?I hadn't a clue what to put in the title so..., I have in memory 3 hex bytes #10 #34 #50, e.g.,[code][size=2]#6400 10 , 34 , 50 ; hex 25600 16 , 52 …

    ... be able to find some code (in whatever language) that does ... even z80 code.

    Barring that have a look at RLD ... then there's always a look up table.
    Alcoholics Anonymous Alcoholics Anonymous July 2008 Development
  • One for the demo codersOn this occasion I forgot I had already asked the exact same question in another thread.

    Look-up table with 256 or 128 entries ... in look-up table and get new attribute from table.

    Look-up table will ... looks something like:
    [code];look-up table aligned to 256 bytes, MSB ...
    inc l[/code]
    This code must be repeated 32 ...
    Shiru Shiru October 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... to speed things up would be to change the code which calculates ... star, I would use a look up table of screen row addresses. (I ... one" error in the previous code, which meant the very bottom ... ]

    and the code:-
    [code]
    ORG 32768
    < ...
    Digital Prawn Digital Prawn December 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... the aforementioned row address look up table. By the time I ... the index into the table and extracted the address ... use a lookup table.

    [code]
    ORG ... MOVEUP ;only possibility remaining is up
    LD HL,STARPOS_Y ... DS NUMSTARS+1
    [/code]
    Digital Prawn Digital Prawn December 2008 Development
  • shifting spriteshi. have anyone experience with shifting sprites by table ? some neat tricks ? i don't want to see complete code (really don't want, it trashes thr…

    ... similar to using a mirror look-up table, and having half the rows ... send to your email my code where I experiment with shifted ...
    Fikee Fikee February 2010 Development
  • New member here. And a spider! :)Hello everyone. My name is Sekrets. I'm quite a lonely individual, searching for a digital home where I might find fellow speccy enthusiasts to adopt…

    ... anyone wants to critisize my code, show me the error of ... put a semi-annotated source up too- [URL="http://www.angel ... 'll want to use a look up table for screen address mapping, but ... on the ROM disassembly. Well, look no further than [URL="ftp ...
    Arjun Arjun March 2010 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…

    ... B]

    [CODE];-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ;
    ; Routine ... and use a look-up table to set the ...
    Turkwel Turkwel June 2010 Development
  • Arrays in asm ?Just following the idea to make the menu entirely in asm, how can i handle arrays in asm to store the each game loader to be loaded ? thx in advance

    ... a look-up table, which would reference both your name table, and filename table.

    For example:

    [CODE]NAMETABLE_ITEM1 ... NAMETABLE_ITEM3, FILETABLE_ITEM3
    defw 0[/CODE]

    With this you ...
    bobs bobs June 2010 Sinclair Basic
  • Sprite RotatingI was looking (actually at Everyone's a Wally), and noticed that all the graphics for the main characters are left facing, and two characters wide. …

    ... byte. these pieces of code are useless because it ... going to post whole code here because with all ... is really big chunk of code.[/QUOTE]

    ... if you go the Look Up Table route...hence my use ... have used 6...so the code should read......

    Turkwel Turkwel June 2010 Development
  • 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?

    ... [/url][/QUOTE]
    How about:[code] di

    ld hl ... /> exx
    ei
    ret[/code]
    Interrupts disabled to avoid ... -friendly wrapper. Supply your own look-up table though :)
    obo obo October 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 …

    ... method is to use a look-up table - or actually 8 of ... combinations. You would then look-up the shift of the sprite ... you can select the table for the shift required ... 2K required by the shift table above.

    ... a lot about machine-code which can also be ...
    bobs bobs January 2012 Development
  • 3D Wireframe/vector animation creator and player?Is there any software that can help record wireframe 3D animations by creating a file that stores just the coordinates and lines? If the answer is "n…

    ... matrix (p71):

    [code]
    | A0 A1 A2 |

    [/code]

    I didn't ... about it.

    [QUOTE=Code Monkey;613932]For plotting, just ... of trigonometry, a quick sine look-up-table and a binary chop when ...
    Alcoholics Anonymous Alcoholics Anonymous March 2012 Development
  • 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…

    ... input you could consider a look up table (29 t-states) - but wasting ... 23 t-states...

    [code]
    LD H, lookup / 256 ... on a 256 border)
    [/code]
    Stefan Drissen Stefan Drissen August 2012 Development
  • 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…

    ... input you could consider a look up table (29 t-states) - but ... t-states...

    [code]
    LD H, lookup / 256 ... on a 256 border)
    [/code][/QUOTE]

    This ... in A:

    [code]
    LD H, lookupMSB / 256 ... at 256 border)
    [/code]
    mcleod_ideafix mcleod_ideafix August 2012 Development
  • Trailblazer - mapped?Anyone mapped Trailblazer yet? I'd kind of like to get hold of the maps. D.

    ... together and save them, ending up with 255 tile permutations coded ... maps in turn, POP each code off the stack and print ... pattern look-up table 48960 bytes, I couldn't even fit the look-up table into ...
    Battle Bunny Battle Bunny June 2013 Games
<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
look 49.6K 56.6K
up 135.3K 178.3K
table 5.8K 9.1K
code 41.6K 91.2K

Related Threads

  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…
  • 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<br /> <br /> Note, for 48k spectrum using TASM<br /> <br /…
  • Saving BASIC code as CODE... can't start programHi guys!<br /> <br /> I'm trying to create an adventure game for the Speccy in BASIC, called The Legend Of The Red Dragon.<br /> <br /> I'm using the…
  • 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…
  • All my Machine Code Books Up For GrabsSee [url=http://www.worldofspectrum.org/forums/showthread.php?p=139192#post139192]here[/url] for details.<br /> <br /> You too can learn to program t…
  • 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 /> …
  • Can anyone see a way to speed up the following line of code?Hi Folks,<br /> <br /> Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat…
  • 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…

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • table pixadd
  • saboteur 2 speed up
  • code 16384
  • look up table
  • dereferencing look up table
  • 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
  • release code clean up
  • release code cleaned up
  • pixel look up table
  • look up table pixel

Copyright © 2024 World of Spectrum