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.009s
<1234567…34>
  • 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…

    ... /> savscrpos
    push hl ;save road left side posn ... copy byte. . .
    ld (hl),a ;. . .to next pixel line ... right, 1line up
    ex (sp),hl ;?? load posn of byte ... up
    ex de, hl ;put 224 into hl, byte to ... to be copied
    ex de,hl ;?? but now it' ...
    bigjon bigjon February 2008 Development
  • 128 ROM paging alternativeWould this work (with the appropriate code in each ROM)? [code] ; 128 rom paging routine ; use rst 28h with call address stored after restart ;;rom…

    ... /> inc hl ; to create
    inc hl ; return address

    ex (sp), hl ; call ... address to hl
    ; return address to (sp)

    chev chev August 2008 Development
  • (part of) screen to UDGHere is a routine to copy a Y,X-position on screen to a UDG. 0<=y<=23 0<=x<=31 144<=udg<=165 (UDG "A" to UDG "U") [code] ; start code with ; PRINT …

    Here is a routine to copy a Y,X-position on screen to a UDG.
    0
    Dr BEEP Dr BEEP June 2011 Development
  • BREAK from GOSUBHere's another one. Just in case you wanted to break out of multiple GOSUB levels with a single command, here's a routine to do it, tested on all mod…

    ... 3 bytes
    EX (SP), HL ; 227 ;restore (ERR_SP)
    EX DE, HL ; 235
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Optimisations in Exomizer Z80 decrunch codeThis is the 163 bytes old code (simple and optimized): [CODE] ld iy, exo_mapbasebits ld a, 128 ld b, 52 push de exo…

    ... ]
    by:
    [CODE]
    ex (sp), hl
    ld d, h
    add hl, de
    ex de, hl
    inc iyl ... /> call exo_getpair ;bc=offset
    ex (sp), hl
    ld d, h
    antoniovillena antoniovillena November 2012 Development
  • Zero 0.5 ReleasedAfter a bit of a hiatus, the next update of Zero is now available [URL="www.ramtop.wordpress.com"]here[/URL]. Feedback and bug-reports appreciated! …

    ... (Woody).
    - Fixed timing for EX (SP), HL/IX/IY instructions (Woody).
    Arjun Arjun January 2013 Emulators
  • 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…

    ...
    ;
    l_0d09: inc hl
    push hl
    ld (iy+$00 ... de
    ld hl, $009f
    ex (sp), hl
    push hl
    ld e ... ?
    add hl, de
    ld e, (hl)
    inc hl
    ld ... h, (hl)
    ld l ...
    jp jp July 2013 Hardware
  • SCREEN$ bug fixI've been using the SCREEN$() function recently for reading data off the screen rather than taking up space with an array and I got fed up with the s…

    ... inc sp
    inc sp
    pop hl ;HL=$000D
    ex (sp),hl ;HL=$106E ...
    push hl
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • LZ4 decoderI encountered the [URL="http://code.google.com/p/lz4/"]LZ4 compressor[/URL] a few weeks ago. Reading the [URL="http://fastcompression.blogspot.co.uk…

    ... /> ;;
    ;; Leaves HL pointing one byte past compressed ... br /> ex (sp),hl ; switch destination pointer into HL
    push hl ; ... ; copy bytes
    pop hl ; restore source pointer
    ...
    stephenw32768 stephenw32768 October 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…

    ... /> push hl ; save HL

    call l0_mulu_24_16x8 ; ahl = HL * E

    ex (sp),hl ... ; save LSW(HL ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • 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 …

    ... And 128)

    9) EX (SP),HL

    10) Set the ...
    Woody Woody July 2002 Games
  • Horizontal scrollDoes anyone know how to do a 2 or 4 pixel left or right horizontal scroll of the spectrum screen. I can make a 1 one pixel scroll with: ... rl (hl…

    ... br /> ld sp,endofscreen
    xor a
    ...
    ex (sp),hl ; don't ... change sp but get screen in hl
    ... br /> push hl ; store number, point sp to next group ... br /> ; loop next

    ex (sp),hl
    rla ; get second to ...
    cyborg cyborg March 2003 Sinclair Miscellaneous
  • Horizontal scrollDoes anyone know how to do a 2 or 4 pixel left or right horizontal scroll of the spectrum screen. I can make a 1 one pixel scroll with: ... rl (hl…

    ... - the clever bit is the ex (sp),hl instruction - basically being used to ... load the contents at SP in HL like a POP would ... but without affecting SP. In ther other ... routines we had to adjust SP after each shift - loosing 8 ...
    cyborg cyborg March 2003 Sinclair Miscellaneous
  • Z80 core testing ?OK, my z80 core is almost finished (apart from RRD, RLD, and block instructions except LDI,LDIR,LDD,LDDR). I run the 48K rom and hurray, it resets co…

    Found out the culprit - hadn't emulated EX (SP),HL.... (D'oh!)

    Yeaah ! The BASIC editor works perfectly ! I've made an emulator in only 5 days... :)

    (1 minute later)

    Uh... 5+2 isn't 1E+8, is it.... ? ;)
    GOC GOC July 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…

    ... ld de,22528
    ld hl,map

    ld ... b,0d7h
    ld c,(hl) ; BC -> Colour ... djnz loop

    ex (sp),hl
    ldi
    ldi

    pop hl

    pop bc< ...
    AndyC AndyC February 2005 Development
  • Programming MC challengeIn the 80-ies I got the following assignment for a programming course. 2 16-bit values stored in #8000 and #8002 must be added together and stored i…

    ... :

    [code]
    ex (sp),hl
    ld sp,#8000
    pop bc ...
    push bc
    jp (hl)
    [/code]

    Which ...
    AndyC AndyC August 2005 Development
  • Machine Code: quicksort optimisationI came across this z80 quicksort implementation when going through the wikipedia article on the same. It's 44 bytes long. I was wondering if any of …

    ... a,(bc)
    ex af,af
    ld a,(hl)
    ld ... (bc),a
    ex af,af
    ld (hl),a
    inc ... (bc),a
    ex af,af
    ld (hl),a

    ex de,hl ; de = left+1, hl = right
    dec ...
    Alcoholics Anonymous Alcoholics Anonymous January 2006 Development
  • What do you think.Do you think if you went back in time and made a Sudoku game for the spectrum you would be a millionaire now? (all my get rich quick schemes invole …

    ... ]
    #0008 EX SP,(HL) ; save HL on stack
    LD HL,(SYSVARJUMP) ; Fetch JUMP ... -address
    JP (HL) ; make the jump
    [/code ...
    Dr BEEP Dr BEEP February 2006 Games
  • What do you think.Do you think if you went back in time and made a Sudoku game for the spectrum you would be a millionaire now? (all my get rich quick schemes invole …

    ... ]
    #0008 EX SP,(HL) ; save HL on stack
    LD HL,(SYSVARJUMP) ; Fetch JUMP ... -address
    JP (HL) ; make the jump
    [/code ...
    rich_chandler rich_chandler February 2006 Games
  • Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …

    ... /> add iy,sp
    ld sp,ix
    ex (sp),hl
    zerobc ...
    adc hl,bc
    ex (sp),hl
    ld sp,iy
    ...
    Woody Woody November 2006 Development
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ... a,(hl)
    pop hl
    ld (hl),a
    inc hl
    ex de,hl ...
    ex (sp),hl ;bc = len, hl=offs
    push de
    ex de,hl

    ld hl,1279
    or ...
    Metalbrain Metalbrain October 2007 Development
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ... ,(hl)
    add hl,bc
    ld (hl),a
    inc hl
    ex de,hl ... /> ex (sp),hl ;bc = len, hl=offs
    push de
    ex de,hl
    ld hl ... /> ex (sp),hl ;bc = len, hl=offs
    push de
    ex de,hl
    ld hl ...
    Metalbrain Metalbrain October 2007 Development
  • New assember ideaAs i work with Eclipse IDE in my job i become more and more lazy. This leads me to idea that it is time to left Notepad+Tasm combo behind and move on…

    ...

    pop hl
    pop bc
    ex (sp),hl

    .asmentry ... /> ld (hl),c
    inc hl
    ld (hl),b
    inc hl

    pop hl
    pop bc
    ex (sp),hl

    .asmentry ...
    Alcoholics Anonymous Alcoholics Anonymous November 2007 Development
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ... and a
    ex de,hl ;write a previous ... hl)
    add hl,bc
    ld (hl),a
    inc hl
    ex de,hl ...
    jp aploop

    apbranch3: ld c,(hl ... ex (sp),hl ;bc = len, hl=offs
    push de
    ex de,hl ...
    Metalbrain Metalbrain November 2007 Development
  • Compressors are available for Speccys ?Hi folks, although I was an wasn't strictly a speccy coder in the glory days (amstrad & amiga for the most part), I have secides to arse about with …

    ...
    ld a,(hl)
    add hl,bc
    ex de,hl
    ld ... />
    ex (sp),hl ;bc = len, hl=offs
    push de
    ex de,hl

    ex (sp),hl ;bc = len, hl=offs
    push de
    ex de,hl
    Metalbrain Metalbrain December 2007 Development
<1234567…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
ex 4.4K 7K
sp 1.7K 4.2K
hl 6.2K 48K

Related Threads

  • deus ex and deus ex invisible war ?3 on steam.Just downloading these two games at the mo. I think there are a few fans of these games on here, if you want to grab em there cheap on steam at the m…
  • Deus Ex MachinaAm I the only person who loved Deus Ex Machina on the speccy?<br /> Just wondering.<br /> <br /> I've even got the soundtrack that i downloaded as mp…
  • An ex-Bloodwych fanatic speaks...I've got a s**t-load of maps that I carefully (and painstakingly) made back in the day, with the intention of sending them into YS, only for the maga…
  • Anyone here an ex speccy-journalist or programmer?Anyone here used to write for the Spectrum magazines or program the Speccy? Just curious ;)
  • ex-YU homepage updatedThe ex-YU Homepage has been updated, after almost 2 years. Added some really nice new stuff, including some commercial games that were developed by e…
  • ex-YU Homepage Updated !Hey All...<br /> <br /> This will probably be interesting only for the people here that are from ex-Yugoslav countries, but it might be interesting f…
  • Deus Ex MachinaHas anyone got a copy?
  • TransVersion EXHopefully my latest game will be of some interest here. :)<br /> <br /> A remake of an old 16k Spectrum game, but with online scores and Care Bears. …
  • XBasic or EX-Basic ???I found couple NIB Artic x- or ex-basic.<br /> Case and manual seys X-Basic but casette is EX-Basic.<br /> Is this MIA ?<br /> <br /> [url="http://ko…
  • new forum for ex retro gamer refuges[url="http://forum.retrosurvival.co.uk/index.php?act=idx"]http://forum.retrosurvival.co.uk/index.php?act=idx[/url]<br /> <br /> :)

Related Searches

  • ld hl de
  • return to basic hl
  • reset sp ffff
  • call hl
  • deus ex machina
  • caf turco com os ex jugoslavos
  • sp format
  • snapshot sp format
  • slt format hl
  • 16 bit hl load
  • clear sp
  • jp hl
  • ex af carry
  • regular ex
  • sp 1000
  • sp 800
  • ex sp ix
  • ex sp iy
  • screen buffer pop bc ld sp hl
  • ex hl de

Copyright © 2024 World of Spectrum