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.013s
<1234567…34>
  • 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…

    ... of 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
  • ROM Calculator TrigHello, These Christmas holidays I finally have time to devote myself a little to the speccy . I have a question about how the ROM calculator implem…

    ... a question about how the ROM calculator implements cosine.

    I ... same approximation used in spectrum ROM just a simpler procedure.
    rtunes rtunes December 2014 Development
  • 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?

    ROM code because, as in the ... /> I have Ian Logans Spectrum ROM Disassembly book but it deosnt ... explain how to use the calculator (to me anyway!)

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

    ... off the calc.stack, as the command ... /> RECLAIM2: equ $19e8 ;ROM routine RECLAIM_2
    SCANNING: ... ;ROM routine LOOK_VARS
    FETCHS: equ $2bf1 ;calculator stack to ... 23645

    ;stack function parameters passed from BASIC ...
    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…

    ... value" on the calculator stack and manipulating the machine stack before the RET ... about 24kT but the prior ROM call to the $27BD "Scanning ... taking the parameters off the calculator stack with SCANNING but then I ...
    Battle Bunny Battle Bunny September 2012 Development
  • 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…

    ... -ROM subroutines. I've put x, y and r onto the calculator stack ...
    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 ... routines in the 48-BASIC ROM, there is no need to ...
    The_Bert The_Bert September 2016 Sinclair Basic
  • 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:

    ... the machine stack.
    An unused routine in the ROM is used ... that subtracts the machine stack from the ... caters for any section of ROM and allows for maskable and ... 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
  • 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…

    ... ; ROM routine to put value of BC on top of the calculator stack ...
    LD A,note
    CALL 2D28 ; ROM routine ... to put value of A on top of the calculator stack ...
    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…

    ... ; ROM routine to put value of BC on top of the calculator stack ...
    LD A,note
    CALL 2D28 ; ROM routine ... to put value of A on top of the calculator stack ...
    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…

    ... ; ROM routine to put value of BC on top of the calculator stack ...
    RST 28 ; use the floating point calculator
    ROM routine to put value of A on top of the calculator stack ...
    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 ... correctly without the original ROM in place so I ... seriously considering a two ROM approach to any future ... it if the original ROM is present when any ... called from the old ROM. The only thing necessary ...
    Dunny Dunny January 2006 Sinclair Basic
  • 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 ... for 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…

    ... /> "Rubber Numbers in the Spectrum ROM" - a very helpful article.
    calculator stack then just stack values directly from registers ... /> CALL $2D28 ; STACK-A
    RST 28H ; enter calculator
    DEFB $28 ...
    Geoff Geoff July 2006 Development
  • My emulator doesn't take "commands"Hi This is probably a question that is very hard to answer, but perhaps some of you have/had the same problem. In my own emulator (that I have built)…

    ... Needle;178639]Is your emulated ROM write-protected? tbh, I can ... my head whether the Spectrum ROM destroys itself otherwise.[/QUOTE]

    The ROM does attempt some writes to ... destacking a value from the calculator stack.
    Philip Kendall Philip Kendall March 2007 Emulators
  • Interface One - New FunctionalityAs you may (or may not) be aware the Interface One is a pretty powerful piece of kit. One of it's greatest features is being able to easily extended …

    ... ;16K ROM, stacks BC onto calculator
    let equ 2AFFh ;16K ROM, 'LET ...
    cheat equ 1731h ;16K ROM code that does C
    RST#08 RST#08 July 2009 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…

    ... 9146 (23BAh)

    The ROM line-drawing routine proper starts ... takes its parameters from the calculator stack in the same way as ... the part which uses the calculator stack. The routine takes its start ...
    Steve(spt) Steve(spt) August 2009 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 function ... leaves two results on the calculator stack - the DIV value on top ... .

    As an experimental ROM, modify OR to do the ...
    Geoff Geoff January 2010 Sinclair Basic
  • Minor Update to Gasman's Midi2BEEPDon't know whether this is worthy an announcement, but for those of you who enjoyed Gasman's midi2BEEP utility, a new variant has been made called mi…

    ... , I find the whole rom calculation routines something of a ... add arbitary values to the calculator stack, so in order to ... stack, but actually a command code to tell the rom ... calc routines in the rom are sort of a ... beep routine in the rom already seems to make ...
    kgmcneil kgmcneil May 2010 Announcements
  • 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…

    ... from the top of the calculator stack, not from the BC,DE ... ;call LINE-DRAW (skipping initial stack instructions)
    exx
    pop ... of ROM routines expect their parameters to be on the calculator stack, so ... useful to skip over these stack instructions.
    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…

    ... from the top of the calculator stack, not from the BC ... ;call LINE-DRAW (skipping initial stack instructions)
    exx
    ... of ROM routines expect their parameters to be on the calculator stack, ... useful to skip over these stack instructions.[/QUOTE]

    Dr BEEP Dr BEEP 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…

    ... , you could hook into the calculator ROM routines as follows:
    < ... places this value on the calculator stack
    - Call 0x2DA2, the ... pops a value from the calculator stack and returns it in BC ... direct route with less register/stack juggling, but this is ...
    gasman gasman July 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…

    ... was a routine in the ROM to evaluate expressions which might ... it must be using the calculator functions to evaluate expressions, ... it was putting on the calculator stack, as the basis for the ... use the calculator functions, but getting things on the stack in the ...
    Battle Bunny Battle Bunny September 2010 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…

    ... A$ and C$ are at calculator stack, ready to be used as ... used in the ZX-PC ROM:

    PRINT USR 14500 ...
    Dr BEEP Dr BEEP September 2010 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…

    ... A$ and C$ are at calculator stack, ready to be used as ... a REM statement.

    ;ROM routines needed
    SCANNING equ ... numbers are now in the calculator stack.

    call STK_TO_BC ;So ...
    mcleod_ideafix mcleod_ideafix October 2010 Development
  • Fast LogsAnyone know of a fast ln function I can steal? The ROM function seems to be hideously slow. I wrote a look-up table dirty and less accurate sin func…

    ... calculator stack stuff; which is what you'd expect from a basic ROM ... if the SE basic ROM uses the calculator better than the original ... sinclair rom, then that's ... also implement SQR as a calculator based routine using the ...
    Gedlion Gedlion March 2011 Development
  • 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…

    ... on the calculator stack. It's sorted in the GW03.rom. Try entering ...
    Geoff Geoff July 2011 Sinclair Basic
  • List of existing games that needs a port to zx spectrumPlease post here the games that exist in other platform(s) but does not exist in speccy. Please keep in mind this is not a to-do list, so don't hesti…

    ... would be to modify the ROM and intercept calls to the ... />
    Except that trapping the ROM routines for floating point is ... , precisely because the Sinclair BASIC calculator stack just isn't fast enough ...
    AndyC AndyC July 2011 New game ideas
  • List of existing games that needs a port to zx spectrumPlease post here the games that exist in other platform(s) but does not exist in speccy. Please keep in mind this is not a to-do list, so don't hesti…

    ... />
    Except that trapping the ROM routines for floating point is ... , precisely because the Sinclair BASIC calculator stack just isn't fast enough ...
    Rebelstar Rebelstar July 2011 New game ideas
<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
rom 15.6K 29.7K
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…
  • using the ROM's FP calculatorIs it possible to use the ROM's FP calculator to evaluate any FP expression in a single sequence of commands without breaking out to stack some other…
  • ROM Calculator TrigHello,<br /> <br /> These Christmas holidays I finally have time to devote myself a little to the speccy .<br /> <br /> I have a question about how t…
  • Searching for correct Betadisk 48k TR-DOS v4.12 ROM (Save ROM via TRDOS-Prompt to Disk)Hi,<br /> <br /> I have two ROM-Files which should be read out from an original Betadisk 48 Interface TRDOS v4.12 (ROM-Size 8k).<br /> But when I …
  • Is it possible to run a single BASIC line via a ROM CALL of the Standard ZX 48k ROM?On: https://cygnus.speccy.cz/popis_trdos-assembler.php<br /> <br /> I found the following code:<br /> [code]<br /> CHADD equ 23645 ; Location of…
  • New WoS CD-ROM Project[url="http://neuro.zensoft.net/woscd/"]http://neuro.zensoft.net/woscd/[/url]<br /> <br /> I'm about to embark on an ambitious project ... to create n…
  • Emulators and ROM'sHi - This is my first post here, although I have been visiting WoS for ages....<br /> I have been on quite a few multi-platform sites that offer down…
  • ROM cartridgeI forgot, I'm also after a cardridge to fit into my RAM Turbo interface, mainly to see if it works really. An ultimate one would be nice, but would …
  • Spectrum ROMI downloaded some text files (they are actually the spectrum ROM files but in text) which can be compiled using TASM (or soemthing). I read on WOS th…

Related Searches

  • stack
  • betadisk rom
  • betadisk rom line
  • alternative rom
  • rom
  • rom defekt
  • rom substitute
  • rom spectrum 128k 2
  • 2a new rom
  • forth rom
  • 128k rom
  • rom 128k pentagon
  • calculator stack
  • passing parameters on the calculator stack
  • rom calculator stack
  • stack calculator
  • stack calculator draw
  • stack calculator radians
  • stack calculator negative numbers
  • calculator routine discard unused rom

Copyright © 2024 World of Spectrum