summaryrefslogtreecommitdiffstats
path: root/hacks/images/m6502/selfmodify.asm
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/images/m6502/selfmodify.asm')
-rw-r--r--hacks/images/m6502/selfmodify.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/hacks/images/m6502/selfmodify.asm b/hacks/images/m6502/selfmodify.asm
new file mode 100644
index 0000000..f7bb646
--- /dev/null
+++ b/hacks/images/m6502/selfmodify.asm
@@ -0,0 +1,12 @@
+; A very simple example of
+; self-modifying code
+; and code entry points
+
+ lda $fe
+ sta $1001
+ jmp $1000
+
+ *=$1000
+ lda #$00
+ sta $3ef
+ jmp $600