A89: Re: question


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

A89: Re: question




I think it's because idle_loop is returning the keycode in d0, so <addq
#1,d0> is adding 1 to the keycode, not to the earlier d0


>
>why does the hexlib function print out 1 & E, when I really want it to
>print out 1 & 2? i hope this isnt too dumb of a question :)
>
>_main:
> jsr    util::clr_scr
>       jsr    util::idle_loop
> move.l #1,d0  ;number
> move.l #1,d1  ;row
> move.l #1,d2  ;column
> jsr    hexlib::put_char
> jsr util::idle_loop
> addq   #1,d0
> addq   #1,d1
> addq   #1,d2
> jsr    hexlib::put_char
> jsr util::idle_loop
> rts
>
>
>__________________________________________________
>
>"If God didn't want us to eat in church, he
>would have made gluttony a sin."
>
>--Homer Simpson
>__________________________________________________