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.080s
<1234567…34>
  • RAND USR that doesn't work in emulators and clonesEons ago, I "discovered" a strange RANDOMIZE USR. This is it: [b]RANDOMIZE USR 46578[/b] Using it on a genuine ZX Spectrum rubber key or Plus model,…

    ... it happens at that specific address but not one above/below ... a certain state - putting the call address in BC, for example - but the fact ... would have to be written in such a way that the ... or tstates-since-interrupt) is in a predictable state at the ...
    gasman gasman May 2011 Emulators
  • In Java for ZXHi All I am glad to notify you that I have opened the sources of my J2Z80 translator (0.1 version) which allows to use Java toolchain to generate Z8…

    ... saves me if I call the code from another ... the frame after the call, at present JNI methods ... call for JNI
    [QUOTE]
    ___BEFORE_INVOKE: ; (in) A - arguments length in bytes, (in)BC ... after frame
    POP BC ; return address in BC

    LD ...
    Raydac Raydac June 2012 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... if checking syntax
    call find_int2 ; get length in BC
    ld (ix ... + 11), c ; in header
    call find_int2 ; get start address in BC
    ld (ix ... length
    add ix, bc ; base address of second header

    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... /> x80_fpeek:
    call find_int2 ; get address in BC
    ld a, (bc) ; get byte
    x80_fusr:
    call find_int2 ; get address in BC
    ld hl, stack_bc ...
    chev chev October 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…

    ... br /> ld a,$07
    call paginar

    ld de ... ld hl,128
    call dos_set1346
    jp nc,0 ... ) ; I put the starting address in bc
    inc hl
    ... /> ld b,5
    call dos_close

    ld ... a,$10
    call paginar
    ret

    Zup Zup December 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…

    ... , when I call the run address for the game ... ; page DOS
    call paginar ; page ROM2/RAM7 ... ) ; I put the starting address in bc

    inc ... ld b,5
    call dos_close ; close the file< ... ; page BASIC ROM
    call paginar
    ret
    ...
    Speccy_James Speccy_James February 2014 Development
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    ... the program to find whereabouts in memory it was, as there ... value in the PC register. I eventually remembered that a USR call ... puts its address on the stack and ... .[/QUOTE]
    A USR call also puts its address in BC

    EDIT ...
    mcleod_ideafix mcleod_ideafix September 2014 Development
  • Help! I'm learning Machine Code...Having decided to take the plunge and learn to machine code a while ago, I have started in earnest using the much recommended 'Mastering Machine Code…

    ... machine code. Just put it in BC before you return. It's ... address, but make your first instruction a NOP. Now you can call ... /> so now if you call it at address 40000 it runs the ... address in BC of where to POKE your data before you call it back in ...
    joefish joefish March 2016 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... LD_SCROLL_SRC_DEST_LINE offset
    push bc
    ld a, (bc)
    ld e ...
    ld bc, BSS_LEN-1
    ldir

    call heap_reset
    address in DE
    pop hl ; cpair
    call cpair_setlinkptr ; (1 ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • RCS HelpThis plea for HELP is related to the RCS screen handling routines thread. To further save space in the current crop of routines its looking like the …

    ... thread. To further save space in the current crop of routines ... reversed. The routine takes an address in BC and plonks the RCS equivalent ... in DE, calculating D first, then ...
    jamorski jamorski September 2013 Development
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... are quite simple.
    ;IN: HL = (x0,y) ... push bc
    ld b,l
    CALL pixeladdress; in: bc = ( ... br />
    pop bc
    ld e,b ... ld c,h
    call pixeladdress
    ld b,a ...
    rtunes rtunes November 2001 Sinclair Miscellaneous
  • ROM paging questionAssuming the Spectrum 128 memory map and port addresses, but two custom ROMs in place of the normal Editor and BASIC, what is the most efficient way …

    ... return address in HL

    pop HL

    ; get call address in DE ... /> push HL

    ; push call address on stack

    push ... that defined the desired call address for the routine in ROM1.

    cyborg cyborg January 2006 Development
  • In Java for ZXHi All I am glad to notify you that I have opened the sources of my J2Z80 translator (0.1 version) which allows to use Java toolchain to generate Z8…

    ... cell after frame
    POP BC ; return address in BC

    LD SP ... br /> POP DE ; the return address in DE
    POP HL ; the ... cell after frame
    POP BC ; return address in BC

    LD SP ... br /> POP HL ; the return address in HL
    POP DE ; ...
    Einar Saukas Einar Saukas June 2012 Development
  • IN 255 behaviour not emulated in Spectaculator and ZXSpinI'm not speaking about "normal" IN 255 behaviour. All of you know what I'm taking about: IN 255 can be used to "read" screen data as it's retrieved f…

    ... sense: the ULA detects an address in the range 4000h - 7FFFh, thinks ... b,0
    BucTest push bc
    call TestInFF
    jr nz ...
    mcleod_ideafix mcleod_ideafix January 2009 Hardware
  • Shadow ROM partial decoding not implemented in emulatorsOr at least, not implemented in Spectaculator, and it seems that not in Fuse too. [URL="http://www.speccy.org/foro/viewtopic.php?f=8&t=408&start=53"…

    ... allows me to call anywhere in the Z80 address space, with the ... RET instruction, but that address is special, as the ... ld de,32768
    ld bc,16384
    ldir
    ...
    mcleod_ideafix mcleod_ideafix June 2011 Emulators
  • Is it possible to access the +3 disk drive via m/c in USR0 mode?Is it possible to access the disk drive of the +3 via m/c +3DOS calls when running in USR0 mode? I ask because I'm having an awful lot of trouble ge…

    ... modified slightly crashes horribly in the DOS_OPEN call in USR0 mode when it ... ($9000),sp ; 36864
    ld bc,$7ffd
    ld a,($5b5c ... hl,filename
    call 262

    ld bc,0
    jr ... and injecting the code into address 48796 before calling it with ...
    cmonkey cmonkey October 2011 Development
  • Scrolling loader counter in 85 T-States?Would it be possible to write a scrolling loader counter in 85 T-States? I have a custom screen load routine that loads attribute first, then the …

    ... ff
    scf
    call $556

    ... ld h,a ; screen address in hl
    loop1: ld ... ; 08ts ; Convert to screen address
    rlca ; 04ts
    address
    inc ix ; 10ts ... IX, DE, HL, BC and EX AF,AF'. ...
    FrankT FrankT February 2017 Assembler
  • 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…

    ... reti

    start
    call prepint

    mainloop
    in a,(07Eh)
    and 1 ... ei ;interrupts. Jump to 0056 in ROM
    jp 56 ;for ... de,58881 ;pointers to address
    ld bc,260 ;229*256+229 ...
    ekoman ekoman July 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 …

    ...
    POP BC
    ;| this cycle makes everything in the same way ... memory
    ;but uses stored in BC' preshifted bytes of mask and ... /> RET Z
    CALL DRAWCH1 ;returns an address of next bottom line ...
    moroz1999 moroz1999 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 …

    ... ; SCREEN ADDRESS LOOKUP TABLER

    ORG 32768

    CALL INITIM2 ... br /> PUSH AF
    PUSH BC
    PUSH HL
    PUSH ... THUS MOVING 256 BYTES FORWARD IN MEMORY TO FB0AH
    LD ...
    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 …

    ... B
    PUSH BC
    CALL WRITECHAR
    POP BC

    ... THUS MOVING 256 BYTES FORWARD IN MEMORY TO FB0AH
    ... ; HL CONTAINS SCREEN ADDRESS
    ; DE CONTAINS CHAR ADDRESS
    ; ON ...
    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…

    ...
    LD IY,33168
    CALL ROTATETILE


    ADDRESS IN BACKGROUND DATA MAP
    ... DISPLACEMENT
    ADD HL,BC ;HL = ADDRESS OF PRESHIFTED BLOCK
    ... BC,80
    ADD IX,BC
    ADD IY,BC

    POP BC ...
    dmsmith dmsmith September 2004 Development
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?

    What is the fastest way, given x,y (in hl) to return the attribute address?
    robpearmain robpearmain December 2005 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…

    ... HL up one address

    ld bc,$15c4 ; address of input ... br /> ; address to give the correct location
    ; in the streams ... carriage return if so
    call pr_64 ; print it
    ... ; divide by two with remainder in carry flag

    ...
    chev chev January 2007 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…

    ... m giving my first steps in assembler (finally, after 20 ... years stuck in BASIC). I read a ... ld de,22564
    call 1366
    jp 30285[/CODE ... certain registers if I call a routine from the ... 'de' is the destination address, and 'bc' sets the amount of ...
    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...? …

    ... $5ced ; jump to shadow rom address
    ;
    exx ; ... ; and preserve
    ;
    call detectrom ;
    ;
    pop ... exx ; restore return to basic address
    pop hl
    ... gethook ld bc,($00ec) ; return the address of HOOK-CODE in bc register< ...
    jp jp February 2008 Hardware
  • 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…

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

    ld de, back_to_r0 ; address in rom1 of the return routine ... ) ; get value
    ld bc, 0x7ffd ; bc holds port address
    di ; disable ...
    chev chev August 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…

    ... it to the desired address
    LD BC,495 ; Additional 496 bytes ... DOS FORMAT
    CALL DISK ; Call the subroutine in ROM
    POP DE ...
    NaMcO NaMcO December 2008 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... (over 32768) and memorable address in RAM
    ;initialise score ... from 0 to 65355 in the BC register.
    We ... byte of the score in bc to it.
    ... you could adjust the figure in bc with a keypress to ... br /> gameover
    pop bc ;retrieve score
    pop ...
    bigjon bigjon November 2009 Development
<1234567…34>

Latest Posts

  • 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
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade 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

HitBox

Word Docs Hits
call 14.3K 24.3K
address 11.8K 21.2K
in 401.9K 810.5K
bc 3.6K 14K

Related Threads

  • Glad to see the ZX Spectrum is in the Science Museum in London.About time too! Last tiem I looked there was just the ZX-80 but the Spectrum is in there now too, alongside a pong-clone and a Vic-20.
  • have a speccy program not in the archive or in MIAIntermediated Maths 2 for the 48K!!
  • New remake in progress - play in browser[url="http://www.multiedge-net.co.uk/wally"]http://www.multiedge-net.co.uk/wally[/url]<br /> <br /> Play it in your web browser; no nasty downloads (…
  • Speccy mentions in the general media in modern timesHas the speccy been mentioned or appeared or both on TV on much later computer games in recent times.<br /> <br /> "Worms World Party" has a ZX spect…
  • help me identify this TYPE-IN for the Spectrum back in '83I've had an amazing time downloading some of the type-ins on this site and bring back lots of fantastic memories (I can still remember typing in Stas…
  • Back In Time Lite / RV Mini September 2005 in MANCHESTER!well, the show is looking bloody great! Mark Knight, Ben Daglish, Rob Hubbard . . . and a live set from Mark Hibbett (Hey Hey 16K) . . . + an RV, sho…
  • IN command in BASIC to read keyboardThis weekend on a Sinclair meeting we had some BASIC-games using IN to control the character. The maker of the game assumed that the result of an IN …
  • Spin / Emuzwin and reading keys with IN in BasicIt's just a bit of a quirk I've found really, but here goes...<br /> <br /> Some of the Basic programes and games I've encountered lately , use IN to…
  • Incorrect link in "Ultimate The Collected Works" in archiveunder this title there is a map listed! It is actually a map for the game Ultimatum NOT for Ultimate: The Collected Works.
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?

Related Searches

  • writing music in basic
  • play in basic
  • play command in basic
  • unable to log in
  • print a char in asm
  • lost in my spectrum
  • rabbit in nightmareland
  • books in pdf format
  • basic start address
  • identify spectrum model 128k address
  • distinguish spectrum model 128k address
  • distinguish spectrum model 128k pentagon address
  • hello world in assembler
  • circle in asm
  • 2 numbers in address
  • 2 numbers in address debugger
  • email address change
  • music in assembler
  • call address held in register
  • usr bc register address

Copyright © 2024 World of Spectrum