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.020s
<1…15161718192021…34>
  • 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 DE,16384
    LD BC,9
    LD HL,MAINMAP< ... PUSH DE
    EXX
    POP DE
    MAPLUMODIFY LD HL ... LDI
    LDI
    LD E,A

    ...
    Mr Millside Mr Millside February 2005 Development
  • How do I convert score to 00000 formatWhat is the quickest and best way in machine code to display the score formatted in zeros. For example, My score is currently 320, so I want it to …

    ... "
    add a,l
    ld (de),a
    ret

    sbc hl,bc
    ld (de),a
    inc de
    ret
    Woody Woody February 2005 Development
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    This seems to work

    [code]
    org 32768


    ; h=x1 , l=y1 (Rect top left)
    ; d=x2 , e=y2 (Rect bottom right)
    ; b=x , c=y (x,y point to test)

    ; ...
    robpearmain robpearmain March 2005 Development
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    ... ld hl,(y1x1)
    ld de,(y2x2)
    ld bc,(yx)

    ld ... /> ret nc
    ld a,c
    cp ... /> ret nc
    ld a,1 ; not needed ... when COL 0!
    ld (col),a
    ret ...
    Dr BEEP Dr BEEP March 2005 Development
  • Installing Z88DK Z88DK INSTALLATION Z88DK is distributed in two parts. The first part is the platform independent bits (including source and z80 libraries) and th…

    ... /> call rand
    ld de,24 ;const
    ex de,hl
    call ... /> call rand
    ld de,32 ;const
    ex de,hl
    call ... /> call rand
    ld de,24 ;const
    ex de,hl
    call ... /> call rand
    ld de,32 ;const
    ex de,hl
    call ...
    na_th_an na_th_an April 2005 Development
  • saving to asmMy another question... I know I can save part of Spectrum memory to .bin file. However I would like to save it (or convert .bin file)into .txt file w…

    ... 50000
    ld bc,6912
    ld de,16384
    ld hl,PIC

    then compile de code with option --tzxbas or ...
    AE.Vasconcelos AE.Vasconcelos May 2005 Development
  • Capture Routine HelpData: ORG 32768 [ This Message was edited by: dalmudlee on 2005-08-10 01:57 ]

    ...
    LD BC,#0000
    LD DE,#FFFF
    J2: DEC DE
    LD A ... BC
    J3: DEC DE
    LD A,D
    OR E ...
    Metalbrain Metalbrain June 2005 Development
  • Hi-Score tableThe score in my game occupies 3 bytes. I want to create a hi-score but I'm not sure of the best way to work out where a new score would fit in the ta…

    ... LD DE,TABLEMID + 2
    LD HL,TABLEEND + 2
    INSERTLP LD A,(DE)
    LD ... HL
    DEC DE
    LD A,(DE)
    LD (HL),A
    DEC ...
    Mr Millside Mr Millside June 2005 Development
  • Hi-Score tableThe score in my game occupies 3 bytes. I want to create a hi-score but I'm not sure of the best way to work out where a new score would fit in the ta…

    ... LD DE,TABLEMID + 2
    LD HL,TABLEEND + 2
    INSERTLP LD A,(DE)
    LD ... /> INSERTSCORE LD HL,TABLEMID + 2
    LD DE,TABLEEND + 2 ...
    Shiftloop LD C, ...
    Dr BEEP Dr BEEP June 2005 Development
  • Hi-Score tableThe score in my game occupies 3 bytes. I want to create a hi-score but I'm not sure of the best way to work out where a new score would fit in the ta…

    ... LD DE,TABLEMID + 2
    LD HL,TABLEEND + 2
    INSERTLP LD A,(DE)
    LD ... HL
    DEC DE
    LD A,(DE)
    LD (HL),A
    DEC ...
    Mr Millside Mr Millside June 2005 Development
  • Hi-Score tableThe score in my game occupies 3 bytes. I want to create a hi-score but I'm not sure of the best way to work out where a new score would fit in the ta…

    ... /> ORG 50000

    LD DE,TABLE
    LD C,4 ; nr of ... /> LD B,H
    LD C,L
    LD HL,ENDTAB-3
    LD DE ...
    Dr BEEP Dr BEEP June 2005 Development
  • 128 ramdisk loaderanyone got a program which will save the contents of ramdisk to tape in one go, rather than saving each file seperately then loading them and save!in…

    ... :
    [code]
    ld hl,banks
    ld bc,7FFDh
    loop ... :
    ld a,(hl)
    ret z
    di
    ld (5B5Ch),a
    out (c ... /> push hl
    ld ix,0C000h
    ld de,4000h
    call 04C2h ...
    John Elliott John Elliott July 2005 Sinclair Basic
  • 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…

    ... /> ProgStart:
    ld hl,$8000
    ld de,$8002
    ld a,(de)
    add ... a,(hl)

    ld (de),a ...
    ld (de),a
    dec e
    fim:
    ld (de),a
    rtunes rtunes August 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…

    ... do:

    LD HL,(&8000)
    LD DE,(&8002)
    ADD HL,DE
    JR ... ...
    LD HL,(&8000)
    LD DE,(&8002)
    LD A,L ... :ADD E:LD L,A
    LD ...
    Jonathan Harston Jonathan Harston August 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…

    ... /> ProgStart:
    ld hl,($8000)
    ld de,$8002
    ld a,(de)
    add ... a,l
    ld (de),a ...

    inc e
    ld a,(de)
    adc ...
    rtunes rtunes August 2005 Development
  • FrameSyncIt was many many years ago since i programmed assembly on the spectrum but I just picked it up again for fun. Now this is one thing I can't remember…

    ... /> SETUP LD HL,49152
    LD DE,49153
    LD BC,257
    LD (HL ... /> TURNON DI
    LD A,192
    LD I,A
    IM ... /> TURNOFF DI
    LD A,63
    LD I,A
    IM ...
    dmsmith dmsmith August 2005 Development
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... 50000
    LD HL,50100
    LD DE,16384
    LD BC,6912
    mulder mulder August 2005 Emulators
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... 50000
    LD HL,50100
    LD DE,16384
    LD BC,6912
    Dunny Dunny August 2005 Emulators
  • screen$I'm wanting to create a game which is written mostly is Basic, due to lack of MC skills but i need a MC routine if someone would kindly supply it I…

    I'm not sure 23296 is the right address for your screen 1 as it would overwrite your BASIC. But whatever address you use, you need just this:

    [code]
    ld hl,ScreenAddr
    ld de,16384
    ld bc,6912
    ldir
    ret
    [/code]
    baze baze August 2005 Development
  • screen$I'm wanting to create a game which is written mostly is Basic, due to lack of MC skills but i need a MC routine if someone would kindly supply it I…

    [code]
    Screen to memory

    ld hl,16384
    ld de,32768
    ld bc,6912
    ldir
    ret

    Memory to screen

    ld hl,32768
    ld de,16384
    ld bc,6912
    ldir
    ret
    [/code]
    Dr BEEP Dr BEEP August 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... br /> inc hl
    ld d,(hl) ; de = addr
    inc hl ... hl
    ld b,(hl) ; bc = colours
    ex de,hl ; ... /> inc hl
    ld d,(hl) ; de = addr of spr attr ... block
    inc bc
    ld (de),a ; write clr into struct ...
    Alcoholics Anonymous Alcoholics Anonymous September 2005 Development
  • z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…

    ... ;## In : HL = source address
    ;## DE = destination address
    ;## Destroy : AF ... , BC, DE, HL, AF', BC', DE', HL'

    ; ... br /> ld hl, (source)
    ld de, (destino)
    uncrunch:
    push de ; ...
    na_th_an na_th_an October 2005 Development
  • SAVE the complete screen in BASICHow can I save the COMPLETE screen (with the last two lines) in BASIC? If I type SAVE "XXXX" SCREEN$, then comes the message "Start tape, ..." and th…

    ... :

    ORG 65368
    LD DE 32768
    LF HL 16384 ...
    LD BC 6912
    LDIR
    DE (16384, start of screen memory ...
    Lloyd Lloyd October 2005 Sinclair Basic
  • 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 …

    ... ) ;swap (bc),(de)
    ld h,a
    ld a,(de)
    ld (bc),a ...
    ld a,h
    ld (de),a ...
    Metalbrain Metalbrain January 2006 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 …

    ... , hl = right
    ld de,0
    push de ; mark end of qsort ... +right)/2)
    ld e,l
    ld d,h ; de = right
    ld l,c
    ld h,b
    ex de,hl ; de = left ...
    Alcoholics Anonymous Alcoholics Anonymous January 2006 Development
  • Screen DisolveHas anyone got any good assembly code to dissolve the screen I could see

    ... fx_clear ld de, 43775 ;10101010
    call fx_clear1 ;11111111

    ld de, ... fx_clear1 ;01010110

    ld de, 85 ;00000000
    call fx_clear1 ... ;01010101

    ld de, 0 ;00000000
    ;call fx_clear1 ...
    Fikee Fikee February 2006 Development
  • Screen DisolveHas anyone got any good assembly code to dissolve the screen I could see

    ... />
    LD HL,16384
    LD DE,16385
    LD (HL),255
    LD BC ... /> halt
    nop
    ; ld de,4820h
    ld de,4000h ; Start of Disolve ...
    robpearmain robpearmain February 2006 Development
  • 128k Screen Flipping - Sample Code PleaseI know this has been covered before, but I cannot find out code to do the following: On a 128k Spectrum tell the speccy to display from address 4915…

    ... 6143
    ld de,49152 + 6144
    ld (hl),0
    ld bc,767 ... br /> jr1:
    ld hl,49152
    ld de,data1
    call dblock ... l
    inc de
    ld a,(de)
    ld (hl),a
    robpearmain robpearmain February 2006 Development
  • Any examples of Proportional Font (Dark Star)Dark star had a cool proportionally spaced way of displaying text. Does anyone know of any code to do this? Cheers

    ... br /> ld l,a

    ld de,gfx

    ld a,( ... ld b,a

    a2:
    push de

    ld a,(de ... )

    ld d,a
    ld e ... a3:
    ld b,8
    a4:
    ld a,(de)
    or ...
    robpearmain robpearmain March 2006 Development
  • Run Length DecodingRun length encoding/decoding is far less efficient than using a modern compression program.

    ... />
    ld hl,ORIGN
    ld de,$4000; DESTINATION
    ld bc,6912 ... ;SIZE
    del1: ld a ...
    ld a,0
    ld (de),a
    inc de
    ...
    rtunes rtunes March 2006 Development
<1…15161718192021…34>

Latest Posts

  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 9:55PM
  • Goodbye Z80
    moggy on 9:07PM
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
ld 6.3K 67.3K
de 9.7K 27.3K
11 13.8K 19K

Related Threads

  • It's a Binary day 11/11/11/11/11/11 is the last binary day for 88 years and 51 days by which time we will all will have passed on.
  • Less MIA - Reasoning - 11+ Yrs (1984)(Micro-De-Bug Consultancy)Okey why to stop ?:)<br /> to not forget nice tapes too :)<br /> education software ...<br /> <br /> inlay<br /> [img]http://forest.no-ip.org/w…
  • MIS Update 07/11/2001 (HUGE)Hi folks,<br /> <br /> I've finally managed to sort though all the TZX vault submissions along with Steve,<br /> and I've identified the titles that …
  • Music on Tour de Force (Gremlin)Has this game really a music somewhere ?<br /> Perhaps the 48K bzz-bzz at the beginning of any level and/or for game over is considered "music" ?<br …
  • Scrabble De-luxe dsk image and SpinAnyone else tries loading the disc file of Scrabble De-Luxe into Spin?<br /> All I get is the loading screen keep appearing and disappearing - as if …
  • .tzx vault updated 11/01/2003Well, it's been months since the last update, so I hung my dumping boots up and decided to get this update issued. There's some nice MIA titles resol…
  • Viaje al Centro de la Tierra - questionsI would like to know the following informations about this game:<br /> <br /> 1) What does the title mean in English? I guess that the game is based …
  • Realspectrum latest build (11 Nov)It's only now that I've seen the 'latest build' of Realspectrum for DOS, dating from 11th of November.<br /> <br /> My question is...<br /> <br /> Ha…
  • BASin Release 11 out nowBASin has been updated once again, for your BASIC programming pleasure!<br /> <br /> Get it at:<br /> <br /> [url="http://homepage.ntlworld.com/paul.…

Related Searches

  • ld ix
  • ld bytes
  • ld hl de
  • ld bc eostr string
  • ld am
  • ld a r
  • ld r a
  • de spectrum
  • la diosa de cozumel
  • los amores de brunilda
  • ld a b xor c loop
  • ld a b or c loop
  • viaje al centro de la tierra
  • loading screen viaje al centro de la tierra
  • viaje al centro de la tierra screen
  • en busca de mortadelo
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • 17 11 1989

Copyright © 2024 World of Spectrum