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.014s
<1…45678910…34>
  • SjASMPlus cross compiler of Z80 assembly languageHi! I want to present you cross-compiler of Z80 assembly language: [B]SjASMPlus[/B]. [SIZE="4"]Features:[/SIZE] [LIST] [*]Z80/R800 documented and un…

    ...
    [*]Code inlining through colon (LD A,C:INC A:PUSH ... AF:IFDEF FX:LD A,D:ENDIF…)
    [*]Structures ... 48/128, Pentagon 128, Scorpion 256, ATM-Turbo 512, Pentagon 1024 ... /> [*]Fake instructions as LD HL,DE (LD H,D:LD L,E)
    [*]Source ...
    aprisobal aprisobal September 2006 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…

    ... ; extra space stored earlier
    ld de,($5c4f) ; store the contents ... the streams table to store the
    ; offset
    ld (hl), ...

    ld h,$00 ; clear H
    ld l,a ; CHAR to ...

    ld h,$40 ; base location
    ld l,a ; plus ...
    chev chev January 2007 Development
  • Help hacking Split PersonalitiesI`ve been hacking away at Split Personalities for the purpose of putting new screens and graphics (items). The current screen is at 41187 and is 160…

    ... />
    Here is a table of the levels at 53901 ... .

    ; Levels table
    org 53901
    defw ... stuck. The code (or table) at the addresses in the ... 36
    dec h ; 54599 37
    ld h, 36 ; 54600 38 ... of code and a table but I can't ...
    FrankT FrankT July 2007 Games
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ...
    inc h ;point left side to line2
    ld a,(hl ... not, carry on
    ld a,h ;otherwise, get ready to point ... 7 lots of 256 up the display file
    ld h,a ;point ... 7 lots of 256 up the display file
    ld d,a ...
    bigjon bigjon February 2008 Development
  • So... you want to format your 3.5" as 720K eh?Well, i've been trying to get hold of an application to make proper use of my 3.5" +3 floppy disks but i haven't been able to find any. I stumbled up…

    ... /> LD HL,HEAD0 ; Load HL with the beginning of our sector table ... LD HL,HEAD1 ; Load HL with the beginning of our sector table ... needs to hold 495
    LD H,D ; Load HL with the ...
    NaMcO NaMcO December 2008 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ...
    LD HL,chars-start-256
    ... ADD A,32
    LD H,A
    CALL 1008 ...
    Dr BEEP Dr BEEP December 2008 Development
  • tricks to simplify codingWhen i started with programming in assembler i had very simple approach to do things. Just shifting bytes around, doing simple tests and so... Later …

    ... CODE]
    call_from_table
    ;HL = table
    ;A = ITEM

    ld l, a
    jr ... /> inc hl
    ld h, (hl)
    ld (call_from_table2 + 1), hl ... br /> [CODE]
    ld a, (ix + FRAC_PEN)
    ld hl, p2_fracpentab
    Fikee Fikee March 2010 Development
  • Optimize this assembly?Aiming for Variable*192 -> HL In the first case, I came up with the obvious method - *128 +*64: [code] ld a, (variable) ;13 ld h,0 ; 7 ld l,…

    ... , (variable) ;13
    ld h,0 ; 7
    ld l, a ; 4
    LD A,(variable) 13
    LD h,a ; A * 256 4

    LD L ... ,0 ; L=0 7

    SRL H ; A ... *128 11

    SRL H ; 8
    RR L ; HL ...
    Gedlion Gedlion August 2010 Development
  • Help?Hi All, I wonder if anyone has a few minutes to look at this bit of code I'm working on. I'm trying to move to sprites and want to do it with a scr…

    ... as dictated by the screen table) it works fine and passes ... line at a time
    ld h,(ix+1) ;point hl at ... br /> ld (point),hl
    ld hl,seed ;screen address table pointer
    seed defw screen ;screen address table pointer, table below
    screen defw ...
    R-Tape R-Tape January 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…

    ... ; 4t - alt
    ld h,0 ; 7t
    ld l,a ; 4t - hl ... /> ld a,h ; 4t
    and %00011000 ; 7t
    or $4000/256 ; 7t ... - bring in screen pixel memory start
    ld h,a ... quadrant down, reset h
    ld h,c ; 4t - restore h
    _PLOT2CHR_S1:
    TomD TomD April 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…

    ... Store H before calculating

    ld h,0

    ld l,a ... to next byte of tile table
    inc hl
    ... tile table, store it here

    ld hl,16385
    ld ( ... Point SP to address table

    ld a,255 ; Need this ...
    Zoltar Zoltar September 2011 Development
  • Getting the contents of tablesHi All, I'm risking a potentially daft question here as it seems pretty fundamental but here goes: What's the best way of pointing register pairs a…

    ... /> eg if I have a table of tile data and want ... /> [CODE] ld ix,blocktab
    ld d,(ix+1)
    ld e,(ix ... +0)
    ld h,(ix+3)
    ld l,(ix ... 'm basically longing for a ld hl,(ix) command!), I'm ...
    R-Tape R-Tape October 2011 Development
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... FPTOBC ;BC=addr
    ld h,b
    ld l,c
    jp ... call $0c41 ;PO_SEARCH
    SSNEXT2:ld a,(de)
    push af ... pop af ;A =token's table offset
    cp $03
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Screen2StringFurther to writing that BASIC one-liner to redirect CAT to a string I thought that I'd do a general redirection routine for anything which normally p…

    ... 256*PEEK (a+1): DEF FN g(v)=v-FN h(v)*256 ... : DEF FN h(v)=INT (v/256)
    ... h(sa):
    REM machine code
    REM ld hl,(ptr) : ld ... (hl),a : inc hl : ld (ptr),hl ... sa): POKE sd+10,FN h(sa): RETURN
    REM ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • Graph Plothi! please, help with code: [PHP]For x=-100 To 100 For y=-100 To 100 If (x/2-25)*(x/2-25)+(y-50)*(y-50)<200 Or (x/2+25)*(x/2+25)+(y-50)*(y-50)<200 th…

    hi! please, help with code:
    [PHP]For x=-100 To 100
    For y=-100 To 100
    If (x/2-25)*(x/2-25)+(y-50)*(y-50)
    g0blinish g0blinish November 2012 Development
  • Rotronics Wafadrive v.1.80 ROM - Corrupt or purposely broken?I've been digging around the Wafadrive v1.80 ROM (from [URL="http://zxspectrum.it.omegahg.com/_RO.htm"]here[/URL]) and can't decide if the ROM is cor…

    ... /> ld d, $00
    ld hl, $0cf7 ; address the hook-code table!? WTF ... ?
    add hl, de
    ld e, ( ... )
    inc hl
    ld h, (hl)
    ld l, e
    pop ... $13

    ;; hook-code-table
    ;
    l_0d2d: defw $0c30 ...
    jp jp July 2013 Hardware
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    ... ]

    Returns the value 256...

    Register C:

    Returns the value 256... makes sence. We are not ... /> 62 = LD H,D
    63 = LD H,E
    64 = LD H,H
    65 = LD H,L ... br />
    It should return 256... Makes sence as B is ...
    wibble wibble August 2013 Development
  • Math Quiz - MultiplicationThe topic is fast multiplication routines, from 8x8 to 32x32 and all points in between. These functions sit underneath floating point libraries, gen…

    ... . That's (2^6 - 1)/256 = 25% of the time. Perhaps ... />
    ld h,0
    ld l,e

    ld c,h


    ld a,h
    ld h,l
    ld l,d
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • Hooky - hook ZX ROM and rewire RST and NMI to RAM - rantThis is a rather long rant. Not for short tempered. :) The objective is to hook into RST "vectors" and NMI on a Spectrum without affecting the normal…

    ... in RAM for such a table?

    --- ... If we create our vector table before
    the ... code with our "create vector table" code?

    ... incl. 0x11D9
    0x11DA LD H,D ; HL = DE ( ...
    downloop:
    0x11DC LD (HL),#0x02 ; mem. 0xffff is ...
    tstih tstih July 2014 Development
  • Better arrangement for video memory?While doing some documentation work for the ZX-Uno project, I compared the advantages of the weird layout of the ZX Spectrum against a linear layout.…

    ... BucScan:
    ld a,(hl)
    ld (de),a
    ... XOR B
    LD H,A
    LD A,C
    RLCA ... Spectrum screen resolution, bytes 256 to 263 would hold ... /> rra
    ld h,a
    ld a,c
    ... below it, you add 256 (i.e. increment the ...
    mcleod_ideafix mcleod_ideafix September 2014 Development
  • Divide by 16 problem...I think.I *think* I have a problem with division. Now, this is not for the Spectrum but it [i]is [/i]for another Z80 platform. I'm converting [b]Speccies …

    ... the Speccie Xcoord rolls over 256 (the width of the screen ... ;

    [code] ld hl,(spr_x)
    srl h
    rr l ...
    ld a,l
    srl a
    ld h,0
    ld l,a
    [/code ...
    Sokurah Sokurah July 2015 Development
  • Drawing some spritesI figured I want to draw some sprites. My target was to do a 16x16 masked sprite. There's no clearing here, just drawing the sprites. My first ite…

    ... ) ; fetch y offset from table
    ld d, 3 (iy)
    ex ...
    inc de

    ld a, (de) ;repeat
    and ... (iy) ; fetch y offset
    ld h, 3 (iy)
    add hl ...
    Sol_HSA Sol_HSA November 2015 Development
  • 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…

    ... hi($)==hi($+8) ? 1 : 256[/code]

    so ... it never oversteps the 256-byte boundary. If that ... /> inc h ;down one line

    ld a,h ;check ... re done shifting
    ld a,h ;else, load A ... 8 from it
    ld h,a ;and put it back ...
    Ast_A_Moore Ast_A_Moore February 2017 Development
  • ZXSCLZF - Yet another Screen CompressorQuick disclaimer before I continue, this compressor does not shrink screens as small as some of the others posted here, in particular the very good z…

    ... get full length -> max 256
    // full LZF can use ... loop
    if(++(len.rr)==256) break; // increase length and ... ((buffer_sc-buffer)==_END||len.rr==256) break; // check at end ... start low byte
    ld h,a ; 4t - h=a so hl now ...
    TomD TomD April 2017 Development
  • 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…

    ... go through
    ld ix,def_keys_table ;start of table into IX

    ; ld h,0 ;zeroize H
    ; ld l,(ix) ;# of keys ... /> ret

    ;Redefine Keys table:
    ;Col 1: control number ...
    Ast_A_Moore Ast_A_Moore October 2017 Development
  • Printing text, part MMXIIXI'm pretty sure there's been a zillion threads about this already, and I don't think it's the first one by myself either, but here goes. Proportiona…

    ... (from lookup table)
    ld l,9 (ix)
    ld h,#0x00
    add ... glyph at once.
    ld l, (iy)
    ld h, #0x00
    add ... , #0x00
    ld h, a
    ld a, (hl)
    ld e, a
    ld l,-2 (ix)
    ld h,-1 (ix)
    Sol_HSA Sol_HSA December 2018 Development
  • why am i getting b integer out of range in this code?ive tried running this in spin but thats what i get [code]main org 40000; ; We want a black screen. ld a,71 ; white ink (7) on black paper (0…

    ... /> ; Initialise coordinates.
    ld hl,21+15*256 ; load hl pair with ... starting coords.
    ld (plx ... .
    random ld hl,(seed) ; Pointer
    ld a,h
    and ... 8k of ROM.
    ld h,a
    ld a,(hl) ; Get " ...
    digital digital June 2020 Assembler
  • Textured Scanline Flood Fill for ZX Spectrum 48KPity that it's quite hard to contribute code to WoS in a straightforward manner. Recently, I have created a textured/hatched fill M/C routine for the…

    ... /> 340 POKE 63692,o-256*INT(o/256): REM lower byte
    350 POKE 63693,o/256: REM higher byte
    360 ...
    Volker Volker February 2021 Software
<1…45678910…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
ld 6.3K 67.3K
h 7.2K 17.9K
table 5.8K 9.1K
256 4K 7.7K

Related Threads

  • T H E . S H A W . B R O T H E R S . . . did you play on these games? . . . . *website online now*There's a Spectrum section on our site at [url="http://www.sickhappyidle.com"]http://www.sickhappyidle.com[/url] (click on the spectrum or go through…
  • COOL LOOKSEE YOUTUBE VIDEO HERE!!! (o.s.I.h.h)100 vintage Amiga/Atari/PC games played in 10 minutes, for looksee click [COLOR=RoyalBlue][U]here[/U][/COLOR] ... no, sorry I mean [URL="http://www.y…
  • H.U.R.G. gamesNot a question on aksing how to use it, but does any1 know if a game was ever released commercially from it?<br /> <br /> The only game I can remembe…
  • D&H Games and Cult Software gamesJust discovered this forum recently, hello all.<br /> <br /> I was just wondering if there is anybody who enjoys/enjoyed the mainly sports management…
  • 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…
  • 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…
  • H.E.X. music question"Go to Hell 2: Soft &amp; Cuddly" by Triple Six has a (pretty good, in my opinion) tune by a band identified in the MP3 tag as "H.E.X.". My questions…
  • 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…
  • New project for 256 colours Games emulator!O.K. , I suggested Jonathan Needle ( Creator of the excellent Spectaculator at [url="http://www.Spectaculator.com"]www.Spectaculator.com[/url] ) to c…
  • EmuZWin supports 256 color gamesI am sorry starting new topic, but you see this info is important a bit:<br /> <br /> new version 2.4 of the EmuZWin is available to download, and it…

Related Searches

  • table pixadd
  • ld ix
  • ay frequency table
  • h n links
  • ld bytes
  • best place for interrupt table
  • interrupt table
  • ld hl de
  • harlequin rev h
  • 256 bytes
  • spectrum h
  • 256 byte align table ramtop error
  • 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
  • ld h tablita 256

Copyright © 2024 World of Spectrum