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.110s
<1…20212223242526…34>
  • Flood FillHi Folks, Can anyone point me to a flood fill that I can call from ZX BASIC? I have looked through the archive and although there are posts about…

    ... that can be called from basic:

    [code]
    ;; ... ,0
    ret nc ; return zero to basic if ok

    inc ... c ; otherwise return non-zero to indicate ...
    Alcoholics Anonymous Alcoholics Anonymous December 2015 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…

    ... it in BC before you return. It's a bit fiddly ... into BC, and on returning to BASIC, that value will appear as ... into a routine too. When BASIC calls machine code, the address ... 'initialise' function return the address in BC of where to POKE your ...
    joefish joefish March 2016 Development
  • (Collected) Darkhog's noob question about z80 assemblySince when I'm learning new language or library, I tend to ask lots of stupid (for any advanced person) questions and I don't want it to have mess up…

    ...
    foo:
    ...
    ret ; return to address on stack which is ...
    baz:
    ...
    ret ; return to address on stack which is ... approach myself, it avoids sacrificing registers:

    [code]
    ...
    AndyC AndyC April 2016 Development
  • Function with push and popIm trying to see if I understand push and pop when it comes to using to pass parameters to functions: [code] LD HL,16384 LD A,5 Push AF Ld A…

    ... CALL addfunc ; this pushes the RETurn onto the stack
    LD ... to BASIC

    addfunc
    POP HL ; recall the RETurn ... /> PUSH HL ; put the RETurn address back on the stack ... br /> RET ; and then RETurn, POP the address off the ...
    MatGubbins MatGubbins April 2016 Development
  • Function with push and popIm trying to see if I understand push and pop when it comes to using to pass parameters to functions: [code] LD HL,16384 LD A,5 Push AF Ld A…

    ... addfunc ; this pushes the RETurn address onto the stack
    to BASIC

    addfunc
    POP HL ; recall the RETurn ... HL RETurn address

    [/code]
    (remember to bung ... POPped HL is the address to return to, so there is no ...
    MatGubbins MatGubbins April 2016 Development
  • ZX Dandanator! Mini - Cartridge system for SpectrumsHi All, I'd like to present a little HW I've developed during the last three months. It's aimed at providing a console-like usage experience for a…

    ... into RAM to run first, then return to Bank 0 to finish off ... does need the regular ROM to be present. It checks ... the ROM to test the version of the ... machine to do the colour timing. ... ROM could be copied to the BASIC area, and the screen ...
    joefish joefish July 2016 Hardware
  • ZX Dandanator! Mini - Cartridge system for SpectrumsHi All, I'd like to present a little HW I've developed during the last three months. It's aimed at providing a console-like usage experience for a…

    ... copied into RAM to run first, then return to Bank 0 to finish off ... from ROM could be copied to the BASIC area, and the screen ... beginning of your code to switch back to internal rom.

    to change to internal rom.
    < ...
    Dan Dare Dan Dare July 2016 Hardware
  • Help needed with MIA software with custom (?) loaderHi, I've got into my hands recently a bunch of Polish educational software which are unknown MIA on WOS. I believe they are protected with some…

    ... 0x5B45 PUSH BC ; with the return address (ROM)
    0x5B46 ... BC ; Preload stack with return address
    LINE-END: ... ; REPORT-C - Nonsense in BASIC (ROM)
    ;Handle CLEAR ... /> 0x5BFA JP (HL) ; return to the previous stack's ...
    lfaria lfaria August 2016 MIA/STP/SDP
  • Running out of fingers in AssemblyDear all, Still trying to learn Assembly and have put a few routines together. However, as my routines become a little more involved I find myself…

    ... when first getting something to run. But it doesn ... to BASIC, and particularly Sinclair BASIC, machine code is going to be ... typical beginner's approach to clearing the screen is ... to deal with situations that require more storage than there are registers ...
    AndyC AndyC September 2016 Development
  • Accessing +3 DOS with DivIDE enabledI'm thinking about making a tool that copies files from a FAT partition to a IDEDOS partition. Currently, I've got two problems: - Getting the ESX…

    ... /> - Gatito2: It tries to use dos_init to initialize +3DOS, then read ... option (or loading from 128k BASIC): every program works.
    ... Note that it doesn't return an error, it crashes ... ". They may crash when returning to BASIC.

    Also, some ...
    Zup Zup September 2016 Development
  • So it occurred to me; "Why bother with going into 48K BASIC when you can just....wrap the machine code calls inside a 'RST #28;DEFW addr:RET'?" Of course, you DO need a small M/C routine to do that, and ta-daaa, here it is: [cod…

    ... ' for the 128 BASICs to enter the 48K ROM and ... a 48K speccy, and then return to the 128K ROM. By ... the first 128K BASIC didn't have to copy all the ... many different routines that BASIC relies on, to the new ROM, ... which i'm beginning to use quite often in a ...
    The_Bert The_Bert October 2016 Sinclair Basic
  • RANDOMIZE USR, PRINT USR etcHello just wondering why is it called RANDOMIZE UsR what does randomising have to do with it ? When calling machine code routine from adress x you ty…

    ... , COPY, NEW, REM, RETURN, STOP and the functions which ... altered like this before returning to BASIC:
    [code]
    ... (for RE_ENTRY)
    ret ;return via $3365 RE_ENTRY
    [/ ... can be used to get USR to return a string rather ...
    Battle Bunny Battle Bunny October 2016 Sinclair Basic
  • RANDOMIZE USR, PRINT USR etcHello just wondering why is it called RANDOMIZE UsR what does randomising have to do with it ? When calling machine code routine from adress x you ty…

    ... ,201 and it will return safely (and print the ... , and there are some options to do:

    ... runing some unintended line of BASIC.
    - RANDOMIZE will ... some effects if your BASIC uses RND after that ... you won't be returning to Basic (like most games), ...
    Zup Zup October 2016 Sinclair Basic
  • UDG generator doesn't work, why?Typing in the UDG generator from the manual I get integer out of range when I run it. I'm going nuts trying to figure out whats wrong. Can someone pl…

    ... haven't a clue about registers, stacks,interrupts etc. etc. ... or forum for me to ask my basic Basic questions?

    ... My first experiment was to program ... poss I'd rather stick to Basic even if it does take ...
    mik3d3nch mik3d3nch October 2016 Sinclair Basic
  • The state of source level debuggingI was just wondering if we can put on a table everything we collectively know about source level debugging for ZX Spectrum to get an overview of curr…

    ... USR addr. to BC
    ld hl, 2D2B ; return address is ... USR addr. to BC
    ld hl, 2D2B ; return address is ... af ; restore state and back to basic
    push hl ; push ...
    tstih tstih November 2016 Development
  • THE LIGHTBULB EFFECT You know what that is? Like how cartoonists depict a bright idea by drawing a lightbulb over the head? When I was trying to work out the lengt…

    ... so no return value has to be stored in BASIC or something ... engineer was creating the BASIC command they would ... , you need to use a BASIC method that accepts ... the chance to return a value from code to BASIC I guess ... .

    I have to ...
    Luny Luny November 2016 Chit chat
  • THE LIGHTBULB EFFECT You know what that is? Like how cartoonists depict a bright idea by drawing a lightbulb over the head? When I was trying to work out the lengt…

    ... engineer was creating the BASIC command they would ... code, you need to use a BASIC method that accepts ... the chance to return a value from code to BASIC I guess ... in order for Sinclair BASIC to work with it (because ... have had a BASIC with just POKE to do everything, ...
    AndyC AndyC November 2016 Chit chat
  • Scart Leads for spectrumHi, I was going through my stuff the other day and found I have all the bits for making spectrum scart leads. I was going to ebay them but thought …

    ... an unoiled chainsaw trying to cut through concrete). What ... text in the "+3 BASIC" bar distorts so it ... I can see it return to normal over about two minutes ... limited use to me, whereas a Spectrum-to-composite (i ... 's RGB/Peritel socket to the red/white/yellow ...
    The Mighty Dopethrone The Mighty Dopethrone February 2017 Sinclair Miscellaneous
  • c64 .sid player coming soon to specy 128!!!c64 .sid player coming soon to specy 128!!! the first old version uses only square waves, 4 years ago: https://www.youtube.com/watch?v=6CKt9noxA7s…

    ... thing would be to make loader from BASIC, so that ... follows:

    BASIC loader could look like this ... ldir everything from #5B00 to #5FFF to upper third of VRAM (which ... - enable interrupt
    - return correctly to BASIC, so it will continue with ...
    Hood Hood March 2017 Announcements
  • Serious facts about the ZX Spectrum Serious fact Number 1: It is a business machine. From an article about and interview with Sir Clive ( by Mike Cowley) Sir Clive says here:-"Nor…

    ... for another Sinclair machine only to discover emulators. Hooray!
    ... again as before mainly thanks to gamers and I very ... However the fun of Sinclair Basic (having used it for the ... here today[/i]
    but to return to the point...

    ...
    mik3d3nch mik3d3nch July 2017 Hardware
  • are there any machine code to basic converters?i know it sounds stupid but for amature programmers like me it would be great. i could speed up the basic on an emulator and it would give me more of…

    ... conversion where assembler registers would be Basic variables so INC ... or so and convert it to Basic this way. Commercial games ... we converted their code to Basic this way the result code ... be much bigger as each Basic instruction using variables, numbers ...
    Ralf Ralf July 2017 Sinclair Basic
  • Komando 2 incompatible with the +2A models, anyone could supply a poke or a loader to make it work?http://www.worldofspectrum.org/infoseekid.cgi?id=0002734 Is any way to make it work in the +2A models with a loader or poke? Thanks!

    ... directly, from BASIC, because memory that needs to be poked, ... />
    To be successful, you need to run the assemblycode ... Or you could make it return back to BASIC after decompression, do the ... poke in BASIC, and then ...
    RMartins RMartins August 2017 Games
  • hacking controls for atic atac?I was wondering if there is any way to hack in game controls? In particular for Atic Atac. I prefer to use keyboard controls for most games, but the …

    ... loaded this and restored the registers and set the PC.< ... routines instead, which then return to where the original routine did ... part where I changed KEYBOARD to KEYBOARD/REDEFINE does this - ... , and patched the sysvars to point to their custom font. I ...
    colonel32 colonel32 September 2017 Games
  • ZX-Uno moddingStarting with ZX-Uno case modding I have not yet received my ZX-Uno yet (it is in the post) but I know that I will have to do at least one mod …

    ... keyboard was a pig - why return to that?!?... Its perhaps not such ... I still like to type out the odd basic program from time ... to time... The other thing ... Exodos commands typed from 128k basic... For those of us who ...
    kgmcneil kgmcneil October 2017 Hardware
  • Re. new Spectrum Hardware :What are the advantages and disadvantages of Crowdfunding for WOSSERSIn other words who and how does it help?

    ... sense.

    The basic idea is that :- Repeat business ... customers and they will return to the same show next ... of fame" offerings have to create sustainable and profitable businesses ... .It also encourages companies to release underdeveloped and "half ...
    harriusherbartio harriusherbartio October 2017 Sinclair Miscellaneous
  • Other than using attributes what other ways to detect collisions, when using char based movement?So I'm slowly working out the bits and pieces to write a game completely in assembly. I've been using attributes when writing in BASIC to detect whet…

    ...

    ret ;Return to calling function. 'A' still holds ...
    Remember when you RETurn, the registers aren't changed (well, ... and PUSHes the address to return to onto the stack. When ... to just leave them in registers) is first POP the return ...
    joefish joefish November 2017 Development
  • Help with adding graphicsHi, After like 20 years or so I started playing again with Spectrum stuff, especially programming. I tried to dig into machine code, but apart f…

    ... , eventually I managed to code a little game in BASIC. Here it ... CHARS and UDGs to alternate sets and then returning to BASIC.
    I ... CPU monitor (to see the registers) and a way to step through the ...
    sfg sfg December 2017 Development
  • BREAK key on 128k SpectrumWhat happens when BREAK is pressed on a 128k Spectrum? Why is it different from what happens on a 48k Spectrum. Is there a way to disable it or to …

    ... 's an example of a BASIC error handler which is called ... change the error return to point to my routine or to restore the original ... on the machine stack pointed to by ERR_SP. The loop at ...
    Battle Bunny Battle Bunny February 2018 Sinclair Basic
  • How to stop a flickering character erasure?I'm trying to figure out how to build a moving sprite. Eventually it will be made up of several UDG's. However its early days yet so I'm experimentin…

    ... a Next to be able to run an extended BASIC when there ... a RETURN, at least not if you want to use ... haven't requested not to) of the variables that ... procedure, and have them return to their original values on exit ... TO ax,ay TO bx,by TO dx,dy TO cx,cy TO ex,ey TO ...
    Dunny Dunny May 2018 BASIC
  • Why do we do it?I was sitting down thinking just now, why am I so into this Spectrum retro scene thing? Better than that why are there so many of us into the retro s…

    ... /> Birthday parties was an excuse to have friends revolving around it ... Christmas was the right time to ask for a long sought ... .
    It was accessible, basic was easy to pick up, and there ... part I can always return to. Whenever I want to, trouble free, good ...
    Renegade Renegade March 2019 Chit chat
<1…20212223242526…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 7:56AM
  • Happy 40th Birthday to the Amstrad CPC464!
    Your Spec-chum on 7:28AM
  • Your Favorite Magazine Cover Tapes.
    Paradigm Shifter on 1:28AM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11
  • Footballer of the year - translated version
    firelord on April 11

HitBox

Word Docs Hits
registers 2.3K 3.4K
return 7K 10.6K
to 549.6K 1.6M
basic 24.7K 39K

Related Threads

  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • How to return to basic properly from ASMI am messing around with a fast stack copying routine.<br /> But I am getting<br /> <br /> "A: Invalid argument" error when I later return to basi…
  • How To Upload BASIC program To WOS archiveIn 1987 when i was 15 years old,i wrote a program in BASIC on my Speccy 128 called ART STUDIO..yeah i know<br /> <br /> Its the only basic program i …
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this:<br /> PRINT USR xxxxx, arg1,…
  • Switch from 128k BASIC to 48k BasicHello,<br /> <br /> Is there a way to start off running a program in 128k basic (so that you can use the ramdisk facilities) but then switch back dow…
  • Restore Registers Returning to BASICI should really know this, but I've not written code that requires a return to BASIC for a loooong time.<br /> <br /> What registers need to be prese…
  • How to transfer a BASIC-Programm to PC and/or TZX?Hello there,<br /> I'm pretty new at WOS, but have already spent some time reading a small bit of the large amount of information here.<br /> <br /> …
  • Using a multiface to exit to BasicBack in the days I was always fascinated with the idea of getting access to BASIC listings inside a program or game. I was able to work a way around …
  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …

Related Searches

  • rst8 return to basic
  • return to basic
  • basic to word
  • return to basic hl
  • basic to gif
  • adding soundtracker music to basic menu
  • adding beepola music to basic menu
  • add machine code sprite movement to basic
  • switch to 48k basic
  • inputting to array basic
  • poke to change line number in basic
  • poke to hide loading name basic
  • john silver s return to treasure island
  • basic plot will appear to bounce
  • how to make games on basic
  • basic to tap
  • plus3dos basic to tap
  • return basic error
  • registers return basic
  • return to basic assembly

Copyright © 2024 World of Spectrum