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.023s
<1234567…34>
  • 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…

    ... it be possible to use self-modifying code so that say 20 FOR ... NEXT loops use the same code?
    or 20 array look ... ups can use the same code?

    When using C ... write out all the machine code necessary to do loops and ...
    slenkar slenkar December 2013 Development
  • Speccy snaphot to EXE I seemed to remember and reading at http://www.worldofspectrum.org/warajevo/Features.html I found[quote]Using the additional program ZXCOMP the Z80 …

    ... nearly impossible for many reasons (self-modifying code for example). So, ZXCOMP ... kind of P-code (more precisely, packed Z80 code) and links ... which includes a P-coded ROM image too) which interprets it ... for 128K snapshots. P-code is usually about half size ...
    NRA NRA December 2018 Games
  • Machine Code ChallengeHere's a challenge for all you Z80 programmers. Points to be awarded for elegance and brevity. (I haven't got the solution either) HL addresses the …

    > You write ROM-able. Are you making your < ... Extended-ROM module?
    I probably misled. I meant no self-modifying code. Anyway ...
    Geoff Geoff July 2002 Sinclair Miscellaneous
  • Galaksija emulator for ZX Spectrum +3/+2A(black)This is a NEW program/utility/game pack for ZX Spectrum. It is basically an emulator of an ex-Yugoslav computer "Galaksija" which is also Z80 based. …

    ... larger? Are you also using self-modifying code for cases such as (IX ... opcodes I use indeed selfmodifying code.

    The ZX81- ... all MC-code. Only some routines in the ZX81 ROM are patched ... br />
    Anyone fancy this code? Free use for everyone.
    Dr BEEP Dr BEEP March 2007 Emulators
  • Retargetting the Z88dkWell, I'm asking here because it's come up before, and I assume someone here might know the answer... I'm trying to retarget the Z88DK for the Z80 b…

    ... 'd like to build my ROM with the z88dk - essentially make ... the often used functions in ROM so that programs in RAM ... first 16K page of my ROM as it is (just low ... like self modifying code (which obviously won't work if they are in ROM!)
    Winston Winston March 2007 Development
  • Retargetting the Z88dkWell, I'm asking here because it's come up before, and I assume someone here might know the answer... I'm trying to retarget the Z88DK for the Z80 b…

    ... like self modifying code (which obviously won't work if they are in ROM ... t seen any instances of self-modifying code yet but there are ... syntax. Eg:

    [code]
    extern char LAST_K(23560 ... is doing (static vars, self-mod code, etc) to make sure ...
    Alcoholics Anonymous Alcoholics Anonymous March 2007 Development
  • Mebrane fix or LOAD"" Poke equivelantHi!! I bought a rubber speccy from a guy on Ebay. Well,lots of buttons dont work,including J :( Two questions... *Is there a way to have a quick me…

    Self modifying code at its finest :-)

    I used to write self-modifying code in assembler ... writing ROM code so spend the time finding a better solution than self modifying code :-)
    Winston Winston May 2007 Hardware
  • Using a multiface to exit to BasicBack in the days I was always fascinated with the idea of getting access to BASIC listings inside a program or game. I was able to work a way around …

    ... of the number that the ROM uses for calculations. The line ... such a line, the internal ROM representation is removed and recalculated ... press ENTER (talk about self-modifying code!), thus self-protecting your original intentions. Heck ...
    Marcelo Marcelo August 2007 Sinclair Basic
  • Emulators on the ZX SpectrumHaving released a Spectrum 16K emulator for Spectrum 48/128 machines as part of CCG2008, I was wondering if anybody knows of any emulators which actu…

    ... .
    Since the code is ROM-only no problems with ... selfmodifying code

    [quote]
    JP BYTE1
    [/code]


    [quote ... , it can cope with self-modifying code too. I will release ...
    Dr BEEP Dr BEEP March 2008 Emulators
  • Bresenham's line algorithmHelp - I really am struggling to get my head around this algorithm. I don't know why, I coped with Cordic (SIN/COS) and integer divide routines (/10 …

    ... [quote]
    The Z88 source code is better documented, but it ... inefficient compared to the ZX ROM attempt. Also, both versions ... times faster than the Sinclair ROM.

    Now, ... without becoming a slave to self-modifying code.

    Personally I ...
    Alcoholics Anonymous Alcoholics Anonymous September 2008 Development
  • The Complete COBRA Disassembly (Joffa's!)Now that I've seen this thread about Skool Daze / Back to Skool disassemblies I've remembered I started an ambitious project quite a few years ago: …

    There's nothing wrong with self-modifying code! I do it myself all the time! Whatever works is fine! Its just when you move onto ROM cartridge based stuff, and your development kit is RAM based, you can forget! And all hell breaks loose!
    frobush frobush August 2009 Development
  • The Complete COBRA Disassembly (Joffa's!)Now that I've seen this thread about Skool Daze / Back to Skool disassemblies I've remembered I started an ambitious project quite a few years ago: …

    ... ]There's nothing wrong with self-modifying code![/QUOTE]

    S/M ... code is the only way to ... that if you write to ROM addresses enough times, it will ... -up to be able to self-modify! ;)
    Madonna Mk 2 Madonna Mk 2 August 2009 Development
  • The Complete COBRA Disassembly (Joffa's!)Now that I've seen this thread about Skool Daze / Back to Skool disassemblies I've remembered I started an ambitious project quite a few years ago: …

    ... Mk 2;378142]S/M code is the only way to ... that if you write to ROM addresses enough times, it will ... -up to be able to self-modify! ;)[/QUOTE]

    Well ... only reason you are using self-modifying code is because you have run ...
    frobush frobush August 2009 Development
  • The Complete COBRA Disassembly (Joffa's!)Now that I've seen this thread about Skool Daze / Back to Skool disassemblies I've remembered I started an ambitious project quite a few years ago: …

    ... supposed to be self-deprecating; I was using self modifying code not because I ... is not everyone who uses self modifying code is necessarily doing the right ... realise there was actually a ROM routine to do this for ...
    Winston Winston August 2009 Development
  • The Complete COBRA Disassembly (Joffa's!)Now that I've seen this thread about Skool Daze / Back to Skool disassemblies I've remembered I started an ambitious project quite a few years ago: …

    ... supposed to be self-deprecating; I was using self modifying code not because I ... is not everyone who uses self modifying code is necessarily doing the ... realise there was actually a ROM routine to do this ... Pud - I have never used ROM routines!

    Kick ...
    frobush frobush August 2009 Development
  • Graphics problemHi guys. Finally got a REAL zx spectrum, cost ?20 from a friend. When i draw plots and circles, it takes time to do it, but how do i do it instantly…

    The BASIC rom is drawing a circle by ... was a concern for the rom.

    The best way ... latter is done by the rom and the former can be ... ideal however as it uses self modifying code (which actually makes it slower ...
    Alcoholics Anonymous Alcoholics Anonymous February 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…

    ... s$ doesn't exist; the ROM just assigns a new variable ... .) It includes a line of self-modifying code, which is anathema to some ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • binutils questionSince there's a few people using binutils these days I thought I'd give it a go and see whether it solves my hunt for a replacement assembler/librari…

    ... 3. Code/Data sections? I can understand that some ROM supported machines ... glad that I can use self modifying code in the current (assembler) ... porting of existing C code from other systems, but ... .)

    5. Code optimalisation: For the GAC interpreter ...
    Timmy Timmy July 2011 Development
  • binutils questionSince there's a few people using binutils these days I thought I'd give it a go and see whether it solves my hunt for a replacement assembler/librari…

    ... 3. Code/Data sections? I can understand that some ROM supported machines ... glad that I can use self modifying code in the current (assembler) ... would be placing the code in a ROM.

    ... stuff like this:

    [code]
    char **strings = {
    ...
    Alcoholics Anonymous Alcoholics Anonymous July 2011 Development
  • Bug fixing woesGaahhhh! I've spent an afternoon off work agonizing over why my routine didn't work. It's something I'd already restarted so didn't want to wipe th…

    ... setting a random seed, my code was

    LD (SEED ... />
    i.e. an attempted ROM write!

    The reason ... was within the program code (it was self-modifying code).

    Technically the ... find the bug in my code - there was no bug. :D ...
    Digital Prawn Digital Prawn August 2011 Development
  • Bug fixing woesGaahhhh! I've spent an afternoon off work agonizing over why my routine didn't work. It's something I'd already restarted so didn't want to wipe th…

    ... setting a random seed, my code was

    LD ...
    i.e. an attempted ROM write!

    The reason ... was within the program code (it was self-modifying code).

    ... Analyse problem first, code later. Test snippets of code extensively (eg. ...
    RetroTechie RetroTechie November 2011 Development
  • Faster CLS...Hi Folks, Looking at the CLS command in the Spectrum ROM disassembly it seems rather complex. Does anyone know of a simpler/quicker routine that wi…

    ... , I bet the concept of self modifying code is difficult to get your ... as seperate from the main code.


    Oh and ... for most purposes, and the ROM "CLS" is good to do ...
    SKR SKR January 2012 Sinclair Basic
  • Faster CLS...Hi Folks, Looking at the CLS command in the Spectrum ROM disassembly it seems rather complex. Does anyone know of a simpler/quicker routine that wi…

    ... , I bet the concept of self modifying code is difficult to get your ... as seperate from the main code.


    Oh and ... for most purposes, and the ROM "CLS" is good to do ...
    Paddy Coleman Paddy Coleman January 2012 Sinclair Basic
  • Code execution logging/profilingAs revealed in [url="http://www.worldofspectrum.org/forums/showthread.php?t=41666"]this thread[/url], I'm adding support for reading code execution l…

    ...
    ret[/code]
    would be:
    [code]30000
    ... probably contain data rather than code, and then any addresses ... (just 8K if you include ROM) to disk. This gives ... or instruction)...

    Self modifying code is still fun though :)
    Korinel Korinel November 2012 Emulators
  • Getting PC into HLHello, here's a conundrum for you... Is there a way to obtain the value of the PC register (say into HL) without using absolute addressing such as C…

    ... for itself!

    [code]
    ;All "MAGIC's" have ... OffsetMagic equ MagicNumber-StartRoutine
    [/code]

    The idea ... is ROM, or not. It doesn't use self-modifying code so ... it can run from ROM (if that ...
    mcleod_ideafix mcleod_ideafix February 2013 Sinclair Miscellaneous
  • ANN: SP1 for Z88DK (aka splib3, Sprite Pack v3.0)Well it's finally arrived, after a month of "a few days from now" release deadlines. SP1 is the lastest version of splib, a flicker-free software sp…

    ... small modification of the FZX code would enable it to handle ... reporting to basic, removing the ROM call to make it more ... seems to love self-modifying code and I hate self-modifying code but I'm not ... for re-entrant and ROMable code.

    Have you ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Development
  • 4294967296 pseudo output portsIn an effort to avoid any hardware conflicts with the clashbasher interface I've been looking for an alternative to using the spectrum's ports for ou…

    ... byte that is fixed in ROM for n rather than the ... you were expecting to use self-modifying code to change output bytes?
    Alcoholics Anonymous Alcoholics Anonymous March 2014 Hardware
  • Beepola v1.08 AvailableA new version of Beepoa, v1.08, is now available for download from:- [url]http://freestuff.grok.co.uk/beepola/[/url] (1.76MB zipped exe, no installe…

    ... /> * There is no self-modifying code. Now it can sit in ROM

    Alcoholics Anonymous Alcoholics Anonymous April 2014 Announcements
  • Beautiful codeSome people see beauty or something sublime in maths formulas and equations, can anyone suggest examples of beautiful or sublime programming?

    ...
    I personally find beautiful self-modifying code. Also some games had loaders ... garbage instead of decrypted game code.

    Of ... running and extracted game code from the dump, but ... BTW, the Beta Disk -- the ROM bank switching using address 15616 ...
    Jimmy Falcon Jimmy Falcon May 2014 Development
<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
self 4.5K 5.2K
modifying 823 935
code 41.6K 91.2K
rom 15.6K 29.7K

Related Threads

  • Self modifying code ??I made a game in C that was mostly accessing arrays and using FOR NEXT loops,<br /> I ran out of memory, so I was thinking<br /> <br /> would it be p…
  • IX+n and self modifying code and pasmoI'm using pasmo and if I wanted to use ix+n like this:<br /> <br /> (ix holds the position to a sinus table)<br /> <br /> ld (symbol), a<br /> LD a, …
  • 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…
  • Self Relocating CodeOn page 47 of [url]http://www.tim-mann.org/trs80/doc/ldosq1-3.txt[/url] is an article about relocating code.<br /> The documented routine that perfor…
  • ZX81 ROM - GPL / source code?I've had a quick look around but can't find the original thread, if any. There are various mentions of the ZX81 ROM being released under the GPL, and…
  • Inefficient code in ROM, from ram-check to RAM-DONEHere is the inefficient code:<br /> <br /> [CODE]<br /> ;; ram-check<br /> L11DA: LD H,D ; Transfer the top value to the HL registe…
  • How to write self-relocating code using Pasmo?With z80asm, I can write code like this:<br /> <br /> [CODE] org 0 ; a total lie, but makes the reloc sums work<br /…
  • 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??

Related Searches

  • betadisk rom
  • betadisk rom line
  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • alternative rom
  • rom
  • rom defekt
  • rom substitute
  • rom spectrum 128k 2
  • code 16384
  • 2a new rom
  • self modifying
  • self modifying sprite
  • self modifying code
  • self modifying code columns
  • self modifying code computer science
  • self modifiying code

Copyright © 2024 World of Spectrum