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.108s
<1…13141516171819…34>
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... these are very complex functions to manage. VAL is a ... if you just want to do VAL("32"), but the Speccy ... of each character in the string, subtracted the code for ... " and added the result to a total, multiplying the ... game. I had to adapt it to put it through a ...
    joefish joefish November 2009 Games
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    Arjun, the upper$ and lower$ functions only return the first letter of the string capitalized. Something like this will do the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND CODE s$
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... the first letter of the string capitalized. Something like this will ... $(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 ...
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • Print at 128,87? :)The advanced search function didn't help me find the answer to this, and I don't remember seeing anything similar in magazines or books... so please …

    ... xs - size of character 1-32
    ys - height of ... default 8
    d$ - string to be processed.

    ... is automatically centered - use 9400 to avoid.

    ... cs is brilliant - set to 7 for 36 characters per ... a couple of JPs to JRs would make the ...
    Geoff Geoff January 2010 Sinclair Miscellaneous
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... would printf() a string containing that escape sequence to change print position ... codes to affect text output. Again you would printf a string containing ... of bytes to move the cursor. This terninal also supports 32 or ...
    Alcoholics Anonymous Alcoholics Anonymous February 2010 Games
  • Dark SceptreThis game was popular then and (looking at the Top 100) is popular now but I still don't understand what the hell I should be doing or what sort of s…

    ... the format of the string table. What's interesting ... br /> 31: Strong
    32: Feeble
    33: Brave
    72: GIVE TO
    73: BEFRIEND
    ...
    122: Your victory to hail
    123: In ... vacuous brain !
    126: To Hell you are fetched,
    John Elliott John Elliott February 2010 Games
  • 'Hello World' in ASM ?Can someone show how to make the classic 'Hello World' print with ASM code ? I cant figure at this moment how to insert and handle strings with the s…

    ... ASCII for characters from 32 to 127. Now, 32*8 = 256, ... [quote](number of lines down)*32 + (number of characters across ... routine to print a text string to screen memory.
    ; The string to be ... br /> ; BC = address of the string
    ; D = Y-coordinate on ...
    ajmoss ajmoss June 2010 Sinclair Basic
  • A tidy loader for minigamesThe minigame competition doesn't permit the use of separate loaders like [code]10 LOAD "": RAND USR 32768[/code] The loader must be included in the b…

    ... , so it appears before the string variable in memory. The address ... variable doesn't have to be an integer.

    If you ... ]USR a[/b] will jump to address 23755. The disassembly:
    to use as you wish.
    ajmoss ajmoss June 2010 Development
  • Howto paint a squared zone of the screen ?You know what guys ? i begin to love this languaje. Cant understand why not put more effort on the 80's to learn it :( because it is really speedy. …

    ... you can't undestand how to return something at all, try ... you'll get it into integer variable and can use later ... /> [code] ld bc,string
    ret
    string
    db "bla",0 ... the memory, and will have to read all the letters in ... a+1
    60 GO TO 20[/code]
    Shiru Shiru June 2010 Sinclair Basic
  • Optimize this assembly?Aiming for Variable*192 -> HL In the first case, I came up with the obvious method - *128 +*64: [code] ld a, (variable) ;13 ld h,0 ; 7 ld l,…

    ... did borrow from that page to write some better square root ... got floating point square root to be about 6 times faster ... the rom calculator), and integer square roots to be 100 times faster ... about 50 times faster for 32 bit numbers - so it's ...
    Gedlion Gedlion August 2010 Development
  • Seeking alternatives to DATA statementsAnyone know of any memory saving alternatives to storing a list of numbers, other than using DATA statements or poking data into addresses?... Im ti…

    ... save 8 bytes for each string you concatenate (2 bytes line ... =0 THEN RESTORE 30: GO TO 20
    25 GO SUB ... -PITCH: IF INKEY$="" THEN GO TO 20

    26 IF ... a$(1)-32
    28 LET a$=a$(2 TO)
    29 ... /> 31 DATA "5V7Y!g6_"
    32 DATA "7\7[7Y!f ...
    BloodBaz BloodBaz August 2010 Sinclair Basic
  • New RZX Block Type Suggestion -- AnnotationWho is maintaining the RZX specification at the moment? I'd like to ask for the feasability of the following request. Annotations embedded within th…

    ... display duration, the text string to display, and display options.
    to use smaller integer type for encoding ... rendering, each Text string is subjected to word wrapping process ( ... Width, the Text string is subjected to line breaking and ...
    Patrik Rak Patrik Rak August 2010 Emulators
  • storing level datahi everyone im using arrays to store level data. its not working. just to set up the walls takes an array of size 92*2 is there a better way?

    ... So your code would need to look something like:
    ... a(32,6)
    20 for n=0 to 31< ... your array is taking up 32 * 6 * 5 bytes i ... a maximum of 192 items (32 * 6). Hopefully this shows ... limited to 48K.

    This is where having integer variables ...
    Paddy Coleman Paddy Coleman September 2010 Development
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ... VARS area for a named string array. It checks for every ... so could easily be changed to list locations and/or ...
    3000 REM FIND A STRING ARRAY NAMED IN o$
    3002 LET code=6*32+CODE o$-96:
    ... 3003 LET e=INT (e/32)
    3004 IF e=2 ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    That's a good point - to be careful about variables being ... altering the length of any string variables defined before it (which ... practice, it's always safest to re-evaluate the location each ... SUB 3000: POKE i,6*32+CODE "i"-96

    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ...
    9010 REM 2=String
    9015 REM 3= ... PEEK v0-(INT (PEEK v0/32))*32+96)
    9140 REM ... INT (PEEK v0/32)5 THEN GO TO 9240: REM ** ... --------------------------
    9300 REM 2.STRING
    9305 LET t$="2 ... (v0+2)+3: REM ** STRING=LENGTH+HEADER(3)
    9315 ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • ForthTrying to search for FORTH programs and FORTH articles within the forum is proving to be a complete nightmare!! If I search for FORTH in Infoseek I …

    ... compatibility.

    My BASIC to Forth translator is on hold ... language. I still need to finish off variables and arrays ... br /> INK_T
    PUSH [CONST] [STRING] "MINE LAYING"
    PRINT STACK ... /> PUSH [CONST] [NUM] [BYTE] 32
    OP +
    SETVAR
    Jimmy Jimmy October 2010 Sinclair Miscellaneous
  • Games in machine codeHi everyone, How do go about doing multiple shots like a machine gun, do you have to store every x and y position of each bullet? When you kill som…

    ... off screen / 16 = map priority / 32 = is off screen / 64 = ... 2 = player two / 3 = point to point / 4 = rotating / 5 = ... routine using the control field to process behaviour.
    Moves ... maths. This allows the integer based Z80 to deal with fractional values ...
    ASM ASM October 2010 Development
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... I$="": GO SUB 9130: REM Integer,Required
    250 REM *---------------------*< ... Oct-2010
    9120 REM TO DO:
    9125 REM *---------------------*< ... 6)=0 THEN
    GO TO 9145
    9150 IF ... )127 THEN
    GO TO 9145: REM Invalid character
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Hacking the O.C.P Full Screen Editor/AssemblerIf you have been reading my posts recently then you will know that I am eager to have the sourcecode I wrote for the Spectrum during the period 1988 …

    ... before each string.

    The final hurdle was to work out ... ),c

    add a,32
    ld h,d

    add a,32
    ld h,d

    add a,32
    ld h,d
    32 characters across. The labels have ...
    ASM ASM November 2010 Development
  • New tool: ZXBOOT.EXE[B]ASM[/B] is proud to present the first release of ZXBOOT.EXE: [url]http://www.4shared.com/file/NP-FVOSf/zxboot__beta_.html[/url] ZXBOOT is a comma…

    ... /> -Z redirect error messages to file
    -s redirect ... MS-DOS 16-bit/32-bit OMF object files ... : (outputs a zero terminated string to terminal)
    GET_FILE_LENGTH: ( ... to a file)
    GET_COMMAND_LINE: (gets pointer to command line string ...
    ASM ASM November 2010 Announcements
  • Spanner seeks helpHello, and HNY, all. I am presently writing a game in BASIC. It's a bit - a lot - crap, but I'm enjoying it! Anyway, a couple of questions, if you …

    ... I used some previous advice to ensure a "C" but ... ?
    Probably you want to be sure that the entered ... you can change from capitols to lower case.
    The ... in capitols is to change lower cases to capitals like this ... IN A STRING
    20 FOR F = 1 TO LEN A ...
    Dr BEEP Dr BEEP January 2011 Sinclair Basic
  • Spanner seeks helpHello, and HNY, all. I am presently writing a game in BASIC. It's a bit - a lot - crap, but I'm enjoying it! Anyway, a couple of questions, if you …

    ... ?
    Probably you want to be sure that the entered ... you can change from capitols to lower case.
    The ... best way to be sure that text is ... in capitols is to change lower cases to capitals like this ... INPUT IN A STRING
    20 FOR F = 1 TO LEN A ...
    Paddy Coleman Paddy Coleman January 2011 Sinclair Basic
  • Z88DK tapfile creation questionHere's another question. The game I've just started working on (Sid Spanners 3), I'm concatenating the following tap files together, to make a big ta…

    ... both programs linked to were suitable to do what I ... br /> * Quick 'n' dirty mym to tap converter
    *
    * ... (overwriting if necessary) just ready to run.
    */


    //Include string.h to get the function prototypes for ...
    Digital Prawn Digital Prawn January 2011 Development
  • 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…

    ... and 32 bit arithmetics and floating point),

    the integer stuff ... is mainly done with 32 bit integers typically ... integer arithmetic but it relies on 16-bit operations to implement its 32 ...
    Alcoholics Anonymous Alcoholics Anonymous January 2011 Development
  • Recommend a dev environmentIt's been a while since I last wrote any Z80 assembler - must be over 20 years, and since I wrote any spectrum Z80 assembler more like 25 years. I n…

    ... between local and global names to automatically resolve name clashes. ... makes it more difficult than to have to sift through someone else ... number base out of a string being parsed from a file ... If I used the small integer math lib, l_mulu_40_32x8 is standalone ...
    Alcoholics Anonymous Alcoholics Anonymous March 2011 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…

    ... faster, if less accurate alternatives to some of these (for example ... /> Not as fast as the integer SQR though, that runs 100X ... integers and 50X faster for 32 bit integers.
    Gedlion Gedlion March 2011 Development
  • Assembly help: EQUCan anyone explain in duffers language the purpose of the EQU term in assembly? I found this info in another thread: EQU: Equate a name to a specif…

    ... /> MACRO fbands ; binary and string
    defb 0x10
    ... MACRO fcps, n ; compare string (.le to .eq)
    defb 0x11 ...
    MACRO fcat ; concatenate string
    defb 0x17
    ENDM ... br />
    MACRO fint ; integer (rounded down)
    defb 0x27 ...
    chev chev April 2011 Development
  • 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…

    ... function is to calculate the length of a string (so you ... . However, the "width" seems to be bit mask rather than ... I cannot see any way to calcuate the pixel width from ... address=64200+(CODE p$(a)-32)*8
    140 LET ... bit that I am trying to work out. As I ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • 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…

    ... table: equ 64072 ;address-32 of character widths table< ... ' to 1 and 'wi' to 0. When printing a string linewrap ... amp; 'wi' only need to be reset the first time ... so it was just easier to do that externally.
    to print from a$ ...
    Battle Bunny Battle Bunny May 2011 Sinclair Basic
<1…13141516171819…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
32 6.7K 11.7K
integer 761 1.1K
to 549.6K 1.6M
string 2.8K 5.1K

Related Threads

  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …
  • Update to Image to ZX Spec to 1.3.1I'm inbetween jobs at the moment and felt the need to add a new feature - the ability to export anim gifs.<br /> <br /> [IMG]https://lh6.googleuserco…
  • 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…
  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • How to download games to micro sd card to play on Sinclair zx spectrum vegaHello<br /> Could anyone tell me how to download games from a website to a micro sd card to play on a Sinclair zx spectrum vega , I mean do I use a …
  • A game to port to... to make for... ZX Spectrum ?Hey there,<br /> <br /> I'm a game coder on Commodore computers (C64,CPlus/4,VIC20,Amiga) and I loooove the ZX Spectrum.<br /> I grew up with Comm…
  • How to copy file from tape (*.tap) to disks (*.dsk) ?I am using zx32 with win98 and i want (in the emulate +3) copy files from virtual tapes to virtual disks.<br /> <br /> I use =&gt; load "NameOfFile" …
  • how to make a (protected) .DSK to disk transfer ?I know how to make file transfers between .DSK files and physical disks (logical copy).<br /> <br /> However, how can be done a physical sector trans…
  • how to move fdd300's files to pc emulator?Hi!<br /> I have some diskettes 3" for FDD3000 drive for Timex 2048. How can I read these 3"disk and move to PC ? I have some my own demos and rest s…

Related Searches

  • from bedrooms to billions
  • z80 to tape
  • snapshot to tape
  • linux tzx to wav
  • trd files to image
  • fastest way to clear screen
  • user name and password to download emulator
  • convert src files to
  • rst8 return to basic
  • return to basic
  • unable to log in
  • how to download games
  • how to download games for vega
  • usr0 to 128
  • the adventure game i m trying to complete
  • how to add 32
  • inputting to a string array
  • hex to dez string
  • int32 to string
  • integer to string

Copyright © 2024 World of Spectrum