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.089s
<1234567…34>
  • Fast division in machine codeHi Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code. Derek [ This Message was edited by: dmsmith on 2004-0…

    Hi

    Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code.

    Derek

    [ This Message was edited by: dmsmith on 2004-09-24 20:04 ]
    dmsmith dmsmith September 2004 Development
  • +2 ramdisk - access in machine codeHow can you access the ramdisk in machine code? I've got a +2, and it seems the ramdisk has never been properly utilised. It would be a handy little…

    How can you access the ramdisk in machine code?

    I've got a +2, and it seems the ramdisk has never been properly utilised.
    It would be a handy little area to use.


    Thanks in advance,

    --

    cat
    cat cat October 2006 Development
  • IF and control flow in machine codeHi everyone, Basic has a nice control flow like if statements. How can these be done in machine code since i cant find anything thanks

    Hi everyone,

    Basic has a nice control flow like if statements.
    How can these be done in machine code since i cant find anything

    thanks
    Robin Robin September 2010 Development
  • 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
  • Love letter hidden in source code?Hi all, Back in the early 80's there was a 48k game called (see note) and at about that time me and a couple of mates were into disassembling and ra…

    Hi all,

    Back in the early 80's there ... raking through game hex code for fun. Hidden in the hex we ...
    IanSJohnston IanSJohnston November 2004 Games
  • 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. I used some Rodnay Zaks code to order some bytes…

    ... some bytes, and it works in "descending" order. I am ... having difficulty ordering them in ascending order (Changing "jr ... c,noswitch" gets it stuck in an endless loop.
    < ... an earlier thread)

    [code]

    org 8000h
    robpearmain robpearmain August 2006 Development
  • 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 clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    ... looking for a machine code routine which will
    ... routines which do the job in thirds (as is
    in memory), which can
    ... /> However, this machine code routine, when I tested< ... br /> pixels are stored in memory) then that would ...
    bobbyjaykid bobbyjaykid July 2007 Development
  • 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…

    ... learn the basics of machine code in half an hour by coding ... , you be able to program in machine code!

    CHAPTER 1 ...
    Machine code programs are a series of bytes in the Spectrum ... first machine code program!
    Do File -> Save in the main ...
    bigjon bigjon November 2009 Development
  • Help needed... RND in machine codeI have been battling away trying to convert a simple BASIC routine (below) to machine code, but to no avail. The routine is used to fire 2 bullets a…

    ... BASIC routine (below) to machine code, but to no avail.

    Many thanks in advance...
    daveysludge daveysludge July 2012 Development
  • Optimisations in Exomizer Z80 decrunch codeThis is the 163 bytes old code (simple and optimized): [CODE] ld iy, exo_mapbasebits ld a, 128 ld b, 52 push de exo…

    ... of 3 bytes. Changing this code:
    [CODE]
    call exo_getbits
    in the code)

    [CODE]
    call exo_getbit ... . This is the final code:

    [CODE]
    ld iy, exo_mapbasebits ...
    antoniovillena antoniovillena November 2012 Development
  • LOAD "" CODE in machine code/store 128 bank dataHow do you LOAD "" CODE from machine code? I have written the following MC routine that fits into a REM statement in a basic program. I want to cal…

    How do you LOAD "" CODE from machine code?

    I have written ... call the ROM's LOAD "" CODE routine, nothing fancy headerless loaders ... worth of 128 code in bank 6?

    [CODE]ld a,64 ... />
    ;LOAD 128 bank 6 code

    ;LOAD main game ...
    daveysludge daveysludge October 2014 Development
  • why am i getting b integer out of range in this code?ive tried running this in spin but thats what i get [code]main org 40000; ; We want a black screen. ld a,71 ; white ink (7) on black paper (0…

    ... in spin but thats what i get

    [code ... ld a,22 ; control code for AT character.
    ... basexy ld a,22 ; AT code.
    rst 16
    ... ld a,144 ; ASCII code for User Defined Graphic 'A ... pointer through the ROM (held in seed), returning
    ; ...
    digital digital June 2020 Assembler
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ... Z88DK so I'm motivated in a similar way. So, how ... it's doing:

    [code]/*
    * zcc +zx -vn -m ... /> [/code]

    I haven't timed this. It's got little delays in ... screen.

    Try it in assembly language?
    thricenightly thricenightly September 2017 Development
  • Machine CodeOk i had a spectrum when i was younger and only used it for playin games and typing simple BASIC programs - i mean really simple! Things like 10 Pri…

    ... i want to do something in machine code. I've seen a ... the loaders and seein the code was all blocked out or ... ) - how did they do that in basic?! lol im just curious ... info, especially about the Machine code
    Alex
    alexsut alexsut July 2002 Sinclair Miscellaneous
  • Chaos - Secret names found in the code! ooerI doubt by any stretch of the imagination I'm the first but hey its an attention grabbing Subject line innit. I was editing away at the stats for th…

    ... the stats for the monsters in Chaos by Julian Gollop when ...
    mister_benn mister_benn November 2003 Games
  • Checksums in Hobeta filesDoes anyone here have any experience with working with the internals of the Hobeta (aka .$b, .$c ...) file format, or failing that, checksum algorith…

    ... , or failing that, checksum algorithms in general?

    There's ... FAQ[/url], is calculated as[code]
    CheckSum=0;
    for ...
    gasman gasman September 2004 Development
  • Help, my Sprite Code wont workI have zipped it all up here: [url="http://www.peargames.co.uk/downloads/galagorf.zip"]http://www.peargames.co.uk/downloads/galagorf.zip[/url] If y…

    ... tried to implement Derek Smiths code to preshift all bytes before ... at points the image dissapears in places.

    Use Q ... the ball

    In this code I draw to a backbuffer ...
    robpearmain robpearmain December 2005 Development
  • All my Machine Code Books Up For GrabsSee [url=http://www.worldofspectrum.org/forums/showthread.php?p=139192#post139192]here[/url] for details. You too can learn to program the Speccy in…

    See [url=http://www.worldofspectrum.org/forums/showthread.php?p=139192#post139192]here[/url] for details.

    You too can learn to program the Speccy in Machine Code
    robpearmain robpearmain July 2006 Development
  • New Discussion Group? Sinclair Machine Code/AssemblyHello, What do people think about whether we should have a new discussion group relating to machine code for Z80? We have a Sinclair Basic discussi…

    ... group relating to machine code for Z80? We have ... not one about assembly code/machine code for the spectrum.
    in the forums which could ... is so simply and fast in machine code.

    For ... that I am interested in and I get the ...
    BloodBaz BloodBaz May 2007 Sinclair Miscellaneous
  • It's a trap!So I got a CPLD (not the eventual one I want to use for the ethernet project - rather, one I actually have here and now, an XC9536 in a PLCC44). And…

    ... the Speccy ROM gets paged in.
    - 0x3C00-0x3CFF - uncondionally ... would be due to propagation delays through the gates).

    code such as:

    ...

    would result in the code in the real ROM entry point ...
    Winston Winston December 2007 Hardware
  • Adjusting your code for screen refreshingOk, I'm aware that I should know it already after writing 5 Spectrum games in machine code but interrupts and screen refreshes were always my weaker …

    ... after writing 5 Spectrum games in machine code but interrupts and screen ... must of course adjust my code for screen redrawing.
    ... If I perform HALT command in machine code, the computer will wait ... Is there any way in machine code to determine where is my ...
    Ralf Ralf November 2009 Development
  • 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…

    ... 'd rather just do it in BASIC.

    So... Can ... spell, "HELLO" and put them in an address starting at, say ...
    Graz Graz March 2010 Development
  • Who can fix my Flash programmer code?I have a problem with some code, it doesn't work and I don't have any idea what it's trying to do, or failing to do! The code in question is the fla…

    ... have a problem with some code, it doesn't work and ... to do!

    The code in question is the flash rom ... of what is going on in the code. The bug seems to ... present it will just hang in it's wait loops. at ... step over all the checks in the debugger to get back ...
    guesser guesser May 2010 Development
  • Building a menu in ASMWEll as probably some figured, i am learning asm at least to make the basic menu i did in basic. It is a menu where we can select games to be loaded.…

    ... to do it in asm. Also in the 80's ...
    scape

    In basic was easy to build ... this way:

    [code]
    ld b,4 ;repeat ... ",$a0
    [/code]

    In this code i paint the alternate ... show.
    Actually my code not use this way to ...
    arfgh arfgh June 2010 Sinclair Basic
  • unusable KEMPSTON JOYSTICK in gamesSome ZX games use bad routine for read kempston joystick port. For example game BLOOD VALLEY read kempston joy from port #DF ( BIN 11011111 ). This s…

    ... games ?

    - detect in ZX emulator instructions for reading ... ]

    4) in original code must be replaced all joystick ... ports to value #1F. In ... .png[/img]
    After code modification exit debugger via key ...
    velesoft velesoft June 2010 Games
  • ccompletly baffeled machine codeHi everyone, BEFORE you ask i have not asked help for loads of problems i have recently now encountered and i figured the problems out myself, hones…

    ... a character at this position in machine code. But thats where the ... problem starts. its done in a really ... way. I cant just plug in the x co because the ... point on the screen grid in machine code. For example, 5,4 ...
    Robin Robin September 2010 Sinclair Miscellaneous
  • Machine code sub routinesHi everyone, I have noticed that in machine code you can call different "preset" routines like rst 16 or something, or call 6533... where can i fi…

    ... /> I have noticed that in machine code you can call different "preset ...
    Robin Robin October 2010 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... 20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun ... quickly as doing an LDIR in machine code, but using only standard ... for yourself first.

    [code]
    10 DIM s$(6912 ... +1,0: PAUSE 0
    [/code]

    [spoiler]It ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... looking at bottle necks in my code using BASin's Profiler and ... slow.

    [CODE]100 LET h=INT (CODE z$(a,4 ... $(a,o)=CHR$ 10)+STR$ ((CODE z$(a,4)-h*16 ... )*65536+CODE z$(a,6)*256+CODE z$(a,5 ... )))[/CODE]

    Does anyone ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
<1234567…34>

Latest Posts

  • 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
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade 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
  • 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

HitBox

Word Docs Hits
delays 376 413
in 401.9K 810.5K
timed 503 555
code 41.6K 91.2K

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…
  • Glad to see the ZX Spectrum is in the Science Museum in London.About time too! Last tiem I looked there was just the ZX-80 but the Spectrum is in there now too, alongside a pong-clone and a Vic-20.
  • Chaos - Secret names found in the code! ooerI doubt by any stretch of the imagination I'm the first but hey its an attention grabbing Subject line innit.<br /> <br /> I was editing away at the …
  • have a speccy program not in the archive or in MIAIntermediated Maths 2 for the 48K!!
  • 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 /…
  • New remake in progress - play in browser[url="http://www.multiedge-net.co.uk/wally"]http://www.multiedge-net.co.uk/wally[/url]<br /> <br /> Play it in your web browser; no nasty downloads (…
  • 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…
  • Love letter hidden in source code?Hi all,<br /> <br /> Back in the early 80's there was a 48k game called (see note) and at about that time me and a couple of mates were into disassem…
  • 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…

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • machine code sprite movement in basic
  • code in c
  • change tape to disk in machine code
  • delays in timed codee
  • machine code in loading screen
  • pause 0 in machine code
  • load code from basic in emulator
  • divide in machine code
  • code in udg memory
  • machine code in rem
  • plot in machine code
  • machine code paint type in
  • machine code graphics type in
  • machine code in basic
  • loading in machine code
  • set ink in machine code
  • storing code in basic

Copyright © 2024 World of Spectrum