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.220s
<1234567…34>
  • SUPER INPUTA couple days ago I searched for an "INPUT string" routine that I could use in Assembly programs and supported multiple lines, but I found none. Thus…

    ... l$ first. Put the string parameters on the calculator stack, point CH_ADD to the name and then ... to invoke an Assembly routine passing parameters through a BASIC variable. Can ... everything properly afterwards. Perhaps the solution above was already documented ...
    Einar Saukas Einar Saukas June 2012 Development
  • SUPER INPUTA couple days ago I searched for an "INPUT string" routine that I could use in Assembly programs and supported multiple lines, but I found none. Thus…

    ... l$ first. Put the string parameters on the calculator stack, point CH_ADD to the name and then ... $2AFF;LET: call EDIT_L
    The new value will be returned ...
    Battle Bunny Battle Bunny June 2012 Development
  • handy method for passing m/c parametersI knew that a single number or string parameter could be passed to a m/c routine with either: [b]LET a=b+USR address[/b] puts b on the calculator st…

    ... " on the calculator stack.

    Then I recently saw this similar method for passing ... two m/c parameters in a utility ... ; c on the calculator stack. Unfortunately it doesn't work for more than two parameters ...
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • logical operators and the calculator stackI was wondering if there was a utility which would provide the list of commands needed for the ROM calculator to evaluate a logical expression. For e…

    ... would provide the list of commands needed for the ROM calculator to evaluate ... I can work this out on paper it's a rather ... a logical expression and output the calculator commands, with an option to ... load the code bytes into memory from ...
    Battle Bunny Battle Bunny September 2010 Development
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... the parameters so that the called routine could check that the correct number were on the calculator stack ... />
    The advantage of using the "PRINT USR to calculator stack" method of passing parameters is ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... the parameters so that the called routine could check that the correct number were on the calculator stack ... />
    The advantage of using the "PRINT USR to calculator stack" method of passing parameters is ...
    Dunny Dunny December 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 …

    ... locate the dividing line between the GOSUB stack and the machine stack. Looking at the GOSUB ... routine in the ROM ... locate where to make entries on the GOSUB stack, but I can't ...
    Battle Bunny Battle Bunny May 2011 Development
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in var…

    ... like. The ASSIGN segment at the end could be used on its own ... . Just put the value on the calculator stack and point CH_ADD to the name and "call ... $24fb ;the SCANNING subroutine
    FETCHS: equ $2bf1 ;from calculator stack: AEDCB
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... as the "last value" on the calculator stack and manipulating the machine stack before the RET then the "STR ... is too slow. With four parameters the "USR md" bit takes about ... z];" method and taking the parameters off the calculator stack with SCANNING but then I ...
    Battle Bunny Battle Bunny September 2012 Development
  • can someone help with a rom routinei have been trying to draw a simple line with a the rom routine , but i just cant get it to work , so if anyone can give me an example in z80 that wo…

    ... happen to have it on my desk , which ... its parameters from the calculator stack in the same way as the circle routine ... the end of your line. On entry the DE registers hold the signs of the ... DRAW parameters which ...
    Steve(spt) Steve(spt) August 2009 Development
  • Z80 'EXX' ConfusionI was working on a little Z80 routine last evening, and, having run out of registers, resorted to sticking one of the values into a memory location a…

    ... instruction ever. When you're passing parameters on the stack, it means that you can ... pick the return address off, then POP all your other parameters, then ... finish off with EX (SP),HL to pick up the ...
    gasman gasman December 2009 Development
  • Z80 'EXX' ConfusionI was working on a little Z80 routine last evening, and, having run out of registers, resorted to sticking one of the values into a memory location a…

    ... instruction ever. When you're passing parameters on the stack, it means that you can ... pick the return address off, then POP all your other parameters, ... been a nice-to-have on the Speccy. I guess that' ... s still present on the ARM? Still not sure ...
    joefish joefish December 2009 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…

    ... the routine, it expects to read the co-ordinates from the top of the calculator stack ... , not from the BC ... ROM routines expect their parameters to be on the calculator stack, so the first thing they ...
    GReW GReW June 2010 Sinclair Basic
  • 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…

    ... the routine, it expects to read the co-ordinates from the top of the calculator stack ... , not from the BC ... ROM routines expect their parameters to be on the calculator stack, so the first thing they ...
    Dr BEEP Dr BEEP June 2010 Sinclair Basic
  • logical operators and the calculator stackI was wondering if there was a utility which would provide the list of commands needed for the ROM calculator to evaluate a logical expression. For e…

    ... what it was putting on the calculator stack, as the basis for the sort of utility ... expressions using any combination of parameters as a general case. That ... easier to use the calculator functions, but getting things on the stack in the right order ...
    Battle Bunny Battle Bunny September 2010 Development
  • Is there a ROM modification (48K) for load without typing LOAD""?The target is to play with 48K machines with keyboard broken, or an alternative solution for new clones like Superfo instead of making a new keyboard…

    ... with all commands the address STMT-RET is on the stack.

    ;; SAVE ... ; routine STK-FETCH fetches the filename
    ; parameters from the calculator stack.
    ; length of ...
    Dr BEEP Dr BEEP April 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…

    ... djnz renum_param ; loop for additional parameters

    org 0x39de< ... stack_num ; floating point number to calculator stack
    call fp_to_bc ; line ... br /> call stack_bc_1 ; put it on the calculator stack
    pop de ; unstack ...
    chev chev October 2013 Development
  • SCREEN$ bug fixI've been using the SCREEN$() function recently for reading data off the screen rather than taking up space with an array and I got fed up with the s…

    ... call $2dd5 ;FP_TO_A from calculator stack: A
    ld ... calculator stack entry

    ScrDone:;At this point the CHR$ parameters are the ... top entry
    ;on the calculator stack; ...
    Battle Bunny Battle Bunny November 2013 Sinclair Basic
  • Spectrum CP/MHello.. Just out of curiosity, has anyone actually used +3 CP/M for any practical purpose? I remember booting it up a couple of times years ago, jus…

    ... would sit between the z80 and the rest of the system. Sitting ... (ie a call to the nmi). The kernel could page in ... That stayed away from the normal RSTs other software might ... it also allowed the possibility of passing parameters on the stack by pushing them ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Sinclair Miscellaneous
  • 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…

    ... up in registers or on the calculator stack which can't ... numexp1, numexp2 & numexp3 on the calculator stack, which is fine if ... the stack, but if you're calling a ROM routine which takes parameters ... off the stack and doesn't ...
    Battle Bunny Battle Bunny January 2014 Sinclair Basic
  • What am I doing wrong here?[code]IF INKEY$=SCREEN$ (21,4) THEN LET SCORE=SCORE+1[/code] It's delivering a positive every time.

    ... :;At this point the CHR$ parameters are the top entry
    ;on the calculator stack; also A ... or 1)
    ;Reorganise the machine stack so that this string
    ;becomes the output from the function ...
    Battle Bunny Battle Bunny May 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…

    ... - RANDOMIZE will put it on the SEED system variable. It may ... option is valid. The best options on that case would be ... 4 because they take the least bytes on memory.

    parameters and results on the calculator stack and may have ...
    Zup Zup October 2016 Sinclair Basic
  • 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 …

    ... part of a BASIC program. The idea is that it can ... version of copy & paste. The two line numbers don't ... to exist; it saves from the first line >= start to ... the last line ="A"):
    DEF ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • 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…

    ... /> DEFW #2DA2 ; unstack BC from the calculator stack - all will become clear in ... br /> LD (addr),BC ; store the value at 'addr'
    RST ... put the addr(ess) of the target M/C routine on the calculator stack before ...
    The_Bert The_Bert September 2016 Sinclair Basic
  • Which would be fasterSay you want to use a variable value of 0 to 255 in a BASIC program, which way would be fastest? Say for arguments sake you wanted to use two variabl…

    ... another?

    1) Using the standard Spectrum BASIC variables, i ... />
    Normal numbers are usually the quickest way. BASIC stores them ... that can be plonked straight on the calculator stack. This does waste space though ...
    Matt_B Matt_B September 2006 Development
  • MOD calculator function?How do I for example, do LET a=(MOD n,9). I can do it a long winded way using cross-addition until the answer is a single digit. So 13763 MOD 9 wou…

    The calculator's n-mod-m ... on the calculator stack - the DIV value on top and the MOD value beneath it. The ZX81 used the ... results were required. Retaining the function was forward thinking and ... them in the system with no spare places on the keyboard, a ...
    Geoff Geoff January 2010 Sinclair Basic
  • 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…

    ... we cant set the parameters into the stack just to call the main line-draw ... parameters onto the calculator stack (note, this is not the same as the return-stack, accessed using the ... point in pushing them onto the calculator stack and then calling a routine ...
    GReW GReW June 2010 Sinclair Basic
  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt) where, at the time: mcworkspac…

    ... could hook into the calculator ROM routines as ... Call 0x2AB6, the routine STACK_AEDCB which places this value on the calculator stack
    - ... Call 0x2DA2, the routine FP_TO_BC which pops a value from the calculator stack ...
    gasman gasman July 2010 Sinclair Basic
  • Storing and displaying attributes...Hi Folks, I have a requirement to store and then redisplay a line of attributes from the screen. For example: 100 DIM a$(1,32) 110 LET line=10 120…

    ... floating point number on the calculator stack. The 14 is the precursor marker byte ... The 0 is the 1st of the 5 bytes of the FP number. The ... 41 is a ")", being the delimiter ... DEF FN definition, telling the FN variable search routine " ...
    Battle Bunny Battle Bunny June 2011 Sinclair Basic
  • Operator ANDHi I'm trying to write some very simple game in ZX Basic, but I guess I've forgot most of it because I can't understand why simple IF....THEN sequen…

    ... $ command that erroneously stores the result twice on the calculator stack. It's sorted in ... the GW03.rom. Try entering the commands ...
    Geoff Geoff July 2011 Sinclair Basic
<1234567…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 12:41AM
  • i am currently listening to........
    dmsmith on April 15
  • I am currently watching.....
    zx1 on April 15
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 15
  • Cooperative Games.
    harriusherbartio on April 15
  • Celebrity deaths...
    mel the bell on April 15
  • Minor British Sports that did become games on the ZX Spectrum
    dm_boozefreek on April 15
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 15
  • Inside No.9 favourite episodes
    Maroc's Other Projection on April 15
  • How we became brainwashed by social media
    Scottie_uk on April 15

HitBox

Word Docs Hits
passing 1.5K 1.6K
parameters 1.1K 1.5K
on 353.1K 619.7K
the 704.9K 3.1M
calculator 1K 1.5K
stack 7.2K 10.4K

Related Threads

  • 2-player games common on the Speccy, rare on the PC, keyboard as the cause?Hello everyone<br /> <br /> Does the Spectrum have an edge over semi-modern (from the 90's) computers, when it comes down to keyboard input speed? …
  • do all the games in the archive play on the windows ce version?I have a compaq 810 handheld pc. I downloaded the version of spectrum for MIPS handheld devices. Now I would like to download some games to play o…
  • ?The D80 World? - Probably the only archive of D80 images from ZX-Spectrum games on the netHello, speccy fans!<br /> On this page: [url="http://www.frgt10.wz.cz"]http://www.frgt10.wz.cz[/url] youll find a big collection of D80 files (images…
  • The Drawing board the zx81 spectrum ql were designed on for sale on abayWho on earth would want that ?<br /> <br /> [url]http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=250107354606&amp;ru=http%3A%2F%2Fsearch.eb…
  • Atic atac on the zxds on the ndswell thought id replay atic atac<br /> finally got it to work on an emu on the ds, it kept crashing even in 48k mode on the 128k speccy, finally work…
  • The 1980's The Good the Bad and the Ugly.Was listening to random 80's music on youtube today and could not help notice the video to Lionel Richie's Hello. Were a lecturer falls in love with …
  • "The Writing's on the wall", the new Bond theme tuneI've just listened to the new theme song for the next Bond film ("The Writing's on the Wall" for the movie "Spectre" due out later this year), and I …
  • Emulate ZX Spectrum on emulated Commodore 64 on emulated DOS on emulated Windows on LinuxTutorial on four levels of emulation:<br /> <br /> http://wiki.info.pl/emulator.htm<br /> <br /> [img]http://i.imgur.com/HDjLcCo.png[/img]
  • The Good, the Bad & the UglyWhich games, in your opinion, were better on the Commode 64 and Amsad CPC than the Speccy? And vice-versa? I ask because I believe that many Speccy g…
  • What are the differences between the +2 and the +2A ?I only acquired a +2 for the first time in my life a few months ago. It works fine. :) I even managed to tracke down nearly all the wargames by the s…

Related Searches

  • true stories found on the net
  • house on the tor
  • heavy on the magick
  • how do you post on the forum
  • heavy on the magick and knightmare
  • heavy on the magic
  • calculator stack
  • on the first day of christmas
  • detect a word string on the screen
  • is there a poke for gunfright on the marvin emulator
  • soulless on the c64
  • cracking the code on sinclair zx spectrum
  • heavy on the magic loading screen
  • heavy on the magi
  • on the road
  • how to program the keys on psp
  • simulate taps on the screen
  • heavy on the magick bugs
  • on the bench
  • print by directly drawing on the screen

Copyright © 2024 World of Spectrum