Re: Re: A86: Re: self-modifying code


[Prev][Next][Index][Thread]

Re: Re: A86: Re: self-modifying code





In a message dated 5/21/98 23:01:04, you wrote:

>
>That's not what's meant by "self-modifying code".  It means code that changes
>its own code, not data...
>Here's an example:
>
>command:
>bit 0,(hl)
>;blah blah blah
>;A now contains the bit # to check for
>ld hl,command+2   ;i.e. hl->the byte in the opcode that tells which bit to
check
>
>ld (hl),a    ;you just modified the code


how is the modified code accessible afterwards?  is it loaded into a or hl
when you jp to command?


Follow-Ups: