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.005s
<1234567…34>
  • Proportional Print Routine...Hi Folks, Does anyone know of a good proportional printing routine for the ZX Spectrum? Ideally I am looking for something that prints with charact…

    ... /> ret ;

    err5:
    rst 0x08 ;
    defb 0x04 ;
    calculate the address
    ld a ...
    chev chev May 2011 Sinclair Basic
  • Move objectHi again, I am using paper colors to represent game objects. I have a "paddle" that is 4 pixels wide. I save its position as a 2 byte word in memory…

    ... a register and easily calculate the real address ... control code

    RST 16 ; fast call
    ... control code

    RST 16 ; fast call
    ... white\\

    RST 16 ; fast call
    ... AT synbol

    RST 16 ; fast call
    < ...
    ooze48k ooze48k July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... br /> sbc hl, de ; calculate offset between start of channels ... hl), b ; reset AT_FLAG
    rst 8 ; error "B Integer out ... now DE = %010RR000rrrCCCCC

    ; Calculate location of the character font ...
    Einar Saukas Einar Saukas July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... br /> sbc hl, de ; calculate offset between start of channels ... hl), b ; reset AT_FLAG
    rst 8 ; error "B Integer out ... now DE = %010RR000rrrCCCCC

    ; Calculate location of the character font ...
    Einar Saukas Einar Saukas July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... 1
    sbc hl, de ; calculate offset between start of channels ... ), b ; reset AT_FLAG
    rst 8 ; error "B Integer out ... now DE = %010RR000rrrCCCCC

    ; Calculate location of the character font ...
    Einar Saukas Einar Saukas August 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... 1
    sbc hl, de ; calculate offset between start of channels ... ), b ; reset AT_FLAG
    rst 8 ; error "B Integer out ... now DE = %010RR000rrrCCCCC

    ; Calculate location of the character font ...
    Einar Saukas Einar Saukas August 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... 1
    sbc hl, de ; calculate offset between start of channels ... ), b ; reset AT_FLAG
    rst 8 ; error "B Integer out ... now DE = %010RR000rrrCCCCC

    ; Calculate location of the character font ...
    Einar Saukas Einar Saukas August 2011 Development
  • Calculating percentage..or even calculating percentage. Maths and asm I find verryyy tricky. Can anyone suggest the easiest/best way to calculate a percentage from two 1…

    A standalone routine to calculate integer percentages.
    It's ... /> ;Exit with C holding the Percentage value (0-100)
    ;
    Turkwel Turkwel December 2011 Development
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... /> ret ;

    err5:
    rst 8 ;
    defb 4 ;
    calculate the address
    ld a ...
    chev chev August 2012 Development
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... LD DE,(chans) ; Calculate the offset to the channel ... />
    ;*********************************************************************************
    ; the RST $10 replacement routine
    ; accepts ... the printroutine to replace RST 10/be used in ...
    uglifruit uglifruit August 2012 Development
  • BIFROST* Advanced Programming - part 6The purpose of this demo is somewhat different from previous ones. Instead of teaching a new technique, the main goal here is to demonstrate how much…

    ... [*]Frame 1: Check keys, erase, calculate new position and redraw player ... /> [*]Frame 2: Erase, calculate new position and redraw enemy ... Frame 1: Check keys, erase, calculate new position and redraw player ... that BIFROST* preserves calls to RST #38 by default. It ...
    Einar Saukas Einar Saukas September 2012 Development
  • Graph Plothi! please, help with code: [PHP]For x=-100 To 100 For y=-100 To 100 If (x/2-25)*(x/2-25)+(y-50)*(y-50)<200 Or (x/2+25)*(x/2+25)+(y-50)*(y-50)<200 th…

    Disentangling your code looked too much trouble, so I wrote a quicker BASIC version then an assembler version of that (although that's rather slow even so). It could be written to run more quickly by not using the FP calculator but I expect that it would ...
    Battle Bunny Battle Bunny November 2012 Development
  • Graph Plothi! please, help with code: [PHP]For x=-100 To 100 For y=-100 To 100 If (x/2-25)*(x/2-25)+(y-50)*(y-50)<200 Or (x/2+25)*(x/2+25)+(y-50)*(y-50)<200 th…

    Here's a much quicker version; the BASIC now only takes 50 seconds, and the assembler is reduced from 318 secs to 17 secs. There's still scope for further improvements. The significant change is that it only executes the inner Y loop with valid plot points ...
    Battle Bunny Battle Bunny November 2012 Development
  • pathfindingworking on pathfinding in the game. here is Russian description of Lee's algorithm: [url]http://algolist.manual.ru/games/wavealg.php[/url] "if-then"…

    ... />
    The entire code to calculate queue size (or check if ... A* requires processing a significant percentage of the map (such as ...
    Einar Saukas Einar Saukas May 2013 Development
  • pathfindingworking on pathfinding in the game. here is Russian description of Lee's algorithm: [url]http://algolist.manual.ru/games/wavealg.php[/url] "if-then"…

    ... *, it's also required to calculate and add estimated distance to ... make it cover a large percentage of the map anyway. There ... every iteration will need to calculate estimated distance to all goals ...
    Einar Saukas Einar Saukas May 2013 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…

    ... /> org 0x0007
    rom0_entry:
    rst start ; jump back to start ... 0x0028
    calc:
    jp calculate ; immediate jump

    ; THE ...
    chev chev October 2013 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…

    ... to save new array?
    rst error ; error
    ... get first number
    rst get_char ; get next character
    report_r:
    rst error ; report
    defb ... /> ld b, (ix + 16) ; calculate
    ld c, (ix + 15 ...
    chev chev October 2013 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…

    ... ; stack counter
    rst get_char ; get current character ... 0x2a20
    report_3:
    rst error ; else
    ... br /> call get_hl_x_de ; calculate number of bytes
    ... ; stack length
    rst get_char ; get current character ...
    chev chev October 2013 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…

    ...

    ; THE 'CALCULATE' SUBROUTINE
    org 0x33d4
    calculate:
    call stk_pntrs ; HL ... br /> add hl, de ; calculate address
    ld e, ( ... org 0x3535
    report_a:
    rst error ; error
    defb ...
    chev chev October 2013 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…

    ... org 0x3621
    report_bd:
    rst error ; error
    defb Integer_out_of_range ... cursor address
    and a ; calculate
    sbc hl, de ; length ... org 0x3749
    report_6b:
    rst error ; error
    defb Number_too_large ...
    chev chev October 2013 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…

    ... br /> add hl, bc ; calculate offset
    ld c, (hl ... ; jump if not
    rst error ; else
    defb ... org 0x1bec
    report_n:
    rst error ; else
    defb ... org 0x1c2e
    report_2:
    rst error ; else
    defb ...
    chev chev October 2013 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…

    ... pointer
    add hl, bc ; calculate end of line address

    report_b2:
    rst error ; else
    defb Integer_out_of_range ... hl ; stack error address
    rst error ; report
    defb RETURN_without_GOSUB ...
    chev chev October 2013 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…

    ... org 0x39d2
    renum_param:
    rst get_char ; get next character
    renum_error:
    rst error ; report
    defb Parameter_error ... ; get increment
    call hl_equ_hl_x_de ; calculate offset
    ld de, (mem_0_2 ...
    chev chev October 2013 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…

    ... preserve HL and BC
    rst print_a ; print one character< ... column
    call cl_addr ; calculate address
    ld a, ...
    chev chev November 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... DE,16384 : EXX then replace RST $10 with:
    [code]
    djnz PRINTAB
    pop de ;calculate next position
    inc e ...
    Battle Bunny Battle Bunny December 2013 Development
  • Double height text...<p>Is here any good routines for printing a font double height?</p><p>I've concocted this ridiculous routine but I'm sure it can be done much better.…

    Here's something which I converted from a BASIC routine in ZX Computing. The smallint conversion can be discarded if row,col are not derived from some calculation which might render a floating point result. (I can't get the code block to print fixed width, ...
    Battle Bunny Battle Bunny June 2015 Development
  • Celebrate 20 years of windows 95with the start sound slowed down 4000% lol http://www.factmag.com/2015/08/25/windows-95-startup-sound-slowed-down-4000-percent/

    ... soon as you try to calculate anything based on "100% slower ... soon as they see a percentage sign they just engage idiot ...
    guesser guesser August 2015 Chit chat
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... U unplotted pixels #
    rst $28 ;FP_CALC calculate R mod U
    Battle Bunny Battle Bunny April 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…

    ... set memory block to write RST command to the address ... reached the breakpoint. The breakpoint (RST command) would cause passing control ... use set block to replace RST command with previous contents of ... a watch) the PC would calculate symbol address and call get ...
    tstih tstih November 2016 Development
<1234567…34>

Latest Posts

  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • i am currently listening to........
    saddestmoon on 10:58AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Frankie's ZX Spectrum Digouts
    Zup on April 8
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8
  • 1992 Spectrum Software
    harriusherbartio on April 7
  • Celebrity deaths...
    mel the bell on April 7

HitBox

Word Docs Hits
calculate 1.1K 1.4K
percentage 759 825
rst 1.2K 2.5K

Related Threads

  • RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM :<br /> <br /> ;print a long string "help me"<br /> start .org 32000<br…
  • Calculate screenaddressWho knows where the topic about the fastest screenaddressroutine is? I can't find it in a search..<br /> <br /> The fastest routine was to load a lar…
  • Help required to calculate screen addressesDoes anyone have some code that calculates the screen address one pixel below the given address ? Is it best to use a lookup table ? Any examples of …
  • http://zx.pk.ru RST#38 (Russian Spectrum Talks)[url="http://zx.pk.ru"]http://zx.pk.ru[/url] is a biggest Russian forum for Speccy (has 750 Registered Users &amp; 30 000 Messages). It's live discus…
  • Rst #38This, as far as I know, is the ROM procedure that does the keyboard check. (and, at the same time, is what's being executed by interrupt in IM 1 mode…
  • question about RST 10hhow do you set the position of the text when using 'RST 10h' to print to screen?
  • Help with percentageCant belive im asking this but i cannot remember how do to this :oops: <br /> <br /> [code]<br /> 10 LET P=1000<br /> 20 PRINT P<br /> 30 PAUSE 25<br…
  • Excel - Deducting percentage - where am I going wrong?Howdy,<br /> The help isn't much use, so I'm asking more knowledgable people. I'm also asking here ;)<br /> This is for a spreadsheet assignment on t…
  • +3 BASIC and RST 8I've been working on adding commands to the BASIC interpreter, in a similar style to how Interface 1 does it (catch the RST 8 error trap). This works…

Related Searches

  • calculating percentage
  • calculate an average
  • rst 08
  • quote rst
  • rst 16
  • rst 16 registers
  • rst 16 print routine
  • esxdos rst commands
  • rst
  • rst bus
  • rst bus reset
  • rst bus reset rom
  • rst rom
  • rst rom bus
  • rst 16 newline
  • rst 8 hook
  • rst 16 slow
  • rst 16 fast
  • calculate percentage z80
  • z80 calculate percentage

Copyright © 2024 World of Spectrum