A86: Memory Lock
[Prev][Next][Index][Thread]
A86: Memory Lock
To make the program asm, you need to put $8e28 at the start of your
code:
ld hl,op_info
rst 20h ;[sqrt]KEY -> OP1
ld hl, code_end - code
call $474f ;creates program
ld a,b
ex de,hl
call _SET_ABS_DEST_ADDR
xor a
ld hl,code_end - code
call _SET_MM_NUM_BYTES
xor a
ld hl,code
call _SET_ABS_SRC_ADDR
call _mm_ldir
res 6,(iy+24) ;enables program
ret
op_info:
.db $12,$4,$10
.db "KEY",0
code:
.db $8e,$28
call $479f
;code here
cp a
ret
code_end:
This creates the program nicely, but the code still won't work and just
makes the menus screwy. There's probably a second flag that needs to be
set.
Follow-Ups: