Re: A86: arg... sqrtKEY again...


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

Re: A86: arg... sqrtKEY again...




Thanks on the 20h/10h mix-up.  Unfortunately, your code doesn't work
either.  It loads the wrong RAM page.  I took out all the page switching
code and it worked just fine.  My question:  What was that stuff that I
removed intended to do?

ld hl, $5A92
rst 20h
rst 10h
jr c, memlock_compromised
ld  a,b
ld  a,b
ex  de,hl
call _load_ram_ahl
;***took out a bunch of stuff here.  What was it supposed to do?***
ld  de,$0006
add hl,de
ld  de,id_tag_copy
ld  bc,3
ldir

Thanks, 
Cassady Roop






> ld hl, $5A92                            ;name of sqrtkey program
> rst 20h
> rst 10h
> jr c, memlock_compromised       ;if carry, then sqrtKEY doesn't exist.
> ld  a,b
> ex  de,hl
> call _load_ram_ahl
> ld  a,(6)
> out (5),a
> inc a
> out (6),a
> ld  de,-$4000+6
> add hl,de
> ld  de,id_tag_copy
> ld  bc,6
> ldir


Follow-Ups: References: