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.115s
<1234567…34>
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code] dec bc ld a, b or c jp nz, loop can be replaced (bc starts >255, short jump) by: dec bc inc b djnz loop [/code] …

    yesterday i saw nice trick:[code]

    dec bc
    ld a, b
    or c
    jp nz, loop

    can be replaced (bc starts >255, short jump) by:

    dec bc
    inc b
    djnz loop
    [/code]
    ..nice
    Fikee Fikee February 2005 Development
  • When would you use LD A,R ?Can anyone tell me a practical use of LD A,R and LD R,A I am confused when you would need to use it? Cheers

    Can anyone tell me a practical use of LD A,R and LD R,A I am confused when you would need to use it?

    Cheers
    robpearmain robpearmain November 2009 Development
  • 28-character wide multicolour(ish) on 48k SpectrumLong-time lurker here... I've always been interested in rainbow effects on the 48k Spectrum, mainly from a perspective of "Just what [I]would [/I]ha…

    ... A
    LD (STRTLN),A
    LD L,A
    LD H,A
    LD A,24
    LD (DEPTH),A ...
    LD ...
    IM 1
    LD A,3FH
    LD I,A
    RET

    AMW AMW April 2012 Development
  • Has any programmers recently pushed the spectrum to the limits?Hi there. Ive just discovered this great forum and I was brought up with the speccy 16,48 and then 128k. Im just wanting to know if there are any re…

    ... A
    LD (TST1+1),A
    DJNZ TSLP3
    IM 1
    LD A,3FH ...
    LD ... I,A
    RET

    AMW AMW August 2009 Development
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... /> EndIntr proc
    ld (MyVector),a
    ld a,3fh
    ld i,a
    im 1 ...
    mcleod_ideafix mcleod_ideafix June 2012 Development
  • JSW2 - Game Loader DifferencesThere are three official releases of JSW2. I'm not counting the 'JSW2-128' version here as far as I'm aware this was not in any way 'official' as it …

    ... /> PUSH BC
    LD A,3Fh ;I
    LD I,A
    POP AF
    LD BC,1932h ;BC
    PUSH AF
    LD A, 24h
    LD R, A ;R
    POP AF ... the rerelease simply took a snapshot after a valid code had been ...
    John Elliott John Elliott September 2013 Sinclair Miscellaneous
  • 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 ... ,TILERENDEREND
    LD A,E
    ADD A,32
    LD E,A
    JP ...
    Mr Millside Mr Millside February 2005 Development
  • A few questions about machine codeOh no... another noob. I'm giving my first steps in assembler (finally, after 20 years stuck in BASIC). I read a SU article explaining that if I wan…

    ... ]scf
    ld a,255
    ld ix,16384
    ld de,6912
    call 1366
    ld a,255 ...
    ld ix ... ,24576
    ld de,22564
    zxbruno zxbruno August 2007 Sinclair Miscellaneous
  • If you've got a real working MF128,IF1, and MDR combo can I ask a favour?So, if you do have a real Multiface 128, Interface 1, Microdrive and, oh yeah, a Spectrum (48k or 128k) that are all working, can I ask a favour...? …

    ... /> exx
    ;
    ld hl,(err_sp) ; fetch current error ... br /> ld a,$ff ; force clean error report
    ld (err_nr),a ; and ... br /> detectrom
    ld (err_sp),sp
    ld bc,0 ; clear bc ... ret
    ;
    gethook ld bc,($00ec) ; return the address ...
    jp jp February 2008 Hardware
  • 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…

    ...
    ADD A,23
    ADD A,A
    LD L,A
    LD A,16 ...
    Dr BEEP Dr BEEP December 2008 Development
  • Howto paint a squared zone of the screen ?You know what guys ? i begin to love this languaje. Cant understand why not put more effort on the 80's to learn it :( because it is really speedy. …

    ... is really speedy.

    A new question on the way ... time is how to paint a squared zone of the screen ... plots and draws to create a squared zone and then we ... now for me..

    ld a,2 ;open channel 2...
    arfgh arfgh June 2010 Sinclair Basic
  • Building a menu in ASMWEll as probably some figured, i am learning asm at least to make the basic menu i did in basic. It is a menu where we can select games to be loaded.…

    ... 80's i programmed a lot in basic and ... ;repeat x times
    ld a,0 ;number of msg in ... the table
    ld de,strTable ;start of the ... table
    loop_menu_items
    ld c,a
    push bc
    ... bc
    ld a,c
    inc a
    inc a
    djnz ...
    arfgh arfgh June 2010 Sinclair Basic
  • A fast DRAW routineI was investigating how to speed up the line drawing for the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=20225"]BASIC compiler[/URL]…

    ... z, __DRAW_SETUP1
    ld a, 2Fh ; CPL
    ld (__PLOTINVERSE), a
    ld a, 0A6h ; and ... '
    ld a, 8
    add a, h
    ld h, a
    ld a, l
    boriel boriel December 2010 Development
  • Best way to organise a multi screen game?Hi All, Does anybody know ay good ways to organise large multi screen game? Or any links to useful texts on the matter? In my previous single scr…

    ... the simple case of keeping a 'level defb' in memory and ... change was needed I would ld a,(level), cp 1, jp z ... . This worked fine(ish) for a 10 level game but is ... no good for a flip screen one.

    R-Tape R-Tape April 2011 Development
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    ... routine to save part of a BASIC program. The idea is ... it can be merged into a program and then used to ... programs. It's sort of a slow version of copy & ... start to the last line ="A"):
    DEF FN b(h ... br /> DEF FN p(a)=PEEK a+fg*PEEK (a+1)
    9990 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…

    ... intro screen of a game.

    [code]
    ld hl,line ... : ; Routine to print out a line
    ld a,(hl) ; Get character to ... ; Spectrum: Print the character in 'A'
    inc hl ; Move onto ...
    sack sack October 2011 Development
  • A z88dk + sp1 demo (with source)Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how e…

    ... ][COLOR="Red"]Update[/COLOR][/B]: A new z88dk/sp1 installation can ... to worry about writing a sprite routine, a joystick handler and you ... (obviously), but I find that a good tradeoff.

    ... br /> // Means we can write a lot less code :)
    #include ...
    Timmy Timmy January 2012 Development
  • Moving a line down the display in assembler?...It's not a "[I]how can I do it[/I]" question, it's more a "am I missing something in trying to do it a new way" kinda question. What I've been doing…

    ... />
    [CODE]
    ld a,(xpos)
    ld l,a
    ld a,(ypos)
    and ... )

    loop1: ld a,d
    ld l,a
    ld a,e
    and ...
    Sokurah Sokurah June 2012 Development
  • Hep needed with a bit of code...I've written a bit of code to make a character move across the screen, but the counter stops at 29 when the 3 lines to delete the characters trail ar…

    ... /> ret
    space: ld a, 2
    call 5633 ... ld a,(63289)
    ld (63298 ),a
    call space
    ret
    rpg: ld a ... ,161
    ld ... (63289),a
    ret[/FONT ...
    daveysludge daveysludge August 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…

    ... you fo about printing a numerical value using the print ...
    For instance I have a value 0-255 and want ... of thing:

    ld a,2
    call 5366
    ld de, (address of text to ... print)
    ld bc, (length of text ...
    daveysludge daveysludge August 2012 Development
  • Using R as a loop counterThis is just something silly I've found a while back. xD [b][How-to][/b] Setup your routine like this:[code] ld a,X ;see below ld r,a loop ;your …

    ... this:[code] ld a,X ;see below
    ld r,a
    ... ;your routine here
    ld a,r
    jr nz,loop ... b=LoopN, c=Rinc
    ld a,#FE
    .l1
    ld a,r
    jr nz,.l2
    ld a,b< ... br /> out (#FE),a
    ei ...
    Hikaru Hikaru October 2012 Development
  • A few questions on the Z80A cpuI know this has been discussed before and I read (a while back) the post which goes over the different Z80A CPUs ...(CMOS, NMOS? can't recall exactl…

    ... discussed before and I read (a while back) the post which ... exactly).
    Just picked up a couple of these Z80A 4MHz ... failed entries...such as:
    LD A, I/R
    Bit n ... appreciated :)


    **Just a small update, popped my original ...
    thomas3120 thomas3120 May 2013 Hardware
  • Adding a pause key to ArkanoidHaving rediscovered the simple pleasure of playing 1980s games on genuine 1980s hardware, I've also remembered that emulation can provide a feature m…

    ... /> ret nc
    ld a,0x16
    dec a
    jr nz,$-1 ... /> ret z
    ld a,0x7f
    in a,(0xfe)
    rra
    ld a,c
    cpl
    ld c,a
    and ...
    stephenw32768 stephenw32768 August 2013 Games
  • Movin And A Groovin Horizontal Flip improvementOn the left is the flip horizontal portion from Andy Pennell'S excellent Movin' & a Groovin' machine code screen routines from Your Spectrum #19 (Oct…

    ... up

    FLIPH2 LD A,(HL) fliph2 LD A,(HL) ; grab byte
    LD B,24 LD B,24
    FLATTR LD A,(HL) flattr LD A,(HL ...
    MatGubbins MatGubbins August 2013 Development
  • 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…

    ... /> 7F = LD A,A
    78 = LD A,B
    79 = LD A,C
    7A = LD A,D ...
    7B = LD A,E ...
    7C = LD A,H ...
    7D = LD A,L ...
    wibble wibble August 2013 Development
  • A FAQ from a Z80 datasheet may reveal some up-to-now unknown behavioursA fellow member of the zonadepruebas.com forum has just mailed this PDF to me. [url]http://www.atc.us.es/~rodriguj/zilog_z80_faq.zip[/url] It's an e…

    A fellow member of the ... It's an exceprt from a 1995 Z80A datasheet. This FAQ ... you do cycle step on a NMOS o CMOS chip?< ... - What happens if a NMOS Z80 suffers a negative spike? (those pesky ... behaviour of interrupts during a LD A,I or LD A,R instructions? (this ...
    mcleod_ideafix mcleod_ideafix October 2013 Hardware
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... a
    srl a
    srl a
    srl a
    call PrNotLeading0
    ld a ...
    mcleod_ideafix mcleod_ideafix November 2013 Development
  • A "generic" loader for +3(e)I've made this loader for 128k games in +3DOS. [CODE]dos_open equ 262 dos_close equ 265 dos_abandon equ 268 dos_read equ 274 dos_write equ 277 dos_s…

    ...

    ; page DOS
    ld a,$07
    call paginar ; page ... :

    ; read list
    ld a,(iy+0)
    bit 7 ... />
    ; page BASIC ROM
    ld a,$10
    call paginar
    di
    ld bc,32765
    ld (BANKM),a ; BANKM is updated ...
    Zup Zup December 2013 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
ld 6.3K 67.3K
a 589.5K 1.7M
3fh 15 26

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
  • How to separate a character from a number in a string?Hi <br /> I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say…
  • A TZX, a MIA and a previously unknown title from QLSThe Spanish website [url="http://trastero.speccy.org/"]El Trastero del Spectrum[/url] has a TZX of [url="http://www.worldofspectrum.org/infoseekid.cg…

Related Searches

  • ld ix
  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • ld bytes
  • ld a r
  • ld r a
  • ld a b xor c loop
  • ld a b or c loop
  • ld i a
  • ld a 0 call 5633
  • ld a 5b5c
  • ld a r counter
  • ld a r rnd
  • ld a r bug
  • ld a ix
  • ld bc 65533 a 254 out c
  • cpi ld a b or c
  • ld ixl a
  • ld a 1 call 1601

Copyright © 2024 World of Spectrum