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.008s
<1234567…34>
  • Need a pointer to using the spectrum calculator from MCHi all, Can anyone point me to a good resource on using the spectrum calculator stack from machine code? I need to work out the number of seconds f…

    ... resource on using the spectrum calculator stack from machine code?

    calculator (to me anyway!)

    dickydodds dickydodds February 2009 Development
  • 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…

    ... commands needed for the ROM calculator to evaluate a logical expression ... logical expression and output the calculator commands, with an option to ...
    Battle Bunny Battle Bunny September 2010 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 …

    Here'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 be combined or merged into other programs. It's sort of a slow version of copy & paste. The two line ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... ;to calculator stack: A
    FPTOBC: equ $2da2 ;from calculator stack: BC< ... br /> FPTOA: equ $2dd5 ;from calculator stack: A< ... ,
    call EX1NUM ;stack 2nd variable
    call ...
    Battle Bunny Battle Bunny October 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 …

    ... $2bf1 ;from calculator stack: AEDCB
    FPTOBC: equ $2da2 ;from calculator stack: BC
    FPTOA: equ $2dd5 ;from calculator stack: A
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • 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…

    ... put the value on the calculator stack and point CH_ADD to the ...
    FETCHS: equ $2bf1 ;from calculator stack: AEDCB
    CH_ADD: equ 23645 ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Undefine functionHere's a routine to selectively remove variables from the VARS area and reclaim the space. This can be done partially from BASIC already by assigning…

    ... was fetched off the calc.stack, as the command line would ... LOOK_VARS
    FETCHS: equ $2bf1 ;calculator stack to AEDCB
    E_LINE: equ ... /> CH_ADD: equ 23645

    ;stack function parameters passed from BASIC ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…

    ... from the top of the calculator stack. I've been trying to ... code to adjust the machine stack and then a call to ... the string details onto the calculator stack before they can be taken ...
    Battle Bunny Battle Bunny April 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…

    ... value" on the calculator stack and manipulating the machine stack before the RET ... taking the parameters off the calculator stack with SCANNING but then I ...
    Battle Bunny Battle Bunny September 2012 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... hand", rather than using the calculator, it would be quicker, but ... .5,b,1,a2 for calculator stack

    ld c,(ix ... .5,b,1,a2 to calculator stack
    ld (23653),de ;STKEND ...
    Battle Bunny Battle Bunny November 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…

    ... ]
    puts b on the calculator stack; or
    [b]LET a ... pointer to "abc" on the calculator stack.

    Then I recently ... b & c on the calculator stack. Unfortunately it doesn't work ... ; c & d on the calculator stack, and it can be done ...
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • CIRCLEHi, I'd like to draw a circle x,y,r using the BASIC-ROM subroutines. I've put x, y and r onto the calculator stack and used CALL #232D and RET. I g…

    ... , y and r onto the calculator stack and used CALL #232D and ...
    HZJ HZJ March 2014 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…

    ... #2DA2 ; unstack BC from the calculator stack - all will become clear in ... M/C routine on the calculator stack before calling my 'interface routine ...
    The_Bert The_Bert September 2016 Sinclair Basic
  • 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…

    ... 4 of the "Machine Code Calculator" series in ZX Computing Jul ... ,(SEED)
    call $2d2b ;STACK_BC stack the number in BC
    calculator stack (apart from the change to ...
    Battle Bunny Battle Bunny January 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 ... save all registers on the stack (including the shadow registers) before ... registers is used for the calculator stack or something? I'm not ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • BASin Release 9a availableJust a quick not to say that an updated (ie, bug fixed) BASin is available. A list of what's new for release 9: Fixed a bug in the line tokeniser th…

    ... Map. Just watching the machine stack busy with the Interrupt Service ... revealing.
    First the machine stack a blur with priorities, saved ... recursion.
    Then above, the calculator stack with the results of TAN ...
    Geoff Geoff September 2003 Development
  • Program sizeI am typing a basic program into a ZX and I need to find out exactly how much memory it is using. Is there a way to calculate this? :confused:

    ... free memory from the machine stack.
    An unused routine in ... used that subtracts the machine stack from the start of free ... the possibility of overwriting the calculator stack or the text you typed ...
    Geoff Geoff August 2004 Sinclair Miscellaneous
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    ... /> CALL _ROM_BC_TO_STACK ; Put divisor in calculator stack
    LD HL, (_RANDOM_SEED)
    horace horace September 2004 Development
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    You are right, Geoff!!! :)

    And I've found another little bug: I must put dividend before divisor in the calculator stack.

    Thanks again. Now it works! :D
    horace horace September 2004 Development
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... Memory Map window, highlighting the calculator stack. From there you can watch ...
    Dunny Dunny April 2005 Sinclair Basic
  • Competition: Sadistick routine on Spectrum ROMMy vote goes to BEEPER at #03B5 Let's ear you pick! :) And a great BOHHHHHHHHHHHHH to Dr Ian Logan & Dr Frank O'Hara for their description about the…

    ... BC on top of the calculator stack
    LD A,note
    calculator stack
    CALL 03F8 ; aforementioned entry ...
    gasman gasman May 2005 Development
  • Competition: Sadistick routine on Spectrum ROMMy vote goes to BEEPER at #03B5 Let's ear you pick! :) And a great BOHHHHHHHHHHHHH to Dr Ian Logan & Dr Frank O'Hara for their description about the…

    ... BC on top of the calculator stack
    LD A,note
    calculator stack
    CALL 03F8 ; aforementioned entry ...
    AE.Vasconcelos AE.Vasconcelos May 2005 Development
  • Competition: Sadistick routine on Spectrum ROMMy vote goes to BEEPER at #03B5 Let's ear you pick! :) And a great BOHHHHHHHHHHHHH to Dr Ian Logan & Dr Frank O'Hara for their description about the…

    ... BC on top of the calculator stack
    RST 28 ; use the ... floating point calculator
    DEFB A4 ; stk-ten ... A on top of the calculator stack
    CALL 03F8 ; aforementioned entry ...
    Philip Kendall Philip Kendall May 2005 Development
  • Mess around with basicIf you have a game that was written in basic, e.g Football Manager, how do you look at the code that was used? thanks

    ... of pushing values to the calculator stack etc, but at the end ...
    Dunny Dunny January 2006 Sinclair Basic
  • Homing missile routine - help neededI am attempting to write a routine which will allow a missile to home in on a player. Basically the sort of thing you see in most shoot-em-up games. …

    ... ' theorem. Unfortunately it uses the calculator stack which is a little slow ...
    jonathan jonathan March 2006 Development
  • 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: PRINT USR xxxxx, arg1, arg2:…

    ... 's possible to use the calculator stack to pass values into your ... calculator, and this includes how to pass in values via the stack ... something like "zx basic rom calculator" may do it - I found ...
    icabod icabod April 2006 Development
  • Calling ROM routinesFirstly, sorry if this is the wrong forum to post this in, but I wasn?t quite sure under which heading is best fitted. I?m trying to figure out how…

    ... to experiment with the calculator stack then just stack values directly from registers ... /> CALL $2D28 ; STACK-A
    RST 28H ; enter calculator
    DEFB $28 ... result and remove from stack
    RET ; empty stack

    ...
    Geoff Geoff July 2006 Development
  • 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…

    ... be plonked straight on the calculator stack. This does waste space though ...
    Matt_B Matt_B September 2006 Development
  • 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…

    ... 5-byte address off the calculator stack and then checks free memory ...
    Geoff Geoff September 2006 Development
  • Speed of variables vs. POKE/PEEKGreetings, I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone already knew …

    ... of values onto the Spectrum Calculator comprises of the physical(?) pushing ... of 5 bytes onto the calculator stack. This will be push a ...
    BloodBaz BloodBaz March 2007 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
calculator 1K 1.5K
stack 7.2K 10.4K

Related Threads

  • 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…
  • 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…
  • Game from an ancient old calculatorOne for the mathematicians, this (possibly).<br /> <br /> Bear with me on this one...<br /> <br /> Many, many years ago, when I was a nipper, I had a…
  • Sinclair Calculator TV AdvertI recently come across this old Sinclair advert on a tape I got sent, not sure if it covers this site but it's very interesting to see anyway!<br /> …
  • the exploding calculator?!hi <br /> i am trying to find out a little bit more about the sinclair pocket calculator and a story i heard which involved one exploding in the pock…
  • Sinclair Cambridge Scientific CalculatorHi,<br /> <br /> Been having a clear out and I found this neat little calculator to sell. Thought I would let you guys know about it.<br /> <br /> [U…
  • SPECTRUM Amplifier and Calculator for saleI am selling on Ebay a Sinclair President Calculator and a Sinclair Project Sixty amplifier if anyone is interested.<br /> <br /> The Links are below…
  • Sinclair Wrist CalculatorAny one got one of these gizmos?<br /> <br /> [url]http://www.youandyesterday.co.uk/articles/Image:Sinclairwristcalc.jpg[/url]
  • Stack Up - level 13: anyone want a challenge?okay I swear this level is not humanly possible. if anyone doesn't know Stack-Up it's a simple Tetris type game - match 3 blocks of the same colour i…
  • Scrolly StackDoes this game have an ending? I have been playing for more than 15 minutes but it seems it doesnt have...

Related Searches

  • stack
  • bverstee stack zx spectrum
  • stack pointer location
  • stack pointer location asm
  • change stack pointer location asm
  • gosub stack
  • passing parameters on the calculator stack
  • move stack
  • stack up
  • stack sprite
  • stack change
  • screen stack
  • stack size
  • spectrum calculator
  • rom calculator stack extravagant
  • rom calculator stack
  • stack calculator
  • stack calculator draw
  • stack calculator radians
  • stack calculator negative numbers

Copyright © 2024 World of Spectrum