Re: A82: Re:
[Prev][Next][Index][Thread]
Re: A82: Re:
Yes, that and all the other labels; Fov, Pov...
this is a better way to do self-modifying because instead of loading
(LABEL+1), LABEL is already incremented to the point in the ld statement where
the byte is. I'm not sure why he is using it, but if he says so...
~Adamman
In a message dated 9/25/98 9:15:58 PM Pacific Daylight Time,
evil_sam@hotmail.com writes:
> >> I was wondering if this kind of 86 ASM code works on the 82:
> >>
> >>
> >> ld a,%10000000
> >> ld (ColMask),a
> >>
> >> ld a,(Pov)
> >> Modif_Fov equ $+1
> >> add a,20h
> >> ld (Ray),a
> >>
> >> Modif_StartCol equ $+1
> >> ld a,20h
> >> ld (CurrCol),a
> >>
> >> Modif_NbCol equ $+1
> >> ld a,40h
> >> ld (NbCol),a
> >>
> >>
> >>
> >> Sam
> >
> >I guess so, but replace the equ's with ='s... I'm not sure what the
> point of
> >all that is, but it looks like some sort of self-modifying
> code...actually,
> >thats exactly what it is, and it's pretty cool! What is that from,
> Maze 3D?
> >
> >~Adamman
> >
>
> I'm guessing the label "Ray" tipped it off. Clem says using this
> style instead of simple "ld" command is faster, I wouldn't know. He uses
> CAZ, not TASM, so I'm not sure if I have to change it completely to
> simple "ld" commands or if there is a way similar to this on the 82.
> I'll try equ's -> =, when I get around to porting it.