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.142s
<1…78910111213…34>
  • 128 BASIC-compatible way of loading BASIC as code?On a 48K Speccy (or from 48 BASIC or USR 0 mode on a 128K machine), one can do a silly trick like this: [code];; load a 4000 byte BASIC program ld i…

    ... machine), one can do a silly trick like this:

    [code ... ),1

    ret[/code]

    Ta-da, ... BASIC, it all falls in a heap; symptoms vary ... crash. Loading BASIC as code from the 128 BASIC ... it's the return from machine code that doesn't.
    ...
    stephenw32768 stephenw32768 September 2013 Development
  • MOVE_M Object Movement Manager for BASICAs moving things around on the screen is usually the slowest part of a game written in BASIC, I've been pottering around with this routine to handle …

    ... routine to handle that function in machine code, so the BASIC programmer ... to the MOVE_M code.

    [code]
    10 REM Title
    ... 14
    15 REM main game code follows
    254 ... to restore BASIC:
    REM To temporarily enable the ...
    Battle Bunny Battle Bunny September 2013 Sinclair Basic
  • Self modifying code ??I made a game in C that was mostly accessing arrays and using FOR NEXT loops, I ran out of memory, so I was thinking would it be possible to use sel…

    I made a game in C that was mostly ... possible to use self-modifying code so that say 20 ... NEXT loops use the same code?
    or 20 array ... ups can use the same code?

    When using ... always write out all the machine code necessary to do loops and ...
    slenkar slenkar December 2013 Development
  • Seeing the code/In emulatorHello, Here is my Noob question. Is it possible to see the code for these games in an emulator? To be able to study the code? I am using the Sp…

    Hello,

    Here is my Noob question. Is it possible to see the code for these games in an emulator?

    To be able to study the code?

    I am using the Spectaculator emulator on a PC.

    Thanks,

    M
    MadR13D MadR13D December 2013 Sinclair Basic
  • Boomshine in SpecBASHere's a little game called "Boomshine": [url]http://www.k2xl.com/games/boomshine/[/url] It's a really nice, relaxing puzzle game about exploding b…

    ... perfect for being implemented in SpecBAS, so here it ... 5MB in size.

    Here's the program code ... :

    [code]
    10 REM Boomshine
    20 GO ... np=0
    140 REM main animation loop
    ... CASE state
    190 REM Moving state
    200 ...
    Dunny Dunny November 2014 Sinclair Basic
  • Fast Condition TestingHello my friends, I have been writing some input and string handling routines in BASIC lately - yeah I could write them super fast in C/ASM via z88d…

    ... input and string handling routines in BASIC lately - yeah ... - there is something wholesome in writing them in BASIC

    ... too slow for the native machine. Basically (please forgive the ... here is some code -

    [code]
    [B]REM ***** INPUT 13 ...
    Zetr0 Zetr0 November 2014 Sinclair Basic
  • Chompston Mazes in SpecBASAfter the discussion in ASH-II's Pacman thread, I checked out the link there about generating 2D Pacman style mazes. This one was quite good fun, …

    ... better readability.

    [code]
    10 REM Chompston maze generator
    in order, left/up/right/down.

    [code]
    ... the number at that position in e$ in a new variable, d ... the data in each array. Note the use of CODE (the ...
    Dunny Dunny October 2015 Sinclair Basic
  • Matthew Smith's Andre's Night Off in C&VG - did he really write it?Despite it being written in BASIC, Andre's Night Off is not very good - so what happened exactly? Was the hyperbole surrounding the type-in so much h…

    ... it written by him in the Software Projects office ...
    Matthew has said in an interview he dabbled with ... time that were written in code and you had to ... knock out a quick machine code routine, it probably would ... two weeks to make in the accompanying article ...
    SteveP SteveP February 2016 Games
  • Turning .src files in z80 source code into .tap files.Does anyone know how I might go about turning z80 source code in 5 .src files into a .tap or .tzx file so that I can play it into my Spectrum +3? …

    ... go about turning z80 source code in 5 .src files into a ... don't really have skills in this area.

    I ...
    matalog matalog March 2016 Development
  • New Game (2016 revival): A Yankee in Iraq (1992)Hello everyone, Way back in 1992, I wrote a shoot-em-up called [i]A Yankee in Iraq[/i]. The entire game was written in Sinclair BASIC. Recently, I…

    ... />
    Way back in 1992, I wrote a shoot ... The entire game was written in Sinclair BASIC. Recently, I ... tips on loading BASIC using machine code can be found here: ... who are not interested in reading all that, below ... is no printer buffer in 128K mode. However, ...
    Ast_A_Moore Ast_A_Moore August 2016 Brand new software
  • 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…

    wrap the machine code calls inside a ' ... ; call a routine in the 48-BASIC environment
    in a moment
    LD ... to put it in a REM statement in Line 1, but ... you like)
    [code]
    1 REM M/C************
    ...
    The_Bert The_Bert September 2016 Sinclair Basic
  • how to load machine codeI'm reading Jon Caldwell's how to write Spectrum games but can't enter the code! Here's an example:_ LD BC, (score) Call 6683 I tried putting…

    ... but can't enter the code! Here's an example:_ ...

    I tried putting REM first to get around the ...
    mik3d3nch mik3d3nch November 2016 Sinclair Miscellaneous
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... Toni Baker in part 4 of the "Machine Code Calculator" series in ZX Computing ... (containing either "9994 :" or "9994 REM"), to get the loop overhead ... =1: LET tint=0: REM any setup code here
    9992 GO ... PAUSE 1+INT (RND*50): REM test routine here
    9995 ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • User defined function in Sinclair BASICI'm looking to create a user defined function in Sinclair BASIC to add up numbers being input. This is the program without a user defined function be…

    ... being used

    [code]
    10 REM Program to total numbers ... to do it in BBC BASIC...

    [code]
    REM Program to ... total numbers sent as a string in BBC ...
    Richey Richey February 2017 BASIC
  • Less MIA - Peker AssemblerMIA and also missing from the database! [img]http://oi66.tinypic.com/16hw67a.jpg[/img] Peker Assembler TZX https://app.box.com/s/vdniq5c6r30…

    ... came with the Peker Machine Code Course, which unfortunately went ... that compiles Z80 mnemonics in REM statements into assembler. Using ... - runs the compiled code

    REM begin - lines that ... bytes. Define bytes
    REM defws - followed by space ...
    Swanny Swanny April 2017 MIA/STP/SDP
  • The trouble with good code isLots of times I've come here to ask for help and always got it pretty promptly. Which is wonderful and one of the reasons why I don't think there's a…

    ... I utilize that fix in another program because I ... earth does that come in useful in so many programs ... instructions that make sense in English and as long ... point in even trying to learn hex and machine code until ... like Dunny sent me in the BASIC thread produces ...
    mik3d3nch mik3d3nch May 2017 Chit chat
  • how do i get more udgs on the spectrum in basic?how do i get more udgs on the spectrum in basic? i know there r only supposed to be 21 but is there a way of getting more in basic? i know its doable…

    ... more udgs on the spectrum in basic? i know there r ... of getting more in basic? i know its doable in machine code. i.e ... do loads of sprites, like in machine code games. or as an alternative ... , how do i do sprites in basic?
    digital digital August 2017 Development
  • Flood Fill IssueHi Folks, Came across the following Flood Fill routine by John Metcalf: [code]; scanline fill by John Metcalf ; call with d=x-coord, e=y-coo…

    ... John Metcalf:


    [code]; scanline fill by John Metcalf ... br /> jp (hl) 60102 E9[/code]

    Thought I ... program:


    [code]100 CLEAR 60000
    110 ... H$;" ";
    170 LET H= CODE H$(1)
    180 LET ...
    Paddy Coleman Paddy Coleman August 2017 Development
  • Using BASIC from Machine CodeHi Folks, Came across a very interesting article by Toni Baker in Your Spectrum: http://www.users.globalnet.co.uk/~jg27paw4/yr11/yr11_66.htm …

    ... the following in to Basin's assembler:


    [code]
    [/code]

    The above ... it via:


    [code]100 CLEAR 61999
    110 ... /> 120 LET A=USR 62000[/code]

    The Spectrum crashes ...
    Paddy Coleman Paddy Coleman August 2017 Development
  • Strange behaviour in very simple ASM program.Someone sent me this and it shows something strange. Here's the BASIC listing [code] 10 CLEAR 32999 20 FOR n=33000 TO 33009 30 READ a: POKE n,a …

    ... 's the BASIC listing
    [code]
    10 CLEAR 32999
    [/code]
    In assembly this should be.
    ret
    [/code]
    If you run this in 48k mode with ... this in an emulator in 128k or real +2 and the machine resets ...
    ivanb303 ivanb303 October 2017 Development
  • "Monty Hall" problem in Spectrum BasicFollowing a rather odd conversation with my wife regarding the probability puzzle "[url="https://en.wikipedia.org/wiki/Monty_Hall_problem"]The Monty …

    ... scrappy "proof":

    [code]
    10 REM Monty Hall Problem
    410 STOP
    420 REM print the doors
    430 ... $(3)
    440 RETURN
    [/code]

    The problem is ... /> Can anyone see the flaw in my logic or BASIC?
    mroshaw mroshaw April 2018 Sinclair Basic
  • Setting breakpoints in source code to make debugging easierAfter two years I've resumed my Speccy coding project. I'm porting a yet "unported" game from C64/Atari to 48k Spectrum using Z80 assembler. At the m…

    ... Speccy" emulator for running my code. Occasionally I also use Fuse ... sort of instruction or macro in the code, which when encountered, ... a very long delay loop in the code in the "interesting place", ... and memory, continuing the code execution is not possible as ...
    arttu arttu August 2019 Development
  • Amiga chit chat (sorry but it never really was a commode designed machine)I wish there was a forum like this for the Amiga, perhaps there is but I tried a few and they mostly seem pretty moribund and lots of the links at Am…

    ... Since I'll never master machine code - maximum kudos to those of ... - and barely struggled by in Basic, it was always hopeless ... graphics capability that attracted me in the first place. However ... that had got scrambled in transmission and needed massaging ...
    mik3d3nch mik3d3nch February 2020 Chit chat
  • A couple of random questions......because, why not? (1) USR0 mode on the +3/+2A/B I know of its existence, I know how it's used, and I have some games that require it to work o…

    ... holds a small machine code routine in a REM statement:
    1 REM - T0 ... I understand very much about machine code - the ZX81 (and, ... machine code this way, but it would start with a REM ... machine code program on the ZX81 be typed in as, say...
    1 REM ...
    The Mighty Dopethrone The Mighty Dopethrone March 2020 Sinclair Miscellaneous
  • WiP New Utility TAPonDSKThere are a few utilities that transfer tape contents to +3 disk but most, if not all, require manual intervention to change the loader and/or rename…

    ... would work in most cases due to machine code loaders etc... ... bit of M/C in a REM statement which turns ...
    TomD

    [code]
    +--------------------------------------------------------------------------------
    | TAPonDSK v0.2 ...
    TomD TomD August 2020 Brand new software
  • What Good Serious Successful Software Was Written Exclusively in 128K BASIC?I realize now that 128K BASIC has its serious enthusiasts . But I know very little about this type of BASIC . What good titles were written exclusi…

    ... were written exclusively in 128K BASIC without any machine Code ? Are there many ...
    harriusherbartio harriusherbartio February 2022 Games
  • Screen$ +3 disk to tape helpHi, I have several full screen pictures of my +3 disks (Screen$). How can I transfer these pictures onto tape without losing the last to lines beca…

    ... "
    20 POKE 23735,23 : REM alter output address #09F4 to ...
    40 POKE 23737,17 : REM alter input address #10A8 to ... be at a higher position in memory.

    Hope this ... but wrote a short
    machine code routine to save the complete ...
    Geoff Geoff February 2001 Sinclair Miscellaneous
  • Sharopolis's QuizHere you are folks, My quiz, edutainment at its best. This is the first quiz I've compiled so sorry if its too easy or hard or whatever. Some of the…

    ... Many celebrities endorsed or appeared in spectrum games during the eighties ... And Poke Next Rand Gosub Rem Run Or Next. What' ... referred to as "Crazy Paving" in certain Hertforshire constituencies.
    < ... for if M is for machine code I never understood)
    ...
    Ed Ed July 2002 Games
  • Sharopolis's QuizHere you are folks, My quiz, edutainment at its best. This is the first quiz I've compiled so sorry if its too easy or hard or whatever. Some of the…

    ... celebrities endorsed or appeared in spectrum games during the ... who have appeared in spectrum titles and ... Poke Next Rand Gosub Rem Run Or Next. ... for if M is for machine code I never understood)
    in 150 lines of code but before ...
    Arjun Arjun July 2002 Games
<1…78910111213…34>

Latest Posts

  • Celebrity deaths...
    Paradigm Shifter on 4:41PM
  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • 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

HitBox

Word Docs Hits
machine 27.2K 35.6K
code 41.6K 91.2K
in 401.9K 810.5K
rem 1.8K 6.6K

Related Threads

  • 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…
  • 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 /…
  • Fast division in machine codeHi<br /> <br /> Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code.<br /> <br /> Derek<br /> <br /> [ This Mess…
  • How do I put 1k game in a REM statement in TAP formatBasically,<br /> <br /> If I am assembling my machine code game, say using PASMO or TASM.<br /> <br /> 1. What address do I assemble it at to fit in …
  • In Machine Code, what is the quickest way to sort bytes?I am playing around with some ordering of sprites, where I want to order them by vertical position.<br /> <br /> I used some Rodnay Zaks code to orde…
  • +2 ramdisk - access in machine codeHow can you access the ramdisk in machine code?<br /> <br /> I've got a +2, and it seems the ramdisk has never been properly utilised.<br /> It would…
  • First steps in Z80 machine codeI never got into machine code much back when I had a speccy, as I didn't have any development tools at the time.<br /> <br /> The only machine code I…
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will<br /> clear the first 20 rows of the Spectrum's display<br /> (or any number of rows or columns) . …
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

Related Searches

  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • mastering machine code on your zx spectrum by toni baker
  • machine code sprite movement in basic
  • machine code to rem
  • change tape to disk in machine code
  • machine code rem statement
  • machine code in loading screen
  • rem machine code clear
  • pause 0 in machine code
  • divide in machine code
  • plot in machine code
  • machine code paint type in
  • machine code graphics type in
  • machine code rem
  • machine code in basic
  • loading in machine code
  • set ink in machine code
  • rem machine code

Copyright © 2024 World of Spectrum