Re: A86: sorry again: sc2k


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

Re: A86: sorry again: sc2k






Caymran wrote:

> >Bryan Rabeler wrote:
> >
> >> Dux Gregis wrote:
> >>
> >> > > Is that an update or just the same version I got?
> >> >
> >> > You can update it if you want.  The only difference is that this
> program doesn't need to be
> >> > reinstalled all the time and can be installed from a shell.
> >>
> >> Can you send me the updated source?
>
> 2 minor errors in your source jm and jd need to be changed to mem_cleared
> and defaults_set or vice-versa, doesn't really matter, people should notice.
> Also, why won't this work?
>
> check_reset_all:     ;checks if state is reset all
>   cp $1f
>   jr nz,check_reset_mem
>   pop af
>   cp $32    ;check for [f4]
>   jr nz,skip_key
>
>   ld a,0                    ;tried to decrease contrast before displaying
> text
>   ld ($C008),a        ;it did not work
>   out (2),a                ;also tried pushing and popping around did not
> work

What did this do?  Any result?

>
>
>   call _clrScrn
>   ld hl,$0503
>   ld ($c00f),hl
>   ld hl, jm                 ;***change here***
>   call _puts
>   ld hl,$0504
>   ld ($c00f),hl
>   ld hl, jd                 ;***change here***
>   call _puts
>   call _homeup
>   call $4ab5            ;-)
>   ld a,$31
>   jr skip_key
>
> check_reset_mem:
>   cp $1d
>   jr nz,check_self_test
>   pop af
>   cp $32    ;check for [f4]
>   jr nz,skip_key
>
>   ld a,0                    ;tried to decrease contrast before displaying
> text
>   ld ($C008),a        ;it did not work
>   out (2),a                ;also tried pushing and popping around did not
> work

You don't want this (the ROM doesn't change contrast here, anyway)

>
>
>   call _clrScrn
>   ld hl,$0503
>   ld ($c00f),hl
>   ld hl, jm                ;***change here***
>   call _puts
>   call _homeup
>   call $4ab5            ;-)
>   ld a,$31
>   jr skip_key
>
> thanks
> Caymran




References: