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>
  • Leading Zeroes on a Score in BASICI'm trying to print the score with leading zeroes such that it's always 6 characters wide, i.e.: 000010, 000150, 006100 etc. I quickly knocked thi…

    I'm trying to print the score with leading zeroes such that it's ... GO SUB 6600
    30 PRINT AT 0,0;S$
    MykeP MykeP July 2016 Sinclair Basic
  • "ZX80 Brain" RPN CalculatorIt is at times like [url=https://www.worldofspectrum.org/forums/discussion/54176/depression]when threads such as this are posted[/url] that I get the…

    ... beyond 99,999,999
    - leading zeroes aren't entered

    PRINT something on the stack, and ...
    The Mighty Dopethrone The Mighty Dopethrone March 2017 Sinclair Basic
  • Encode two positive int numbers into one?Hi guys) Recently I've been trying to simulate short lists in Basic, but the point is that using limited values, say, 0-99 or 0-999, I remembered ho…

    ... =a*1000+b
    20 PRINT a,b,big
    30 ... *INT (big/1000)
    40 PRINT a2,b2

    60 ... $ (a*1000+b)
    70 PRINT a,b,n$
    80 ... a$+1 TO )
    90 PRINT a$,b$
    [/code]
    leading zeroes in the string case?
    The_Bert The_Bert June 2012 Sinclair Basic
  • Encode two positive int numbers into one?Hi guys) Recently I've been trying to simulate short lists in Basic, but the point is that using limited values, say, 0-99 or 0-999, I remembered ho…

    ... less than 3 digits with leading zeroes in the string case?[/QUOTE ... =a*1000+b
    20 PRINT a,b,big
    30 ... *INT (big/1000)
    40 PRINT a2,b2

    60 ... n=LEN n$
    70 PRINT a,b,n$
    80 ... $(n-2 TO )
    90 PRINT a$,b$
    [/code]
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ...
    [quote]
    You can print strings to the screen on ... the background, but can you print numbers?[/QUOTE]

    ... you probably want to print scores with leading zeroes, which would require ... a string that will do leading zeroes. Or you can look ...
    Alcoholics Anonymous Alcoholics Anonymous 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…

    ... the time. I simplified the print loop anyway following PS's ... z,Next1 ;skip leading zeroes
    ld d,$ff ;print other zeroes
    add ... ;if printed LH-digit, then print RH-digit
    inc hl ...
    Battle Bunny Battle Bunny December 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…

    ... Next1 ;skip leading zeroes
    ld d,$ff ;print other zeroes
    ... SEARCH: cp (hl) ;skip leading zeroes
    jr nz, FOUND

    ; print digits
    PRINT: ld a, e ;A ...
    Einar Saukas Einar Saukas December 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…

    ... a different version of the print segment, which uses slightly less ... byte
    cp (hl) ;skip leading zeroes
    jr c,BCD2ALH ;if ... a,e
    rst $10 ;print a single zero
    jr ...
    Battle Bunny Battle Bunny December 2013 Development
  • Routine for handling large scores?[FONT=Calibri][SIZE=3]I want to store various numbers for scores and levels etc. Some of these can be very large so will need to be held in multiple …

    ... of a lot easier to print on the screen. I store ... blank space, instead of printing leading zeroes.

    Then I have ... buffer (which should mostly be zeroes - typically you only set one ...
    joefish joefish March 2014 Development
  • New Game - Cap'n Rescue: ReprisalHello, I'd just like to announce my new game Cap'n Rescue: Reprisal for the ZX Spectrum is almost complete. This is the third game in the series…

    ... amount of ammo - trouble with leading zeroes is causing me problems when ...
    LoadingScreech LoadingScreech July 2016 Brand new software
  • 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…

    ... it's very easy to print it. It's easy because ... b,0 ;Flag to not print leading zeros
    ld hl,BCD ...
    mcleod_ideafix mcleod_ideafix November 2013 Development
  • Math Quiz - MultiplicationThe topic is fast multiplication routines, from 8x8 to 32x32 and all points in between. These functions sit underneath floating point libraries, gen…

    ... d,a

    ; eliminate leading zero bits

    loop_00 ... is 10 cycles per extra leading 0 bit of the ... has at least two more leading zeroes than the larger one. That ... c,h

    ; eliminate leading zero bits

    loop_00 ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • print at line 22 and 23I have a faint recollection of POKES to allow print at 22,x and 23,x, anyone know what they are? (rather than using the print #0 #1 stuff..)

    My way to print at line 23:

    [code]

    10 POKE 23659,0 : IF Y
    Dr BEEP Dr BEEP October 2005 Sinclair Basic
  • yeah - unix for zx spectrumI started a new hobby project. An operating system for ZX Spectrum. A unix clone. Talked to my friend about it and he asked me what if after I'm done…

    ... loop iterations by looking for leading zeroes. It also unrolls many loops ...
    Alcoholics Anonymous Alcoholics Anonymous January 2011 Development
  • Development choices, help!As a small part-time project I would like to convert my daily programming work (a workflow/bpel engine) to the Spectrum, purely for fun. I would like…

    ... );

    ctz, count trailing zeroes

    unsigned int igcd ... final version (things like count leading zeroes, parity, etc).

    Regarding ...
    Alcoholics Anonymous Alcoholics Anonymous June 2011 Development
  • Print TextHow do i print text on the bottom left row(memory location in attribute 23295) of the screen in assembly? I understand the parts better on paper and …

    ... you don't want to print leading zeros then check the number ... you've converted it and print from decode_string+1 , decode_string+2 ...
    Turkwel Turkwel June 2011 Development
  • Some questions for us big-brains to ponder...1) In this week's Micro Mart (well, tomorrow it will be last weeks, but I only got around to reading it today) it says that it's untrue that PC compo…

    ... you solve by maintaining the leading zeroes.

    If it's ...
    guesser guesser December 2011 Chit chat
  • Suggestion for adding CPC version links to CPC-Power...Well, as the title says, [URL="http://www.cpc-power.com/"]CPC-Power[/URL] is the equivalent to Infoseek in the CPC world, it's a serious project runn…

    ... must be 7 digits, with leading zeroes where necessary.
    Infoseek now ...
    mheide mheide June 2012 Infoseek database
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... buffer
    ; carry = write leading zeroes
    ;
    ; exit ... buffer
    ; carry = write leading zeroes
    ;
    ; exit ... or a ; no leading zeroes
    jp stdio_atou ; ...
    Alcoholics Anonymous Alcoholics Anonymous June 2012 Development
  • PRINT a numerical value i.e. the scoreHow do you fo about printing a numerical value using the print routine in the ROM? For instance I have a value 0-255 and want to PRINT the result at…

    ... need to multiply anything. Just print two zeroes following the number.
    Alcoholics Anonymous Alcoholics Anonymous August 2012 Development
  • ZX7: an "optimal" LZ77 packerAbout 20 years ago, I started a M.Sc. in Computing, planning to work on data compression. Although I quickly changed to another subject for a number …

    ... would be replaced by packing leading zeroes (and first one). On other ...
    catmeows catmeows January 2013 Brand new software
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ...
    ; carry set to write leading zeroes
    ;
    ; exit : ;;de;; hl ... , no_leading_zeroes

    ; write two leading zeroes to output string

    If [B]flag=1[/B], leading zeroes will be written. Returns a ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • Math Quiz - MultiplicationThe topic is fast multiplication routines, from 8x8 to 32x32 and all points in between. These functions sit underneath floating point libraries, gen…

    ... the unrolling and testing for leading zeroes, aside from checking for overflows ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Development
  • Math Quiz - MultiplicationThe topic is fast multiplication routines, from 8x8 to 32x32 and all points in between. These functions sit underneath floating point libraries, gen…

    ... the unrolling and testing for leading zeroes, aside from checking for overflows ...
    catmeows catmeows February 2014 Development
  • Is ESXDOS flexible enough to incorporate e.g. Spectranet commands?I was just discussing the idea with someone about the wish some people have to be able to combine interfaces such as DivIDE (Plus) / DivMMC EnJOY! wi…

    ... ; next time look for leading zeroes

    cp ... state_2 ; next time consume leading zeroes
    jp __stdio_scanf_sm_write ... ret z ; throw away leading zeroes

    __stdio_scanf_sm_decimal_join:< ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Hardware
  • Flappy Bird Simulator Hi-Score Challenge!Maybe development isn't the best place for a HSC, so hope Timmy doesn't mind my starting this thread here :-) [URL="http://www.sendspace.com/file/b0…

    ... perplexed about the number of leading zeroes that Timmy saw fit to ...
    Morkin Morkin February 2014 Games
  • How to separate a character from a number in a string?Hi I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say you w…

    You can just do IF A$(n)>="0" AND A$(n)
    joefish joefish May 2017 Sinclair Basic
  • Headerless tape loading blocksIs there any way to convert headerless machine code blocks to regular headed blocks? I imagine it involves Taper. I ask because now that I know I'…

    ... "001" command in there already - leading zeroes and all - which was handy ...
    The Mighty Dopethrone The Mighty Dopethrone November 2017 Sinclair Miscellaneous
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... and the (not trimmed multiple leading zeroes) decimal value (always signed, but ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott 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
  • European Software Titles with an English version
    harriusherbartio 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
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
print 8.5K 20.4K
leading 1.1K 1.2K
zeroes 215 315

Related Threads

  • Leading Zeroes on a Score in BASICI'm trying to print the score with leading zeroes such that it's always 6 characters wide, i.e.: 000010, 000150, 006100 etc.<br /> <br /> I quickly…
  • How to print with colour using DiscipleHi!<br /> <br /> I was wondering if there is any way of printing in colour using the Disciple. I am using an Epson Stylus 600 Printer with one of my …
  • Sinclair User: Blue Print Double DragonI'm not sure what issue the Blue Print of Double Dragon appeared, I think it was issue 78 (September 88)<br /> <br /> Even a scan would do. Cheers
  • 42 column text, Sinclair Print Utilities, etcI'm currently developing the next of the ZXIF text adventures - "43 Minutes" and, as a side issue, I'm really interested in 42 column text for this g…
  • Print 'n' Plotter SPRITE MACHINEJust got this from an ebay seller this afternoon. I just TZXd it and sent it to the Steve at the vault, yet it might be a while before it gets put up…
  • print at line 22 and 23I have a faint recollection of POKES to allow print at 22,x and 23,x, anyone know what they are? (rather than using the print #0 #1 stuff..)
  • PRINT AT in assemblerHello everyone,<br /> <br /> I am very new to this forums. Like perhaps many others I had a Spectrum as a child and did pretty much simple BASIC prog…
  • Print routine for BASIC (or BASin)For anyone interested there's a crappy binary here to print characters from BASIC at pixel positions. Import the binary at 60000, USR 60000 to initia…
  • Print Shop - CCS (ZX81)This is absent from the CCS Infoseek listing. The Spectrum version is there but the ZX81 version is AWOL.
  • IF RYAN=NERD THEN PRINT "Get out more often" - blogI'm a huge fan of the ZX Spectrum, retro gaming, films, manga, anime and books. If you are too, why not visit my blog:<br /> <br /> [URL="http://ryan…

Related Searches

  • print a char in asm
  • print variables
  • print on border
  • leading zeroes
  • basic leading zeroes
  • print at 23
  • print through
  • asm text print
  • assembly print text
  • assembly print text at pixel
  • leading zero
  • print one line
  • rst 16 print routine
  • print usr
  • print usr bc
  • print 16 bit number
  • basic print free ram
  • color decision for print
  • print byte decimal
  • print character

Copyright © 2024 World of Spectrum