Changes
<br>
= Optimized Z80 Assembler version =
The unlocking sequence can be reconstituted from simple bit operations instead of being stored in memory.
This allowed [[Madram]] to create this optimized unlock routine:
<pre>
UnlockAsic
ld bc,#BCFF
out (c),c
out (c),0
ld hl,%1001000011101010
.loop
out (c),c
ld a,h:rlca:ld h,l:ld l,a
srl c:res 3,c
and #88
or c
ld c,a
cp #4D
jr nz,.loop
ld a,#CD
out (c),a : out (c),a
ret
</pre>
[[Category:Programming]]
[[Category:CPC Plus]]