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.010s
<1234567…34>
  • Removal of "reset on break" protection (old basic program)Hi, Long time lurker, here! This is hopefully quite simple but there's an old basic game in the I'd like to bring up to date / take a look at …

    There are some poke statements that normally pokes some numbers into the machine code routine at 9530 and 9540. Without any clear, they poked into the gosub/return stack instead. :P
    Timmy Timmy August 2015 Sinclair Basic
  • Booting with a programIf you ever had a VTX-5000, you'll remember it booted to a menu. The menu itself was written in BASIC. When the Spectrum initialized, this BASIC prog…

    ... to 0xFF, and then the return stack is set up so that ...
    Winston Winston August 2010 Development
  • Spectrum Basic InterpreterHello. I started this days a strange project: an interpreter of the Spectrum Basic that can run in a Spectrum. Here is a very preliminar version: […

    ... .

    Now it has GOSUB, RETURN and CONTINUE. See the web ...
    NotFound NotFound December 2006 Development
  • How works the Line-Draw ROM routine ?The 'complete spectrum rom dissasembly.pdf' show info related to the draw rom subroutine. The Line-Draw require two sets of parameters: X,Y coordinat…

    ... set the parameters into the stack just to call the main ... not the same as the return-stack, accessed using the PUSH and ... pushing them onto the calculator stack and then calling a routine ...
    GReW GReW June 2010 Sinclair Basic
  • Games in machine codeHi everyone, How do go about doing multiple shots like a machine gun, do you have to store every x and y position of each bullet? When you kill som…

    ... /> INTRT equ 0000010000000000b ; Interrupt return.
    STACK equ 0010000000000000b ; Reset SSP.
    INTRT_MASK equ 1111101111111111b ; Interrupt return.
    STACK_MASK equ 1101111111111111b ; Reset ...
    ASM ASM October 2010 Development
  • Calculating the address of a pixel?Hi Folks, Is there an easy/quick way of calculating the memory address of a pixel? So for example, if I wanted to "plot" pixel at screen coordinate…

    ... (with the possible exception of GOSUB/RETURN), but keeps the memory overheads ...
    RST#08 RST#08 February 2011 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... be a lot slower than GOSUB if you do stuff like ... 9000
    1020 REM simulated return here

    9000 REM ... GOTO retline

    since GOSUB return is all machine code and ... searching variables for the return address is slooooooow

    Paradigm Shifter Paradigm Shifter January 2014 Sinclair Basic
  • Removal of "reset on break" protection (old basic program)Hi, Long time lurker, here! This is hopefully quite simple but there's an old basic game in the I'd like to bring up to date / take a look at …

    ... does something with the BASIC return stack. You'll have to excuse ...
    briscaF1 briscaF1 August 2015 Sinclair Basic
  • Was there a POKE that broke the SpectrumHi Everyone I've been recalling myths and rumours from back in the day. You know "Lunar Jetmans" trailer and that sort of thing. But one rumour …

    ... RBS instruction that was officially Return with Bit Set, but was ... the instruction with an empty return stack the processor would to try ... to return to itself, initiating an infinite ...
    GReW GReW October 2015 Sinclair Miscellaneous
  • Was there a POKE that broke the SpectrumHi Everyone I've been recalling myths and rumours from back in the day. You know "Lunar Jetmans" trailer and that sort of thing. But one rumour …

    ... the instruction with an empty return stack the processor would to try ... to return to itself, initiating an infinite ...
    zub zub October 2015 Sinclair Miscellaneous
  • While we're on the subject of BASIC Although my memory of the past still seems to be fairly reliable, memories relating to learning computer programming seem to have disappeared…

    ... other structures too such as GOSUB / RETURN. ANd too avoid using GOTO ... see the advantage of the GOSUB and RETURN structure, and being able ... discovered the virtues of using GOSUB perhaps later than I should ...
    dmsmith dmsmith August 2019 BASIC
  • Locating the GOSUB stackI was wondering if someone could explain how to locate the dividing line between the GOSUB stack and the machine stack. Looking at the GOSUB routine …

    ... between the GOSUB stack and the machine stack. Looking at the GOSUB routine in ... to make entries on the GOSUB stack, but I can't see ...
    Battle Bunny Battle Bunny May 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…

    ... the same as a RETURN). Trying to break ... just gives a "7 RETURN without GOSUB" error.
    [code ... 3E ; 254 62 ;end of GOSUB stack?
    JR Z, NOGSUB ... contain:
    * the GOSUB stack end marker and error address ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • BASin Release 11 out nowBASin has been updated once again, for your BASIC programming pleasure! Get it at: [url="http://homepage.ntlworld.com/paul.dunn4/BASin_r11.exe"]htt…

    ... it.

    Added - the GOSUB stack window. Minimal functionality at the ...
    Dunny Dunny November 2004 Emulators
  • tiny routine to shift RAMTOP & stackCompressing some data areas above RAMTOP and wanting to make the released space available for BASIC arrays, I needed to move RAMTOP without using CLE…

    ... still reference the m/c stack at the old location, so ... variables are preserved, but the GOSUB stack still gets reset, as it ... be enhanced to preserve the GOSUB stack as well, but then it ...
    Battle Bunny Battle Bunny November 2011 Sinclair Basic
  • enhanced GOSUB/GOTO (in BASIC)Further to my previous post under "BREAK from GOSUB" here's the two ideas mentioned there put together. Note that to keep it quick it expects the DEF…

    ... previous post under "BREAK from GOSUB" here's the two ideas ... /> [/code]

    BREAK from GOSUB example
    [code]
    GO ... br /> POKE gs+2,1: RETURN
    ...3 NEXT b: IF ... ): POKE gs+2,gst:
    RETURN
    [/code]
    The demo ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • A Miscellany of Dangerous TipsHere's a selection of ideas for using some of the more obscure system variables which I've found handy on occasion. They can be very convenient if us…

    ... "stack", by resetting the hi-byte of DEFADD on return so ... item on machine stack to be used as error return", held in ... (ie. the statement preceding the return statement). (See, told you ... br /> * BREAK from GOSUB (May)
    * enhanced GOSUB/GOTO (in BASIC) (May ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • Compiler conventions for passing args/return valuesI've been mulling over this for a while, but I can't spot it covered anywhere. There are various methods for passing args and return values between …

    ... methods for passing args and return values between functions in the ... is something like sdcc for return args (although I might use ... rather than L for 8bit return values). For function args, ... and return value passing rather than covering who cleans up the stack ...
    u6c87 u6c87 September 2013 Development
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... In both instances the required return to BASIC with a decimal ... SEED)
    call $2d2b ;STACK_BC stack the number in BC
    return address
    RET
    [/ ... the top of the calculator stack (apart from the change ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • SpecBAS 0.900 ReleasedAgainst my better judgement, here's 0.900. It's got lots and lots new, but mostly the new shiny is the editor. You can indent your code, you can e…

    ... line.
    Fixed crash using RETURN at the top of an ... and TEXT could cause a stack overflow in some circumstances
    GOSUB can no longer crash the ...
    Dunny Dunny April 2017 Sinclair Basic
  • How to return to basic properly from ASMI am messing around with a fast stack copying routine. But I am getting "A: Invalid argument" error when I later return to basic. I know you h…

    ... messing around with a fast stack copying routine.
    But I ... argument" error when I later return to basic.

    I ... save all registers on the stack (including the shadow registers) before ... is used for the calculator stack or something? I'm not ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... address on the machine stack where the appropriate return data lies. Try ... 23613/4) to see what return data actually consists of.
    na_th_an na_th_an April 2005 Development
  • Best Speccy game written in BASICHopefully this has not been done before, but anyhoo. My vote is the sublime VIKING RAIDERS.

    ... GOTO instead of a RETURN; resulting in the GOSUB stack getting ever larger ...
    robert@fm robert@fm March 2006 Games
  • Announce: BASin r14b availableHere's the fix mentioned earlier for those of you that either are too lazy to update your OS (XP SP2 has been out aaaaages, Arjun!) or even junk that…

    ... not referenced by a GOTO/GOSUB, you're never going ...
    As we know, the RETURN statement will either (1) Divert ... SUB stack or (2) cause the program to terminate with "RETURN without ... />
    Therefore lines containing RETURN should never have other lines ...
    Digital Prawn Digital Prawn September 2008 Emulators
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... is recursive and/or stack based. Not sure Sinclair ... this with GO SUB and RETURN
    Stacking variables ... have 2 variables to stack (as I recall it ... (pointerdepth=1)
    You stack begin and end
    ... /> then you make the GOSUB call
    after returning ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Recursive 4-way floodfillHi guys) Shortly, I wanna find out whether there's a way to some object. Perhaps some of you have already encountered such an issue which is relativ…

    ... RETURN adres it wil be 3 bytes per depth (see how GOSUB ... -1

    However you stack per pixel, not per character ...
    Dr BEEP Dr BEEP January 2011 Sinclair Basic
  • Locating the GOSUB stackI was wondering if someone could explain how to locate the dividing line between the GOSUB stack and the machine stack. Looking at the GOSUB routine …

    ... between the GOSUB stack and the machine stack. Looking at the GOSUB routine in ... points to the machine stack. The GOSUB stack grows down from RAMTOP. ... you add something to the GOSUB stack you have to adjust the ... Take a look at the RETURN routine in the ROM to ...
    chev chev May 2011 Development
  • Locating the GOSUB stackI was wondering if someone could explain how to locate the dividing line between the GOSUB stack and the machine stack. Looking at the GOSUB routine …

    ... between the GOSUB stack and the machine stack. Looking at the GOSUB routine ... the stack clear after executing, thus can a RETURN be ... used on the stack.

    An empty stack ... will give a RETURN without GO SUB due ...
    Dr BEEP Dr BEEP May 2011 Development
<1234567…34>

Latest Posts

  • 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
  • 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
  • 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
gosub 361 1K
return 7K 10.6K
stack 7.2K 10.4K
pok 269 429

Related Threads

  • Locating the GOSUB stackI was wondering if someone could explain how to locate the dividing line between the GOSUB stack and the machine stack. Looking at the GOSUB routine …
  • Solution for overwritten stack in 48k SNA filesIt has been known for quite some time now that the 48k SNA file format has one serious fault, which is described in the file formats section on the W…
  • POK files. WTF?Can someone post the text of a POK file so I can see how it's laid out?
  • Attic Attac - return of the Speccy!I had gone to my hometown over the weekend to my grandma's place.<br /> <br /> And while investigating the attic, I found a trunk full of Speccy good…
  • Spectaculator & .pok filesI'm trying to use ZXPoker to create .pok files for games which I then wish to load into Spectaculator. As I understand it, provided the .pok file is …
  • Help with .POK filesI was playing Through the Trapdoor and found this game too hard and decided im going to cheat ;) Let me get this straight are TAP files the cracked v…
  • Return of the JEDY by M.K.CircuitsNow this IS rare, anyone have a copy?
  • .POK filesSorry if this has been asked a million times before, but where do i get .pok files from? As my emulators seem to die when i try typing pokes in, and …
  • Return of the JediI've just been playing, or at least trying to play return of the Jedi on mame and i'm struck by how inferior in terms of gameplay it is compared to t…
  • Spin & .pok filesAs the title suggests, will a future version of Spin be compatible with .pok files? I currently use Spectaculator &amp; Spin and am creating .pok fil…

Related Searches

  • stack
  • rst8 return to basic
  • return to basic
  • return to basic hl
  • bverstee stack zx spectrum
  • forums return
  • pentagram pok
  • calculator stack
  • stack pointer location
  • stack pointer location asm
  • change stack pointer location asm
  • gosub stack
  • passing parameters on the calculator stack
  • create pok file
  • pok creator
  • pok file format
  • pok mon
  • return without gosub
  • reset stack return address basic
  • gosub return stack poke

Copyright © 2024 World of Spectrum