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


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

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




The code that you took out put the propper ram page out port 5, the next
ram page out port 6, and then adjusted hl to point to the propper page.
This is usually used for moving more data, but it is always a good idea to
do it to avoid having a problem with things that overlap pages. The chances
of having 3 bytes overlap is very small, but possible nonetheless.
Later,
Chicane

> 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



References: