Re: A83: Florent...


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

Re: A83: Florent...




Inside...

Phelan Wolf <gwatford@worldnet.att.net> wrote :

>can you help me to understand this snippet of code:
>
>ld hl,$1D09
>ld ($8252), hl        ; go to (x=9 y=29)
>ld hl, OptionsTxt
>call _vputs            ; show "Set Password"
>ld de, $2509
>ld ($8252), de        ; go to (x=9 y=37) ( de is used to keep hl pointing on
the text )
>call _vputs            ; show "Install"
>ld de,$1509
>ld ($8252), de        ; go to (x=9 y=21)
>call _vputs            ; show "Quit"
>
>OptionsTxt:
>.db "Set Password",0
>.db "Install",0
>.db "Quit",0
>

Hey, why did you first use y=29, then y=37, then y=21 ? On the screen , it will
look like :

Quit
Set password
Install

Was it what you intended to do ? Anyway, you should rather put that code in a
more rational way : first y=21, then y=29, then y=37. It doesn't affect the
program's run, but it's more complex to understand.

- Florent



Follow-Ups: