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.007s
<1234567…34>
  • INC not working as expected in LoopHi, i have been working on this for around 2 weeks now and Ive read myself into a hole. I am trying to increment HL. HL is referencing a display …

    ... /> I am trying to increment HL. HL is referencing a display attribute ...
    add hl,de
    ---
    inc hl
    ---
    inc l (this gives ...
    hedge hedge April 2018 Assembler
  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;) But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (ignoring x), I'm…

    ... (de), a ; 7
    inc hl ; 6
    inc de ; 6
    ld ... the inc hl, inc de, dec hl, dec de to inc l, dec l, inc e ... e, a
    add hl, de
    inc hl
    ex af, af ... e, a
    add hl, de
    inc hl
    ex af, af ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code? ORG 60000 LOAD 60000 EA60 21BCEA LD …

    ... ADD A,(HL) ;add previous digit
    EA66 3C INC A ; ... and update it
    EA67 77 LD (HL), ... zero
    EA6E 23 INC HL ;increment to next digit
    Duxbuz Duxbuz August 2001 Sinclair Miscellaneous
  • Short Z80 QuizQ1) Which program gives different result ? A) XOR A ADD A,A B) XOR A ADC A,A C) SCF ADD A,A D) SCF ADC A,A Q2) What is the equivalent of NEG …

    ...
    LD HL,60000
    LOOP: LD (HL),B
    INC HL
    DJNZ ...
    LD HL,60000
    LOOP: LD (HL),C
    INC HL
    DEC ... br /> LD HL,60000
    LOOP: LD (HL),B
    INC L
    LOOP: LD (HL),B
    NOP
    INC HL
    DJNZ LOOP ...
    Dr BEEP Dr BEEP July 2002 Games
  • How to get Grahics to wrap vertically around the screen?I am using the following code to draw an image to the screen. First I use HL to contain ROW and COLUM I then call the MapScreenFunction As I draw m…

    ...
    add a,(hl)
    inc hl
    ld h,(hl)
    ld l ... )
    or (hl)
    ld (hl),a
    inc de
    inc l
    or (hl)
    ld (hl),a
    inc de
    dec ...
    robpearmain robpearmain May 2004 Development
  • TASM, Z80 and Spec emusHi! Having some novice questions here regarding TASM and writing machine code for the Speccy emus... Now I have configured TASM into my EditPlus and…

    ... (HL),255
    INC HL
    LD (HL),128
    INC HL
    LD (HL),255
    INC HL ...
    LD (HL ...
    ekoman ekoman July 2004 Development
  • IM 2 interrupts and smooth scrolling - easy peasy!Okay, been fiddling around with IM 2 and have actually mastered (I think) how to use IM 2! Now I run my game Ragnar Revival in IM2 and use HALT to sy…

    ... /> push hl
    ld hl,16384
    inc (hl)
    pop hl
    ... /> prepint
    ld hl,58880 ;Building up a ...

    ld hl,58853 ;Create a JP NN ... inc hl ;35002. Order: lsb,msb
    ld (hl),0BAh
    inc hl
    ld (hl ...
    ekoman ekoman July 2004 Development
  • InterruptsA small piece intended for the FAQ. Comments, corrections, additions welcome. Notably: * How long does the 48K ULA hold /INT low? * What happens i…

    ... (in which nothing happens), while INC (HL) has three M-cycles:
    * M2: 4 tstates: read (HL) and increment it.
    * M3 ... the modified value back to (HL).

    During the last ...
    Philip Kendall Philip Kendall July 2004 Development
  • 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 …

    ... add hl, de
    add hl, de
    ld e, (hl)
    inc hl
    ld d, (hl)
    ex de ... , hl
    ld d ...
    lineptrs:
    include "lineptrs.inc"

    [/code]
    < ...
    Lambchop Lambchop 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 …

    ... row to the screen.
    INC HL
    POP BC
    ... /> LD A,(DE)
    INC DE
    EXX
    ... OR C
    LD (HL),A
    INC HL
    POP BC
    moroz1999 moroz1999 August 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] ; ***********…

    ... DE)
    LD (HL),A
    INC DE
    INC H ; *256 ... br /> ld (hl),C ; LD (0FE00h),FDh
    inc hl ; repeate 253 times ...
    djnz pp1

    ld (hl),c ...
    robpearmain robpearmain August 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 …

    ...
    LD (HL), E
    INC HL
    LD (HL), D
    INC HL
    DJNZ ...
    LD (HL), E
    INC HL
    LD (HL), D
    INC HL
    DJNZ ...
    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 …

    ... :
    LD (HL),%11111111
    INC HL
    LD (HL),%00000000
    INC HL
    DEC ... :
    LD (HL),C ; LD (0FE00H),FDH
    INC HL ; REPEATE 253 TIMES ...
    robpearmain robpearmain September 2004 Development
  • Smooth Screen Scrolling RoutineHi everyone, this is a follow up to the thread on smooth screen scrolling. As promised here is the code for the routine. It's pretty long and fairl…

    ... .
    OR (HL)
    LD (HL),A
    INC E
    INC H
    OR (HL)
    LD (HL),A
    INC E
    INC H
    INC (HL) ;forward
    INC (HL)

    DEC IXL ...
    dmsmith dmsmith September 2004 Development
  • The incredible shrinking screendumpIn this topic I stated that I would be impressed if the screendump could be smaller than 37 bytes. [url="http://www.worldofspectrum.org/forums/viewt…

    ... B-reg
    prtab inc bc ; Start of tableprinting< ... last carriagereturn in ROM
    inc hl ; Goto next byte in ... table
    ld e,(hl) ; Fetch 'last' byte in ... table
    prbyte ld a,(hl) ; Fetch byte for print ...
    Dr BEEP Dr BEEP September 2004 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... /> INC L
    LD (HL),A
    POP HL
    INC HL
    INC HL
    INC IX ...
    Mr Millside Mr Millside February 2005 Development
  • Anyone help re-factoring a tile functionI had some excellent feedback for re-factoring my function that displays the colour for my screen tiles. Can anyone offer some help to improve the fu…

    ... LD A,(HL)
    LD (DE),A
    INC HL
    INC E
    LD A,(HL)
    LD (DE),A
    INC HL ...
    Mr Millside Mr Millside February 2005 Development
  • Best method for sprite collision detectionHi, I have been trying to incorporate collision detection into a sprite routine I writing. The following is what I have come up with so far: POP D…

    ... =sprite image
    LD A,(HL) ; hl = screen addr.
    AND ... collision detected
    EXX
    INC (HL) ; increase if there is a ...
    NC0:
    LD A,(HL) ; draw sprite as normal
    OR D ;
    LD (HL),A ;
    INC L ;

    Is ...
    dmsmith dmsmith August 2005 Development
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... br /> start ld hl,(23672)
    ld (seed),hl ; RANDOMIZE equivalent
    inc hl ; point to next number
    pop hl
    ret ; A holds ...
    Dr BEEP Dr BEEP August 2005 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…

    ... ld (hl),c
    inc hl
    ld (hl),b
    inc hl
    hl),c
    inc hl
    ld (hl),b
    inc hl
    ex de,hl
    inc ...
    robpearmain robpearmain November 2005 Development
  • Codies help? Werewolves of LondonHi All, never one for shying away from the deep end, having only just dipped my toe in to the world of machine code I find myself trying to find out …

    ... , all its doing is incrementing HL by one over and over ... poking A into the address HL. That is until it gets ... the image. After executing the "INC HL" the pointer then jumps to ...
    Womble Womble March 2006 Sinclair Basic
  • Problem with rotating procedureHi folks! I wrote a proc in z80 asm, based on: x' = x * cos (z) - y * sin (z) y' = x * sin (z) + y * cos (z) I used a precalculated table of sin a…

    ... hl,bc
    ld e,(hl)
    inc hl
    ld d,(hl)
    ld hl ... hl,bc
    ld e,(hl)
    inc hl
    ld d,(hl)
    ld hl ... hl,bc
    ld e,(hl)
    inc hl
    ld d,(hl)
    ld hl ...
    xor xor July 2006 Development
  • Screen LoaderCouple days ago i find very interesting loader routine in ex Yugoslavia magazine "Svet Kompjutera" from january 1987. Authors of article, calls this …

    ... JP 36000
    LFED5 INC D
    EX ... NZ
    LFF41 INC IX
    LFF43 ... HL,BC
    EX DE,HL
    ADD HL,BC
    EX DE,HL ... HL,(HIL)
    LD DE,(DIL)
    LD A,(FL2)
    INC ... HL,(HIL)
    INC HL
    LD (HIL),HL
    LD DE,(DIL)
    INC ...
    Pegaz Pegaz August 2006 Games
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... ; 31 characters.
    inc hl ; column 1
    ... ld (hl), a ; store byte
    inc hl
    inc hl ; next ... inc hl

    pop hl
    inc h ; move hl ... ld (hl), a ; store byte
    inc hl
    inc hl ; next ...
    na_th_an na_th_an November 2006 Development
  • Urgent Help needed to fix this: calling all machine code gurusI am currently trying to write tutorials on the amazing Orfeus music composer by Proxima which allows you to do multi channel music through the beepe…

    ... /> inc hl
    jp l8959
    pop hl
    ld a,(hl)
    inc hl
    pop hl
    ld a,(hl)
    inc hl
    ld (l8c8b ... e,(hl)
    inc hl
    ld d,(hl)
    ex de,hl
    jp (hl ...
    robpearmain robpearmain November 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…

    ... the MAKE_ROOM routine
    inc hl ; move HL up one address
    ...
    inc hl ; move HL up one address
    push hl ; save ... the output routine
    inc hl ; move HL up one address
    ...
    inc hl ; move HL up one address
    ld (hl),d ; ...
    chev chev January 2007 Development
  • Currah MicroSource emulationIt appears to be impossible to emualte the MicroSource in software on the ZX Spectrum SE as hardware polling is required. The following patch is not …

    ... polling
    inc hl ;
    ld (hl),$19 ;

    ld hl,uS_patch ; source ... /> ld (hl),0 ;
    inc hl ;
    ld (hl),0 ;
    inc hl ;
    ld (hl),0 ... polling
    inc hl ;
    ld (hl),$18 ;

    ld hl,ZX_patch ; source ...
    chev chev March 2007 Emulators
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... br /> ;---------------------------------------------------------------;

    IncY:
    inc d ;256 bytes below (next ... FadeOutInk
    ld (hl),a
    Continue:
    inc hl
    dec bc ...
    HexDump HexDump April 2007 Development
  • Comments for small "sprite" routine wantedI have just written my first machine code program and I am quite happy (and proud) to get it working! :smile: As a child I never learned anything e…

    ... ld (hl),a ;put graphic into screen
    inc h ; ... on screen address
    inc de ;next graphic byte ... byte to screen
    inc hl ;go to next byte ... /> [B]downoneline[/B]
    inc h ;move down one line ... in one byte
    inc hl ;move one screen byte ...
    Rickard Rickard May 2007 Development
  • sound effect code causing crash[FONT=Courier New]I have just written this piece of code to produce a lazer sound effect but for some reason it is causing a crash and I can't figure…

    ... /> [code]INITSOUND LD HL,SOUNDDATA
    LD (SOUNDPOS),HL
    LD A ... A,(HL)
    OUT (C),A
    INC HL
    LD (SOUNDPOS),HL
    dmsmith dmsmith July 2007 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
inc 3.8K 14.1K
hl 6.2K 48K

Related Threads

  • Adventures Inchi!<br /> <br /> I'm a BIG fan of adventures. I have a huge collection of them on my PC. By this I mean of course, games for Speccy, Amstrad, C64, At…
  • WANTED Se BUSCA: ** TREASURE *** of ANDROMEDA INC.quisiera saber quien me puede ayudar a encontrar el juego<br /> TREASURE de la compa??a Andromeda inc.<br /> El juego trata de un buzo que saca perla…
  • Loads of speccy bits for auction inc. a boxed rubber keyed and 128k heatsinkCheck it out, only a day to go on some of the stuff!!!<br /> <br /> [url="http://cgi6.ebay.co.uk/aw-cgi/eBayISAPI.dll?ViewSellersOtherItems&amp;useri…
  • Stacks of Spectrum tapes for sale - 50p start - inc. Ultimate gamesI have a load of Spectrum games that I've listed on EBAY at the moment, all of which start at 50p, mostly first generation early titles.<br /> <br />…
  • FA: Masses of mags, inc complete set of YS!I've now sorted out the rest of my magazines, and posted them up on eBay, as follows:<br /> <br /> Crash (94 issues): [URL="http://cgi.ebay.co.uk/ws/…
  • A dual tuner PVR for ?15.00 not inc HDI have just recieved an email from Bigpockets saying they have dual tuner PVR's for sale at £8.99 but with postage its £15.00, u basically have to p…
  • Thieves School - New Game from World XXI Soft Inc.After aprox. 2 years of hard work, World XXI Soft Inc. announces the release of [I][B]Thieves School[/B][/I], a platformer multi-level for Spectrum 1…
  • Thieves School - New Game from World XXI Soft Inc.After aprox. 2 years of hard work, World XXI Soft Inc. announces the release of [B][I]Thieves School[/I][/B], a platformer multi-level for Spectrum 1…
  • World XXI Soft Inc. DetailsHi Martijn,<br /> <br /> I just wanted to clarify the base country of World XXI Soft Inc., which was apparently changed to Chile in WoS, and was topi…
  • Timex Inc. in the "Public Domain"Thanks to Our Very Own Bruno, Timex Inc. has [URL="http://www.worldofspectrum.org/showwrap.cgi?permit=houses/Timex.pmt"]granted distribution permissi…

Related Searches

  • ld hl de
  • return to basic hl
  • call hl
  • flash inc
  • slt format hl
  • 16 bit hl load
  • jp hl
  • inc sp
  • ld bc hl
  • sub hl de
  • sjasmplus sub hl de
  • down hl
  • ex sp hl
  • ld hl 5678
  • 33 ld hl xxxx
  • andromeda inc
  • add hl a
  • add adc hl a
  • screen buffer pop bc ld sp hl
  • ld 23641 hl

Copyright © 2024 World of Spectrum