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.012s
<1234567…34>
  • Why doesn't my routine work?I have a "level" defined by 504 bytes (28 squares across x 18 squares down) I'm trying to write a routine that will take an X,Y coordinate in pixels…

    ... trying to write a routine that will take ... add hl, hl ;x4 original value
    ld de, hl ... ; subtract 4x original value
    ; = 28x original value!

    sekrets sekrets December 2010 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... return the value of the keys ... />
    ; ----------------------------------------------
    ; ROUTINE: print_message
    ;
    ; prints ... />
    ; ----------------------------------------------
    ; ROUTINE: get_defined_key
    ;
    ; check ...
    polomint polomint September 2011 Development
  • Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…

    ... tile based rendering and scrolling routine.

    It draws ... b,22 ; Display window 22 cells wide

    ld ... /> ld de,15360 ; Use immediate value, faster!

    add ... result in DE for draw routine

    draw_tile ld ...
    Zoltar Zoltar September 2011 Development
  • The INPUT command routine ($2089)I was looking at the INPUT routine with a view to modifying the intro so that I could pre-load the workspace and edit an existing value, rather than …

    ... was looking at the INPUT routine with a view to modifying ... workspace and edit an existing value, rather than it always starting ... the actual assignment of a value can be made.
    2161 ...
    Battle Bunny Battle Bunny February 2012 Development
  • PRINT a numerical value i.e. the scoreHow do you fo about printing a numerical value using the print routine in the ROM? For instance I have a value 0-255 and want to PRINT the result at…

    ... about printing a numerical value using the print routine in the ROM ... ?

    For instance I have a value ... like to times the original value(0-255) by 100 before ...
    daveysludge daveysludge August 2012 Development
  • Asking for help: ZXBC to ASM routine translationHallo, In order to save some bytes and gain speed, I'm asking for translation of a very simple ZXBC routine to Assembler [code] sub light(x as uinteg…

    Hallo,
    In order to save some bytes and gain speed, I'm asking for translation of a very simple ZXBC routine to Assembler
    [code]
    sub light(x as uinteger,y as uinteger,intensity as ubyte)
    dim adr as Uinteger
    if x
    LCD LCD November 2012 Development
  • checksum routine from Space GunThis routine starts off with HL=$ffff and a file header read from tape, for each byte of which in turn it assigns to A and calls this routine, ending…

    This routine starts off with HL=$ffff ... and calls this routine, ending up with another value in HL which ...
    Battle Bunny Battle Bunny January 2013 Games
  • Checksum routine wantedI wish to make a program that verify integrity of a Multiface 1 ROM. It is possible to compare each byte of the ROM against a binary dump, but this i…

    ... , I need a routine that calculates a unique value from a sequence ...
    TK90XFan TK90XFan February 2013 Development
  • Struggling with this routine... Any ideas?I'm trying to write a routine that plots 3 pixels to decrease the energy bar in the top right corner by 5 units, but it just wont have it! There mus…

    ... 'm trying to write a routine that plots 3 pixels to ... a
    djnz loop2 ;increase value of a by 18
    value
    push bc
    call $22E5 ;call ROM plot routine ...
    daveysludge daveysludge July 2013 Development
  • Troublesome routine, help needed!Having problems with this routine, it basically fires a rocket up the screen, but refuses to detect collisions. I'm using attribute blocks for detect…

    Having problems with this routine, it basically fires a ... background i.e. ATTR value 1 but simply will not ... allsorts to remedy this routine but nowt seems to ... a,b ;load a with value of b
    dec ... call print ;call the print routine
    pop bc
    ...
    daveysludge daveysludge November 2013 Development
  • Help needed with calculating screen addressesCan anyone help me finally crack Jonathan Cauldwell's screen addressing calculator and, more to the point, is the reason I'm struggling because this …

    ... significant bits to leave a value of 0, 64 or ... ? we take this masked value and divide it by 8 ... to give us a value of 0, 8 or ... .

    Finally, character cells are further divided into pixel ... br />
    Here is a routine which returns a screen address ...
    Jagd Tiger Jagd Tiger April 2014 Development
  • Chompston Mazes in SpecBASAfter the discussion in ASH-II's Pacman thread, I checked out the link there about generating 2D Pacman style mazes. This one was quite good fun, …

    ... at least 2 cells, and at most 18 cells before they change ... a number to a byte value.

    This has now ... set al to that same value - this is the counter for ...
    Dunny Dunny October 2015 Sinclair Basic
  • High score table routineI wrote this general purpose high score table routine. It stores 5 scores and displays them alongside the player names, which are 8 characters long. …

    ... general purpose high score table routine. It stores 5 scores and ... last pressed key's ASCII value
    LD HL,(TEMP) ; copy ... /> RET ; exits the routine

    PRINTNUM: ; routine by J. Cauldwell
    Alessandro Grussu Alessandro Grussu July 2017 Assembler
  • A Neat Redefine Keys RoutinePreviously, I’ve only shared this routine with a couple of people via PM, but I’ve now decided to make it public. I optimized it for size, so it uses…

    ... /> [code]
    ;Redefine Keys routine
    ;By Ast A. Moore ... /> call 8859 ;inside ROM routine BORDER ($2294)
    call ...
    ;A crude debounce routine to prevent
    ;registering keys ... for CPIR
    ;any value greater than 27h (i.e ...
    Ast_A_Moore Ast_A_Moore October 2017 Development
  • Machine code routine neededHello! Please i'm looking for a short routine that can write the same value in a range of continous memory locations. For example, to write 255 val…

    Hello!
    Please i'm looking for a short routine that can write the same value in a range of continous memory locations.
    For example, to write 255 value from location 40000 to 41000.
    Many thanks in advance.
    Saltor Saltor January 2018 Assembler
  • 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…

    ... I'm not really adding value here :)

    [quote]
    cells.

    Anyway, using a ... in an alternative sprite draw routine for drawing sprites without any ...
    Alcoholics Anonymous Alcoholics Anonymous July 2003 Games
  • Font centering problemA while back today, I started coding a simple Othello/Reversi game in BASIC, with the precious aid of BASin (great tool, hope it eventually becomes b…

    ... these cells which means that the foreground colour - the INK value - will ... counters, but without a sprite routine you're going to get ... align them to the attribute cells things would become much easier ...
    jonathan jonathan October 2006 Development
  • Font centering problemA while back today, I started coding a simple Othello/Reversi game in BASIC, with the precious aid of BASin (great tool, hope it eventually becomes b…

    ... these cells which means that the foreground colour - the INK value - will ... counters, but without a sprite routine you're going to get ... align them to the attribute cells things would become much easier ...
    zxbasic zxbasic October 2006 Development
  • IY RegisterIve got a really bizarre bug, and I have only just started using the IY register. I seem to remember reading somewhere in a programming book, to neve…

    ... be moved by changing IY value. However ROM does this only ... - directly. And ROM sets IY value only once, upon startup. So ... is used by interrupt service routine in ROM. And, again, not ... - just reserve some particular memory cells and let them be trashed.
    Sonic Sonic September 2007 Development
  • Please test my Manic Miner remake!Thanks to everyone who downloaded my sneak preview of Manic Miner Turbo. Thanks especially to na_th_an who is the only person so far to give feedback…

    ... />
    [code]
    ; interrupt service routine
    isr: push af

    ; just draw cells in copybuffer
    ld hl ... a, (de) ; get the attribute value
    ld c, a
    Paradigm Shifter Paradigm Shifter February 2010 Games
  • Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…

    ... b,22 ; Display window 22 cells wide

    ld hl ... /> ld de,15360 ; Use immediate value, faster!

    add hl ... result in DE for draw routine

    draw_tile ld hl ...
    R-Tape R-Tape September 2011 Development
  • ZX-Assembler in progress...Dear readers, I just want to announce that ZX-Assembler is not longer only an idea in my mind. It's just alive. Unfortunately, it's too early to mak…

    ...
    several strings separated by value X (default zero)
    ... label "print_tile", with comment "routine to print tile to screen ... label "print_tile"
    53200: comment "routine to print tile to screen ... I can freely draw the cells of the now used string ...
    clausjahn clausjahn May 2013 Emulators
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... the colour codes for the cells. Each 3-byte element ... +2) ;based on a routine by Jon Ritman
    ... ,af'
    Cells: ;check for adjacent live cells
    ld ... /> jp SetCell ;C =new cell value

    CheckLive:
    ...
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding. I think that there might be more of these routines out there (where-ever-u-r). Isn…

    ... (if someone finds a faster routine please tell me..)

    Dr BEEP Dr BEEP October 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... code.

    The line routine that I have implemented is ... there have a fast line routine, plese email me.

    rtunes rtunes October 2001 Sinclair Miscellaneous
  • How do I avoid BASIC becoming corrupted on returning from a M/C routine?I'm having trouble with my BASIC program becoming corrupted on returning from a m/c routine which sets all the registers (including the shadow regist…

    ... returning from a m/c routine which sets all the registers ... when calling a m/c routine from BASIC, and reload them ...
    trellis trellis May 2003 Sinclair Basic
  • 128 Memory PagingI'm having a problem getting my brain around paging. Well, actually the bit I don't understand is how reading I/O ports works! I hope the collective …

    ... need to read the value at port 32765, set ... accordingly, then write the new value back out.

    value in BC to the ... br /> The remainder of the routine would go something like this ... OUT (C),A ;Write new value to 32765

    ...
    trellis trellis August 2003 Sinclair Basic
  • InterruptsA small piece intended for the FAQ. Comments, corrections, additions welcome. Notably: * How long does the 48K ULA hold /INT low? * What happens i…

    ... JP to your 'real' interrupt routine. However, this doesn't work ... tstates to reach the interrupt routine:

    * M1: 7 tstates ... you have a short interrupt routine, it is possible that the ... routine. It was intended that the ROM would jump to the value ...
    Philip Kendall Philip Kendall July 2004 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 …

    ... from 8
    RLA ; double value (include mask)
    LD E ... /> RETI

    ; **** END INTERRUPT ROUTINE ***


    WRITECHAR:
    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 …

    ... from 8
    RLA ; double value (include mask)
    LD E ...


    ; **** END INTERRUPT ROUTINE ***


    WRITECHAR:
    robpearmain robpearmain September 2004 Development
<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
routine 9.5K 14.8K
value 9.4K 14.6K
cells 747 1.2K

Related Threads

  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding.<br /> <br /> I think that there might be more of these routines out there (where-eve…
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code.<br /> <br /> The line routine th…
  • How do I avoid BASIC becoming corrupted on returning from a M/C routine?I'm having trouble with my BASIC program becoming corrupted on returning from a m/c routine which sets all the registers (including the shadow regist…
  • Cells And Serpents by ASP SoftwareDoes anybody know where I can get this from. It was the first game I saved up for and bought....it was a very basic RPG.<br /> <br /> Its listed as M…
  • Smooth Screen Scrolling RoutineHi everyone, this is a follow up to the thread on smooth screen scrolling.<br /> <br /> As promised here is the code for the routine.<br /> <br /> It…
  • Key Redefine RoutineAnyone written a nice key redefine code snippet?
  • rip off or value for moneyhello everyone<br /> <br /> I am slowly starting to get my sinclair spectrum collection together again when i noticed this auction on ebay 8154099500…
  • Competition: Sadistick routine on Spectrum ROMMy vote goes to BEEPER at #03B5<br /> Let's ear you pick! :)<br /> <br /> And a great BOHHHHHHHHHHHHH to Dr Ian Logan &amp; Dr Frank O'Hara for their…
  • Old Gameboy and the dead cellsRemember the original GameBoy from 1990? Well, I've still got one of those and played "Super Mario Land" on it for the first time in years. In the mi…
  • Capture Routine HelpData:<br /> <br /> ORG 32768 <br /> <br /> <br /> [ This Message was edited by: dalmudlee on 2005-08-10 01:57 ]

Related Searches

  • fastest screen routine
  • screen routine
  • im1 interrupt routine
  • im1 rom interrupt routine
  • im1 rom interrupt routine iy
  • interrupt routine
  • best place for interrupt routine
  • turbo load routine
  • simply turbo load routine
  • joe gunn sprite routine
  • scroll rom routine
  • simple sprite routine
  • value
  • loading routine
  • 128k sprite routine
  • tile routine
  • best scroll routine
  • dim routine
  • routine values cells
  • routine same value cells

Copyright © 2024 World of Spectrum