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.025s
<1…16171819202122…34>
  • 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…

    [QUOTE=aowen;56596]...

    [b]LOWER$[/b]([i]string1[/i])
    [code]
    DEF FN L$(l$)=CHR$ (CODE l$)+(32 AND CODE l$>64 AND CODE l$96 AND CODE u$64 AND CODE l$96 AND CODE u$
    jp jp March 2010 Sinclair Basic
  • SCREEN$ and Sinclair Basic: Help Required !Two simple questions: 1) When saving SCREEN$, how can I avoid the bottom of the loading screen from being chopped off by the 'Start Tape & Press Any…

    ... an alternative method by using CHR$ command when saving / loading SCREEN ...

    POKE VAL "23739", CODE "o"

    Mainly cause ...
    na_th_an na_th_an March 2010 Sinclair Basic
  • Easy way to print text in machine code?Please? It sounds so simple, but I've never done it. At the moment I'm grabbing the start address for each letter then printing them out one at a t…

    ... . Its very simple.

    [code]
    ld a,2
    CHR$ codes INK7/PAPER0
    defb ... 16
    jr print_text
    [/code]
    FrankT FrankT March 2010 Development
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... couple of short m/code routines in a BASIC ... +3 disk file. The code is relocatable, but be ... br />
    The m/code intro & outro segments (lines ... ROM call.

    [code]
    10 CLEAR 28658
    CHR$ 255
    60 FOR a=28659 TO 28671: POKE a,CODE ...
    Battle Bunny Battle Bunny May 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    [QUOTE=Battle Bunny;446155][code]
    10 CLEAR 28658
    ... $+CHR$ 255
    60 FOR a=28659 TO 28671: POKE a,CODE ... /> 100 GO TO 50
    [/code][/QUOTE]


    Correct ... loader? Why not put such code just below the UDG area ...
    na_th_an na_th_an May 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... to keep the machine code portion of the program ... is battle bunny's code modified slightly for the ... tested)

    [CODE]
    10 CLEAR 48882
    CHR$ 255
    60 FOR a=48883 TO 48895: POKE a,CODE ... 100 GO TO 50
    [/CODE]

    This could ...
    spodula spodula May 2010 Sinclair Basic
  • '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…

    ... So:
    [code]PRINT CHR$16;CHR$n; will select ... CHR$21;CHR$n; will select OVER n
    PRINT CHR$22;CHR$y;CHR ... /> PRINT CHR$23;CHR$y;CHR$x; will ... select TAB x

    (note the ';'s)[/code ... br /> DEFB "!"+128[/code]
    will display ...
    Jonathan Harston Jonathan Harston June 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... be POKEd anywhere and the code becomes relocatable. Done with some ... Toni Baker's "Mastering Machine Code" book.

    The function ... $ is the file name + CHR$ 255.

    [code]
    ;set up ... ; 49117 201 ;return status
    [/code]
    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • 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. …

    ... 16-bit number from machine code. However, the number can ... , this will require some more code.

    If ... like this:

    [code] ld bc,string
    ret ... like this:

    [code]10 LET a=USR ..
    40 PRINT CHR$ c;
    50 LET ...
    Shiru Shiru June 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... $(item): IF FN o(r$+CHR$ 255) THEN CLS : LOAD r ... check routine all in m/code then you'd have to ... HL.

    Using m/code to search for variables in ...
    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • 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…

    ... you're not allowing the CHR$(14)+5 byte floating point ... example would be :

    [CODE]READ A$: LET L=VAL ... /> DATA "23","70","10","69"[/CODE]
    Jimmy Jimmy August 2010 Sinclair Basic
  • 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…

    ... :
    Let B=CODE(I)
    Let X=CODE(J)
    If ... two chr$}

    Let B=CODE(I)
    Let X=CODE(J ... ; It avoids listing chr$ It avoids listing chr$>162
    c ... > It avoids listing chr$ "\"
    d> All the ...
    kgmcneil kgmcneil August 2010 Sinclair Basic
  • 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…

    ... 2-chr string using something like this:


    FINAL CODE ...
    kgmcneil kgmcneil August 2010 Sinclair Basic
  • SpecOS progressOk, As you can all see, I'm back - and I've been working away on SpecOS for a while now. There's a few videos, which you can see on my blog: [url]h…

    ... :

    RND, INKEY$, PI, CODE, LEN, SIN, COS, TAN, ASN ... , INT, SQR, SGN, ABS, STR$, CHR$, NOT, OR, AND, MOD
    Dunny Dunny August 2010 Sinclair Miscellaneous
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... the prototype for the machine code version but the other one ... right ROM-pattern to a CHR.

    Then use a ...
    Dr BEEP Dr BEEP August 2010 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... following example:

    [CODE]100 LET a$="PADDY"
    140 PRINT LEN b$(1)[/CODE]

    When run ... bytes.

    [CODE]100 LET a$="PADDY"
    CHR$(LEN a$)+a$
    140 PRINT CODE b$( ... 1,1)[/CODE]

    ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • 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?

    ... to its associated CHR$, for example:

    [CODE]100 DIM L ...
    120 LET L$(10)=CHR$ L[/CODE]
    to access the ... ...

    [CODE]...
    200 LET L=CODE L$(10)[/CODE]
    Hope ...
    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…

    ... .

    Paddy

    [CODE]10 REM DEF FN v ... REM DEF FN c$(a)=CHR$ (PEEK (a)-FN t(a ... )
    9135 LET n$(i0)=CHR$ (PEEK v0-(INT (PEEK v0 ...
    9185 LET n$(i0)=CHR$ (PEEK v0-INT (PEEK v0 ... )
    9400 GO TO 9105[/CODE]
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... one-line game:

    [CODE]
    1 DIM z(29 ... 18,c; INK 5;" ";CHR$ 140;CHR$ 143;CHR$ 140;" "' INK 0; PAPER ... ,1,0,0,14
    [/CODE]

    I must confess ...
    Einar Saukas Einar Saukas September 2010 Development
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... first Bubble Sort).

    [CODE]100 BRIGHT 0: PAPER 0 ... TO 50: LET p$(a)=CHR$ (65+RND*25): NEXT a ... 23672)/50: RETURN [/CODE]

    This code is simpler and not ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... first Bubble Sort).

    [CODE]100 BRIGHT 0: PAPER 0 ... TO 50: LET p$(a)=CHR$ (65+RND*25): NEXT a ... 23672)/50: RETURN [/CODE]

    This code is simpler and not ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... following Shell Sort:

    [CODE]100 BRIGHT 0: PAPER 0 ... TO 50: LET p$(a)=CHR$ (65+RND*25): NEXT a ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... tricks you said (move the code nearer the top) and a ... than 11.57.

    [CODE]100 GO SUB 250
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... relevant lines with your timing code for comparison. Mine's about ... it needed rewriting in machine code before it could be of ... any practical use.

    [code]
    1 REM Shell Sort ... n:
    LET v$(i)=CHR$ (65+RND*25):
    NEXT ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... I mentioned earlier?

    [code]
    1 REM M/C ... 52:
    LET v$(i)=CHR$ (i+64+(6 AND i ... +2)
    jr SETEND
    [/code]
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... />
    [LIST]
    [*]Optimised the code a wee bit for the ... bar.
    [/LIST]

    [CODE]100 GO SUB 240
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
<1…16171819202122…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Goodbye Z80
    i love the z80s on 6:28PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 6:04PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
code 41.6K 91.2K
chr 1.3K 4.4K

Related Threads

  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it<br /> <br /> Note, for 48k spectrum using TASM<br /> <br /…
  • Saving BASIC code as CODE... can't start programHi guys!<br /> <br /> I'm trying to create an adventure game for the Speccy in BASIC, called The Legend Of The Red Dragon.<br /> <br /> I'm using the…
  • Converting Basic code into machine codeIm just interested to know if I can converter a game I've written in basic into Machine code, Is their a program that can do this??
  • LOAD "" CODE in machine code/store 128 bank dataHow do you LOAD "" CODE from machine code?<br /> <br /> I have written the following MC routine that fits into a REM statement in a basic program.<br…
  • Code Masters' adventures: where are they?Please help to find Dizzy and Seymour sequels. Why their distribution is denied ?
  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding.<br /> <br /> I think that there might be more of these routines out there (where-eve…
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code?<br /> <br /> ORG 60000<br /> LOAD 60000<br /> <br …
  • machine code basicsWondered if anyone can help me out. I have been playing round with some disassemblers (Zeus). And Machine code loaders.<br /> <br /> All I want to do…
  • Best way to codeHi,<br /> <br /> I've been using Zeus Assembler to code MC programs so far. Nothing fancy just the odd scroll left or animation stuff.<br /> <br /> W…

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • code 16384
  • mastering machine code on your zx spectrum by toni baker
  • mastering machine code on your zx spectrum by toni baker disassembler
  • mastering machine code on your zx spectrum by toni baker pdf
  • identify code 128k pentagon model
  • check code 128k pentagon model
  • load code hide name
  • load code hide name on screen
  • disintegrate code
  • machine code routines
  • zx spectrum games code club
  • random number code
  • control code chr
  • chr code control
  • ink chr code

Copyright © 2024 World of Spectrum